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

Method instancesWithTokensCount

ring/model.go:549–559  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

547}
548
549func (d *Desc) instancesWithTokensCount() int {
550 count := 0
551 if d != nil {
552 for _, ingester := range d.Ingesters {
553 if len(ingester.Tokens) > 0 {
554 count++
555 }
556 }
557 }
558 return count
559}
560
561func (d *Desc) instancesCountPerZone() map[string]int {
562 instancesCountPerZone := map[string]int{}

Callers 2

buildRingForTheShardMethod · 0.95
setRingStateFromDescMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected