InstancesInZoneCount returns the number of instances in the ring that are registered in this lifecycler's zone, updated during the last heartbeat period.
()
| 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. |
| 516 | func (i *Lifecycler) InstancesInZoneCount() int { |
| 517 | i.countersLock.RLock() |
| 518 | defer i.countersLock.RUnlock() |
| 519 | |
| 520 | return i.instancesInZoneCount |
| 521 | } |
| 522 | |
| 523 | // ZonesCount returns the number of zones for which there's at least 1 instance registered |
| 524 | // in the ring. |
no outgoing calls