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

Method GetReplicationSetForOperation

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

GetReplicationSetForOperation returns all instances where the input operation should be executed. The resulting ReplicationSet doesn't necessarily contain all healthy instances in the ring, but could contain the minimum set of instances required to execute the input operation.

(op Operation)

Source from the content-addressed store, hash-verified

97 // in the ring, but could contain the minimum set of instances required to execute
98 // the input operation.
99 GetReplicationSetForOperation(op Operation) (ReplicationSet, error)
100
101 // GetSubringForOperationStates returns a subring containing only instances for the given operation.
102 // This method only filters by instance state and does not check heartbeat timeouts.

Implementers 2

Ringring/ring.go
RingMockring/util_test.go

Calls

no outgoing calls