@@ -15,12 +15,15 @@ used to document those details separately from the standard upgrade flow.
15
15
16
16
## Nomad 1.3.0
17
17
18
- #### Default Raft Protocol Version
18
+ #### Raft Protocol Version 2 Deprecation
19
19
20
- In Nomad 1.3.0, the default raft protocol version has been updated
21
- to 3. If the [ ` raft_protocol_version ` ] is not explicitly set,
22
- upgrading a server will automatically upgrade that server's raft
23
- protocol. See the [ Upgrading to Raft Protocol 3] guide below.
20
+ Raft protocol version 2 will be removed from Nomad in the next major
21
+ release of Nomad, 1.4.0.
22
+
23
+ In Nomad 1.3.0, the default raft protocol version has been updated to
24
+ 3 . If the [ ` raft_protocol_version ` ] is not explicitly set, upgrading a
25
+ server will automatically upgrade that server's raft protocol. See the
26
+ [ Upgrading to Raft Protocol 3] guide.
24
27
25
28
## Nomad 1.2.2
26
29
@@ -973,57 +976,6 @@ In order to enable all
973
976
servers in a Nomad cluster must be running with Raft protocol version 3 or
974
977
later.
975
978
976
- #### Upgrading to Raft Protocol 3
977
-
978
- This section provides details on upgrading to Raft Protocol 3 in Nomad 0.8 and
979
- higher. Raft protocol version 3 requires Nomad running 0.8.0 or newer on all
980
- servers in order to work. See [Raft Protocol Version
981
- Compatibility](/docs/upgrade/upgrade-specific#raft-protocol-version-compatibility)
982
- for more details. Also the format of `peers.json` used for outage recovery is
983
- different when running with the latest Raft protocol. See [Manual Recovery Using
984
- peers.json](https://learn.hashicorp.com/tutorials/nomad/outage-recovery#manual-recovery-using-peersjson)
985
- for a description of the required format.
986
-
987
- Please note that the Raft protocol is different from Nomad's internal protocol
988
- as shown in commands like `nomad server members`. To see the version of the Raft
989
- protocol in use on each server, use the `nomad operator raft list-peers`
990
- command.
991
-
992
- When using Raft protocol version 3, servers are identified by their `node-id`
993
- instead of their IP address when Nomad makes changes to its internal Raft quorum
994
- configuration. This means that once a cluster has been upgraded with servers all
995
- running Raft protocol version 3, it will no longer allow servers running any
996
- older Raft protocol versions to be added.
997
-
998
- ~> **Warning:** If you are running a single Nomad server, restarting it
999
- in-place will result in that server not being able to elect itself as
1000
- a leader. To avoid this, either set the Raft protocol back to 2, or
1001
- use [Manual Recovery Using
1002
- peers.json](https://learn.hashicorp.com/tutorials/nomad/outage-recovery#manual-recovery-using-peersjson)
1003
- to map the server to its node ID in the Raft quorum configuration.
1004
-
1005
- The easiest way to upgrade servers is to have each server leave the cluster,
1006
- upgrade its [`raft_protocol`] version in the `server` stanza, and then add it
1007
- back. Make sure the new server joins successfully and that the cluster is stable
1008
- before rolling the upgrade forward to the next server. It's also possible to
1009
- stand up a new set of servers, and then slowly stand down each of the older
1010
- servers in a similar fashion.
1011
-
1012
- For in-place raft protocol upgrades, perform the following for each
1013
- server, leaving the leader until last to reduce the chance of leader
1014
- elections that will slow down the process:
1015
-
1016
- * Stop the server
1017
- * Run `nomad server force-leave $server_name`
1018
- * Update the `raft_protocol` in the server's configuration file to 3.
1019
- * Restart the server
1020
- * Run `nomad operator raft list-peers` to verify that the `raft_vsn`
1021
- for the server is now 3.
1022
- * On the server, run `nomad agent-info` and check that the
1023
- `last_log_index` is of a similar value to the other servers. This
1024
- step ensures that raft is healthy and changes are replicating to the
1025
- new server.
1026
-
1027
979
### Node Draining Improvements
1028
980
1029
981
Node draining via the [`node drain`][drain-cli] command or the [drain
@@ -1243,4 +1195,4 @@ deleted and then Nomad 0.3.0 can be launched.
1243
1195
[cap_add_exec]: /docs/drivers/exec#cap_add
1244
1196
[cap_drop_exec]: /docs/drivers/exec#cap_drop
1245
1197
[`log_file`]: /docs/configuration#log_file
1246
- [Upgrading to Raft Protocol 3]: /docs/upgrade/upgrade-specific #upgrading-to-raft-protocol-3
1198
+ [Upgrading to Raft Protocol 3]: /docs/upgrade#upgrading-to-raft-protocol-3
0 commit comments