# Functions
DoBatch request against a set of keys in the ring, handling replication and failures.
GenerateTokens make numTokens unique random tokens, none of which clash with takenTokens.
GetCodec returns the codec used to encode and decode data being put by ring.
LoadTokensFromFile loads tokens from given file path.
New creates a new Ring.
NewDesc returns an empty ring.Desc.
NewLifecycler creates new Lifecycler.
NewNoopFlushTransferer makes a new NoopFlushTransferer.
ProtoDescFactory makes new Descs.
# Constants
No description provided by the author
CompactorRingKey is the key under which we store the compactors ring in the KVStore.
DistributorRingKey is the key under which we store the distributors ring in the KVStore.
IngesterRingKey is the key under which we store the ingesters ring in the KVStore.
No description provided by the author
No description provided by the author
This state is only used by gossiping code to distribute information about ingesters that have been removed from the ring.
No description provided by the author
Values for Operation.
Special value for inquiring about health.
RulerRingKey is the key under which we store the rulers ring in the KVStore.
Values for Operation.
# Variables
ErrEmptyRing is the error returned when trying to get an element when nothing has been added to hash.
No description provided by the author
No description provided by the author
ErrTransferDisabled is the error returned by TransferOut when the transfers are disabled.
No description provided by the author
No description provided by the author
# Structs
Config for a Ring.
No description provided by the author
No description provided by the author
Lifecycler is responsible for managing the lifecycle of entries in the ring.
LifecyclerConfig is the config to build a Lifecycler.
NoopFlushTransferer is a FlushTransferer which does nothing and can be used in cases we don't need one.
ReplicationSet describes the ingesters to talk to for a given key, and how many errors to tolerate.
Ring holds the information about the members of the consistent hash ring.
No description provided by the author
# Interfaces
FlushTransferer controls the shutdown of an instance in the ring.
ReadRing represents the read interface to the ring.
# Type aliases
ByToken is a sortable list of TokenDescs.
No description provided by the author
Operation can be Read or Write.
Tokens is a simple list of tokens.