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

update default values for raft protocol #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update default values for raft protocol
  • Loading branch information
dotdiego committed Sep 24, 2022
commit b9a81101c2213814b667eb623a112ed20993f6d5
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,10 @@ The role defines most of its variables in `defaults/main.yml`:

### `nomad_raft_protocol`

- Specifies the version of raft protocal, which used by nomad servers for communication
- Default value: **2**
- Specifies the version of raft protocol, which used by nomad servers for communication
- Default value:
- Nomad versions < 1.3.0: 2
- Nomad versions => 1.3.0: 3

### `nomad_authoritative_region`

Expand Down
7 changes: 6 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ nomad_job_gc_threshold: "4h"
nomad_eval_gc_threshold: "1h"
nomad_deployment_gc_threshold: "1h"
nomad_encrypt_enable: "{{ lookup('env','NOMAD_ENCRYPT_ENABLE') | default('false', true) }}"
nomad_raft_protocol: 2
nomad_raft_protocol: "\
{% if nomad_version is version_compare('1.3.0', '<') %}\
2\
{% else %}\
3\
{% endif %}"

#### Client settings
nomad_node_class: ""
Expand Down