MCPcopy Create free account
hub / github.com/cortexproject/cortex / ReplicationSet

Struct ReplicationSet

pkg/ring/replication_set.go:15–25  ·  view source on GitHub ↗

ReplicationSet describes the instances to talk to for a given key, and how many errors to tolerate.

Source from the content-addressed store, hash-verified

13// ReplicationSet describes the instances to talk to for a given key, and how
14// many errors to tolerate.
15type ReplicationSet struct {
16 Instances []InstanceDesc
17
18 // Maximum number of tolerated failing instances. Max errors and max unavailable zones are
19 // mutually exclusive.
20 MaxErrors int
21
22 // Maximum number of different zones in which instances can fail. Max unavailable zones and
23 // max errors are mutually exclusive.
24 MaxUnavailableZones int
25}
26
27// Do function f in parallel for all replicas in the set, erroring is we exceed
28// MaxErrors and returning early otherwise. zoneResultsQuorum allows only include

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected