[rabbitmq-discuss] Best way to live migrate RabbitMQ consumer load from one cluster to another

Matt Pietrek mpietrek at skytap.com
Wed Apr 30 18:49:14 BST 2014

Apologies if this has been answered somewhere already, but my searching
isn't turning up anything.

I'm looking for advice on how to best move client traffic from one RabbitMQ
cluster to another without service interruption. I suspect it can be done
with HA-proxy, but I can't figure out the steps. I'm open to other ideas as

Scenario: We have a 2-node cluster with all queues mirrored. Let's say it's
running RabbitMQ 3.2.2. Clients connect to this cluster through a VIP
maintained by keepalived on both RabbitMQ hosts.

We now want to move to a different identical cluster, but running 3.3.1.
I'm thinking I can bring up this new cluster "side-by-side" with the old
cluster, such that they're running concurrently. All new connections would
go to the new cluster, while already established connections to the 3.2.2
cluster will remain alive and working, until all clients have eventually
connected to the new cluster. At that point the 3.2.2 cluster can be shut

I have a hunch I can put HA-proxy in front of both clusters, and though
live configuration changes have it migrate the traffic to the new cluster
while leaving existing cluster connections alone. What I don't know is the
commands/configuration options/steps to implement it.

Thoughts and guidance on how to best do this?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140430/401c7e18/attachment.html>

More information about the rabbitmq-discuss mailing list