Skip to content

Commit

Permalink
cluster: pcs, sensible timers and odd numbered cluster support
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSkalny committed Nov 18, 2022
1 parent 0cbe13d commit 551d470
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cluster/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cluster_token: 3000
cluster_token: 30000
cluster_retransmits: 10
cluster_last_man_standing_window: 10000
cluster_last_man_standing_window: 60000
1 change: 1 addition & 0 deletions cluster/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- pacemaker
- corosync
- crmsh
- pcs
- fence-agents
- drbd-utils
- ocfs2-tools
Expand Down
4 changes: 3 additions & 1 deletion cluster/templates/corosync.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ quorum {
{% if cluster.members|length == 2 %}
two_node: 1
{% else %}
{% if cluster.members|length % 2 == 0 %}
auto_tie_breaker: 1
allow_downscale: 1
last_man_standing: 1
last_man_standing_window: {{ cluster_last_man_standing_window }}
{% endif %}
allow_downscale: 1
{% endif %}
}

0 comments on commit 551d470

Please sign in to comment.