MCPcopy
hub / github.com/grafana/dskit / GetAllHealthy

Method GetAllHealthy

ring/ring.go:93–93  ·  view source on GitHub ↗

GetAllHealthy returns all healthy instances in the ring, for the given operation. This function doesn't check if the quorum is honored, so doesn't fail if the number of unhealthy instances is greater than the tolerated max unavailable.

(op Operation)

Source from the content-addressed store, hash-verified

91 // This function doesn't check if the quorum is honored, so doesn't fail if the number
92 // of unhealthy instances is greater than the tolerated max unavailable.
93 GetAllHealthy(op Operation) (ReplicationSet, error)
94
95 // GetReplicationSetForOperation returns all instances where the input operation should be executed.
96 // The resulting ReplicationSet doesn't necessarily contain all healthy instances

Implementers 2

Ringring/ring.go
RingMockring/util_test.go

Calls

no outgoing calls