InstancesCount returns the total number of instances in the ring, updated during the last heartbeat period.
()
| 488 | |
| 489 | // InstancesCount returns the total number of instances in the ring, updated during the last heartbeat period. |
| 490 | func (i *Lifecycler) InstancesCount() int { |
| 491 | i.countersLock.RLock() |
| 492 | defer i.countersLock.RUnlock() |
| 493 | |
| 494 | return i.instancesCount |
| 495 | } |
| 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 { |
no outgoing calls