Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce a min_refresh_duration #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 21, 2019

  1. Enforce a min_refresh_duration

    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.
    jacksontj committed Aug 21, 2019
    Configuration menu
    Copy the full SHA
    c0bf354 View commit details
    Browse the repository at this point in the history