ReadOnlyInstancesCount returns the total number of instances in the ring that are read only, updated during the last heartbeat period.
()
| 496 | |
| 497 | // ReadOnlyInstancesCount returns the total number of instances in the ring that are read only, updated during the last heartbeat period. |
| 498 | func (i *Lifecycler) ReadOnlyInstancesCount() int { |
| 499 | i.countersLock.RLock() |
| 500 | defer i.countersLock.RUnlock() |
| 501 | |
| 502 | return i.readOnlyInstancesCount |
| 503 | } |
| 504 | |
| 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. |
no outgoing calls