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

Improving ConfigCheckSeconds for a faster failover detection #1735

Conversation

deepakverma
Copy link
Collaborator

Fixes info command storm on a disconnect
After a master node disconnect performs ConfigCheckSeconds on replica nodes with an exponential backoff

After a master node disconnect performs ConfigCheckSeconds on replica nodes with an exponential backoff
Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one's good - would like a name tweak for clarity though please!



// Forces frequent replication check starting from 1 second upto max ConfigCheckSeconds with an exponential increment
internal void ForceExponentiallyReplicationCheck()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this for clarity please?

Suggested change
internal void ForceExponentiallyReplicationCheck()
internal void ForceExponentialBackoffReplicationCheck()

@deepakverma deepakverma marked this pull request as ready for review May 25, 2021 23:32
Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looking good, thanks for the tweaks!

@NickCraver NickCraver changed the title improving configcheckseconds for a faster failover detection Improving ConfigCheckSeconds for a faster failover detection May 26, 2021
@NickCraver NickCraver merged commit d61dc11 into StackExchange:main May 26, 2021
NickCraver pushed a commit that referenced this pull request May 26, 2021
@deepakverma deepakverma deleted the MarkServerEndpointsForReplicationRoleRefresh branch May 26, 2021 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CollectionMultiplexer.servers - Collection was modified; enumeration operation may not execute.
3 participants