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

Adds performance tuning capability for Raft, detuned defaults, and supplemental docs. #2303

Merged
merged 6 commits into from
Aug 25, 2016

Conversation

slackpad
Copy link
Contributor

The rationale for this one is explained in the new server performance guide that's part of this PR.

@slackpad slackpad force-pushed the f-tunes branch 3 times, most recently from a95ad5a to 9c8c848 Compare August 25, 2016 04:50
Rather than scale this we just bump it up a bit. It'll be on the edge in
the lower-performance default mode, and will have plenty of margin in the
high-performance mode. This seems like a reasonable compromise to keep the
logic here simple vs. scaling, and seems inline with the expectations of
the different modes of operation.
def := raft.DefaultConfig()
c.RaftConfig.HeartbeatTimeout = raftMult * def.HeartbeatTimeout
c.RaftConfig.ElectionTimeout = raftMult * def.ElectionTimeout
c.RaftConfig.CommitTimeout = raftMult * def.CommitTimeout
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to scale this? This won't affect stability but affects the commit tail latency on followers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh good catch - I'll remove this.

@slackpad slackpad merged commit d64d53a into master Aug 25, 2016
@slackpad slackpad deleted the f-tunes branch August 25, 2016 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants