Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before this change a refresh of peers is run on a variety of scenarios-- including any time there is a topology change. In a moderately sized cluster (200+ nodes) there is basically *always* a topology change (connections closing, opening, etc.). Because of this constant state of topology change the mesh ends up constantly updating the peer set effectively in a loop. This patch simply ensures that the refresh happens no more frequently than initialInterval (2s) to avoid this CPU spinning.
- Loading branch information