()
| 581 | } |
| 582 | |
| 583 | func (d *Desc) writableInstancesWithTokensCount() int { |
| 584 | writableInstancesWithTokensCount := 0 |
| 585 | if d != nil { |
| 586 | for _, ingester := range d.Ingesters { |
| 587 | if len(ingester.Tokens) > 0 && !ingester.ReadOnly { |
| 588 | writableInstancesWithTokensCount++ |
| 589 | } |
| 590 | } |
| 591 | } |
| 592 | return writableInstancesWithTokensCount |
| 593 | } |
| 594 | |
| 595 | func (d *Desc) writableInstancesWithTokensCountPerZone() map[string]int { |
| 596 | instancesCountPerZone := map[string]int{} |
no outgoing calls
no test coverage detected