Skip to content

Commit 3b5bcc1

Browse files
committed
Make rabbitmq cluster_partition_handling configurable
Change-Id: If2fdab2ae0f981d9fcbb0fea7a92fcde325804f8 (cherry picked from commit c998412)
1 parent 81b3240 commit 3b5bcc1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ansible/roles/rabbitmq/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,5 @@ rabbitmq_pid_file: "/var/lib/rabbitmq/mnesia/rabbitmq.pid"
7474
rabbitmq_server_additional_erl_args: ""
7575
# Dict of TLS options for RabbitMQ. Keys will be prefixed with 'ssl_options.'.
7676
rabbitmq_tls_options: {}
77+
# To avoid split-brain
78+
rabbitmq_cluster_partition_handling: "pause_minority"

ansible/roles/rabbitmq/templates/rabbitmq.conf.j2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ listeners.ssl.1 = {{ api_interface_address }}:{{ role_rabbitmq_port }}
66
{% else %}
77
listeners.tcp.1 = {{ api_interface_address }}:{{ role_rabbitmq_port }}
88
{% endif %}
9-
{# NOTE: to avoid split-brain #}
10-
cluster_partition_handling = pause_minority
9+
cluster_partition_handling = {{ rabbitmq_cluster_partition_handling }}
1110

1211
management.listener.ip = {{ api_interface_address }}
1312
management.listener.port = {{ role_rabbitmq_management_port }}

0 commit comments

Comments
 (0)