# README
Hinted Handoff Queue
Hinted handoff is a concept that is used in Cassandra and Amazon's Dynamo for dealing with failed remote writes.
The files queue.go
, limiter.go
and node_processor.go
(and their tests) were taken
from InfluxDB 0.11.1:
https://github.com/influxdata/influxdb/tree/v0.11.1/services/hh
These files were released under the MIT license.
# Functions
NewDiskBackedQueue create a queue that will store segments in dir and that will consume more than maxSize on disk.
NewRateLimiter returns a new limiter configured to restrict a process to the limit per second.
NewWriteReplayer returns a new WriteReplayer for the given node, using dir for the hinted-handoff data.
No description provided by the author
No description provided by the author
# Constants
DefaultMaxAge is the default maximum amount of time that a hinted handoff write can stay in the queue.
DefaultMaxSize is the default maximum size of all disk backed queues in bytes.
DefaultPurgeInterval is the amount of time the system waits before attempting to purge hinted handoff data due to age or inactive nodes.
DefaultRetryInterval is the default amount of time the system waits before attempting to flush hinted handoff queues.
DefaultRetryMaxInterval is the maximum the hinted handoff retry interval will ever be.
DefaultRetryRateLimit is the default rate that hinted handoffs will be retried.
No description provided by the author
# Variables
Possible errors returned by a hinted handoff queue.
Possible errors returned by a hinted handoff queue.
Possible errors returned by a hinted handoff queue.
# Structs
queue is a bounded, disk-backed, append-only type that combines queue and log semantics.
WriteReplayer encapsulates a queue of hinted-handoff data for a node, and the transmission of the data to the node.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author