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

Method HealthyInstancesInZoneCount

ring/lifecycler.go:507–512  ·  view source on GitHub ↗

HealthyInstancesInZoneCount returns the number of healthy 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

505// HealthyInstancesInZoneCount returns the number of healthy instances in the ring that are registered in
506// this lifecycler's zone, updated during the last heartbeat period.
507func (i *Lifecycler) HealthyInstancesInZoneCount() int {
508 i.countersLock.RLock()
509 defer i.countersLock.RUnlock()
510
511 return i.healthyInstancesInZoneCount
512}
513
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.

Calls

no outgoing calls