[rabbitmq-discuss] Query reg migration of queue
matthew at rabbitmq.com
Tue May 17 12:20:33 BST 2011
On Tue, May 17, 2011 at 04:30:33PM +0530, Ram Chan wrote:
> I have setup rabbitmq on a server, but now want to change the hostname of
> server. The queue is under mnesia/rabbit at hostname.
> How to migrate the queue to new hostname. I tried renaming the dir but dint
After changing the hostname of the machine, you'll find that rabbit
starts up using the new hostname, and thus a different location to store
The only way you'll be able to migrate the queue contents is to change
the hostname back to the original, startup rabbit, then drain the queue
to some other machine with a stable hostname, make the change to your
hostname, restart rabbit, and then drain it back in.
Or you could use a client of some sort to drain the contents of the
queue, something like that. But the point is that the msgs will have to
come out of rabbit before the hostname change, then make the change,
then send them back in.
More information about the rabbitmq-discuss