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

Method HealthyInstancesCount

ring/lifecycler.go:482–487  ·  view source on GitHub ↗

HealthyInstancesCount returns the number of healthy instances for the Write operation in the ring, updated during the last heartbeat period.

()

Source from the content-addressed store, hash-verified

480// HealthyInstancesCount returns the number of healthy instances for the Write operation
481// in the ring, updated during the last heartbeat period.
482func (i *Lifecycler) HealthyInstancesCount() int {
483 i.countersLock.RLock()
484 defer i.countersLock.RUnlock()
485
486 return i.healthyInstancesCount
487}
488
489// InstancesCount returns the total number of instances in the ring, updated during the last heartbeat period.
490func (i *Lifecycler) InstancesCount() int {

Calls

no outgoing calls