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

Method InstancesInZoneCount

ring/lifecycler.go:516–521  ·  view source on GitHub ↗

InstancesInZoneCount returns the number of instances in the ring that are registered in this lifecycler's zone, updated during the last heartbeat period.

()

Source from the content-addressed store, hash-verified

514// InstancesInZoneCount returns the number of instances in the ring that are registered in
515// this lifecycler's zone, updated during the last heartbeat period.
516func (i *Lifecycler) InstancesInZoneCount() int {
517 i.countersLock.RLock()
518 defer i.countersLock.RUnlock()
519
520 return i.instancesInZoneCount
521}
522
523// ZonesCount returns the number of zones for which there's at least 1 instance registered
524// in the ring.

Callers 1

Calls

no outgoing calls

Tested by 1