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

Method WritableInstancesWithTokensInZoneCount

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

WritableInstancesWithTokensInZoneCount returns the number of writable instances in the ring that are registered in given zone and have tokens.

(zone string)

Source from the content-addressed store, hash-verified

142
143 // WritableInstancesWithTokensInZoneCount returns the number of writable instances in the ring that are registered in given zone and have tokens.
144 WritableInstancesWithTokensInZoneCount(zone string) int
145
146 // ZonesCount returns the number of zones for which there's at least 1 instance registered in the ring.
147 ZonesCount() int

Implementers 2

Ringring/ring.go
RingMockring/util_test.go

Calls

no outgoing calls