-
Notifications
You must be signed in to change notification settings - Fork 2k
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: default to protocol v3 #11572
raft: default to protocol v3 #11572
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a minor inline comment but I am not sure if it's important, otherwise, LGTM!
efb8f38
to
6d80b84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some concern about the single server case, but I think we can move forward. This is way overdue and putting it off is only going to make things worse if we want to improve the standalone server case.
6d80b84
to
4db2f53
Compare
4db2f53
to
2b3ee71
Compare
Many of Nomad's Autopilot features require raft protocol version 3. Set the default raft protocol to 3, and improve the upgrade documentation.
2b3ee71
to
12c762e
Compare
I've just rebased this on |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
DO NOT MERGE TILL 1.3.0
Many of Nomad's Autopilot features require raft protocol version 3. Set the default raft protocol to 3, and improve the upgrade documentation.
Fixes #7208. Our concerns about the corner case of a server which is shut down during the upgrade can be alleviated by operators upgrading one server at a time, as we generally recommend for updates. I've tentatively marked this issue for 1.3.0 because it seems like it's got enough risk associated with it that it should be in a major update.
I've tested out the docs by using the 3-server cluster described in our Vagrant file, with the following configuration file (replace the IPs for server02 and server03 as usual):
server config
Note all server names:
For server01:
raft_protocol = 2
, so that it's now set to the default 3sudo systemctl stop nomad
nomad server force-leave nomad-server01.global
sudo systemctl start nomad
Also note that server raft configuration has changed to show UUID for member ID:
Repeat for the other two servers. Once we're all done: