HealthyInstancesCount returns the number of healthy instances for the Write operation in the ring, updated during the last heartbeat period.
()
| 480 | // HealthyInstancesCount returns the number of healthy instances for the Write operation |
| 481 | // in the ring, updated during the last heartbeat period. |
| 482 | func (i *Lifecycler) HealthyInstancesCount() int { |
| 483 | i.countersLock.RLock() |
| 484 | defer i.countersLock.RUnlock() |
| 485 | |
| 486 | return i.healthyInstancesCount |
| 487 | } |
| 488 | |
| 489 | // InstancesCount returns the total number of instances in the ring, updated during the last heartbeat period. |
| 490 | func (i *Lifecycler) InstancesCount() int { |
no outgoing calls