[rabbitmq-discuss] upgrade rabbitmq from 1.7.1 without loosing any messages

Ivan Glushkov gli.work at gmail.com
Tue Oct 4 12:10:43 BST 2011

Hi all.

We have several separate rabbitmq nodes with version "1.7.1" and we want to 
upgrade them to the newest version.
As I've read on this forum we can't do this just updating rabbitmq version 
as db schema has changed (so we will have all our messages lost)

The only possibility I see is the following sequence:
1. Create new server with the newest rabbitmq version.
2. For every subscriber in old_rmq_server create new subscriber with the 
same characteristics in new_rmq_server. Pause them all.
3. Switch publishers to use new_rmq_server.  
    At this point all new messages go to the new_rmq_server, but they are 
not processed as all readers are paused. While old subscribers process 
messages from the old_rmq_server
4. When all queues in old_rmq_server are empty turn old subscribers off

But it's quite a difficult process as it requires a lot of code changes, 
manual work, etc.

Is there any other option to switch from the old version to the newest one?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111004/23580ceb/attachment.htm>

More information about the rabbitmq-discuss mailing list