RabbitMQ & AMQP (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
Zero-Downtime RabbitMQ Rolling Upgrades with Quorum Queues.
senior LevelSystem DesignRabbitMQMicroservices
In Simple Words: Performing a minor or patch upgrade across a 3-node RabbitMQ cluster without dropping connections:
- Upgrade Node 3:
- Drain connections from Node 3 to Nodes 1 and 2.
- Run
rabbitmq-upgrade drainto migrate quorum queue leaders off Node 3. - Stop RabbitMQ, upgrade Erlang/RabbitMQ packages, and start the node.
- Verify Node 3 rejoins the Raft cluster and catches up on logs.
- Repeat sequentially for Node 2, then Node 1.
- Run
rabbitmq-queues rebalance "all"to redistribute quorum leaders evenly across all three upgraded nodes.