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

Raft: Check suspect info once per suspect interval #1600

Merged
merged 1 commit into from
Jul 14, 2020

Commits on Jul 14, 2020

  1. Raft: Check suspect info once per suspect interval

    Today's existing suspect logic has a periodic checker, which checks
    every 10s if the Raft cluster still has quorum.  If the cluster has lost
    quorum, it marks the time this event begins, then, every 10s checks to
    see if 'enough' time has elapsed since the quorum was lost to suspect
    that the OSN has been evicted.
    
    If the OSN has not been evicted, or cannot determine its eviction
    status, then every 10s the OSN attempts to re-check its suspicion
    status, which can lead to large volumes of network traffic, especially
    in significiantly multichannel environments.
    
    This commit modifies the logic to track the number of times that the
    suspect checking logic has actually executed, to ensure that we check no
    more than once every suspect interval (by default every 10m, instead of
    every 10s).
    
    Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
    Jason Yellick committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    8b3eef0 View commit details
    Browse the repository at this point in the history