Skip to content

Commit 8f420cc

Browse files
committed
fixes and improvements
1 parent c83b4f1 commit 8f420cc

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

services/rabbit/.operations.Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ down: stop-cluster
4343
start-cluster: start-all-nodes start-loadbalancer
4444

4545
update-cluster stop-cluster:
46-
@$(error This operation may break cluster. Perform it per component)
46+
@$(error This operation may break cluster. Check README for details.)
4747

4848
#
4949
# Load Balancer

services/rabbit/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Perform update one node at a time. Never update all nodes at the same time (this
88

99
## Graceful shutdown
1010

11-
Normally when you shut down a RabbitMQ cluster altogether, the first node you restart should be the last one to go down, since it may have seen things happen that other nodes did not.
11+
Shutdown nodes one by one gracefully. Wait until the nodes is stopped and leaves the cluster. Then remove next node. When starting cluster, start nodes **in the reverse order**! For example, if you shutdown node01, then node02 and lastly node03, first start node03 then node02 and finally node03.
1212

13-
If all Nodes were shutdown simultaneously, use force_boot (https://www.rabbitmq.com/docs/man/rabbitmqctl.8#force_boot)
13+
If all Nodes were shutdown simultaneously, then you will see mnesia tables errors in node's logs. Restarting node solves the issue . Documentation also mentions force_boot CLI command in this case (see https://www.rabbitmq.com/docs/man/rabbitmqctl.8#force_boot)
1414

1515
#### Community discussions
1616
mnesia errors after all rabbit nodes (docker services) restart:

services/rabbit/docker-compose.node0x.yml.j2

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ configs:
7272
rabbitmq.conf:
7373
# no rolling update since it requires full cluster restart
7474
file: ./configs/rabbitmq.conf
75-
haproxy.cfg:
76-
file: ./configs/haproxy.cfg
77-
name: rabbit_haproxy_conf_{{ "./configs/haproxy.cfg" | sha256file | substring(0,10) }}
7875

7976
secrets:
8077
rabbit_erlang_cookie:

0 commit comments

Comments
 (0)