HealthyInstancesInZoneCount returns the number of healthy instances in the ring that are registered in this lifecycler's zone, updated during the last heartbeat period.
()
| 505 | // HealthyInstancesInZoneCount returns the number of healthy instances in the ring that are registered in |
| 506 | // this lifecycler's zone, updated during the last heartbeat period. |
| 507 | func (i *Lifecycler) HealthyInstancesInZoneCount() int { |
| 508 | i.countersLock.RLock() |
| 509 | defer i.countersLock.RUnlock() |
| 510 | |
| 511 | return i.healthyInstancesInZoneCount |
| 512 | } |
| 513 | |
| 514 | // InstancesInZoneCount returns the number of instances in the ring that are registered in |
| 515 | // this lifecycler's zone, updated during the last heartbeat period. |
no outgoing calls