MCPcopy Create free account
hub / github.com/cortexproject/cortex / InstancesCount

Method InstancesCount

pkg/ring/replication_strategy.go:109–114  ·  view source on GitHub ↗

InstancesCount returns the number of instances in the ring.

()

Source from the content-addressed store, hash-verified

107
108// InstancesCount returns the number of instances in the ring.
109func (r *Ring) InstancesCount() int {
110 r.mtx.RLock()
111 c := len(r.ringDesc.Ingesters)
112 r.mtx.RUnlock()
113 return c
114}

Callers 2

shuffleShardWithCacheMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected