RabbitMQ & AMQP (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
RabbitMQ Clustering Network Partitions: `pause_minority` vs `autoheal` strategies and split-brain resolution.
senior LevelSystem DesignRabbitMQMicroservices
In Simple Words: When a network cable fails between nodes in a cluster (split-brain):
pause_minority(Recommended for Quorum/CP Semantics): Nodes that discover they are in the minority (< 50% cluster nodes) automatically pause and close client connections. Prevents split-brain state divergence.autoheal: Both partitions continue accepting writes. When network connectivity restores, the partition with the fewest clients is restarted, wiping any un-replicated messages written to it.ignore: Never use in production; requires manual operator intervention to resolve split-brain.