ansible-community / ansible-nomad

:watch: Ansible role for Nomad
https://galaxy.ansible.com/brianshumate/nomad
BSD 2-Clause "Simplified" License
294 stars 163 forks source link

update default values for raft protocol #158

Open dotdiego opened 1 year ago

dotdiego commented 1 year ago

Pull request for issue #157

Rendanic commented 1 year ago

Automatic change of nomad_raft_protocol during upgrade of nomad_version could crash the cluster. The change require different upgrade steps - depending on Cluster with 1 or 3+ servers - before the server is started with new protocal version. Single-Node won't start after changing the protocol version and you can't go back to previous version.

https://www.nomadproject.io/docs/upgrade#upgrading-to-raft-protocol-3

IamTheFij commented 1 year ago

This could be mitigated by at least specifying the default for 1.4 to be protocol 3 as it's broken with protocol 2 anyway.