ansible-community / ansible-nomad

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

update default values for raft protocol #158

Open dotdiego opened 2 years ago

dotdiego commented 2 years ago

Pull request for issue #157

Rendanic commented 2 years 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 2 years 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.