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

Method ReadOnlyInstancesCount

ring/lifecycler.go:498–503  ·  view source on GitHub ↗

ReadOnlyInstancesCount returns the total number of instances in the ring that are read only, updated during the last heartbeat period.

()

Source from the content-addressed store, hash-verified

496
497// ReadOnlyInstancesCount returns the total number of instances in the ring that are read only, updated during the last heartbeat period.
498func (i *Lifecycler) ReadOnlyInstancesCount() int {
499 i.countersLock.RLock()
500 defer i.countersLock.RUnlock()
501
502 return i.readOnlyInstancesCount
503}
504
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.

Calls

no outgoing calls