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

Method Zones

ring/lifecycler.go:534–539  ·  view source on GitHub ↗

Zones return the list of zones for which there's at least 1 instance registered in the ring. They are guaranteed to be sorted alphabetically.

()

Source from the content-addressed store, hash-verified

532// Zones return the list of zones for which there's at least 1 instance registered
533// in the ring. They are guaranteed to be sorted alphabetically.
534func (i *Lifecycler) Zones() []string {
535 i.countersLock.RLock()
536 defer i.countersLock.RUnlock()
537
538 return i.zones
539}
540
541func (i *Lifecycler) loop(ctx context.Context) error {
542 // First, see if we exist in the cluster, update our state to match if we do,

Callers 1

TestLifecycler_ZonesFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestLifecycler_ZonesFunction · 0.76