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

Method instancesCountPerZone

ring/model.go:561–569  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559}
560
561func (d *Desc) instancesCountPerZone() map[string]int {
562 instancesCountPerZone := map[string]int{}
563 if d != nil {
564 for _, ingester := range d.Ingesters {
565 instancesCountPerZone[ingester.Zone]++
566 }
567 }
568 return instancesCountPerZone
569}
570
571func (d *Desc) instancesWithTokensCountPerZone() map[string]int {
572 instancesCountPerZone := map[string]int{}

Callers 2

buildRingForTheShardMethod · 0.95
setRingStateFromDescMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected