Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  Making backups of RabbitMQ state?

Guest
Posted: Tue Nov 03, 2009 9:48 am Reply with quote
Guest
Hi,

I am having a little bit of trouble figuring out what the proper backup procedure for the RabbitMQ state would be.

For the configuration (vhosts, users, exchanges, queues, etc.) I can use the normal Mnesia backup and restore. That I understand.

But for the persistant messages I am not so sure. How is the rabbit_persister.LOG managed? Can I just take a backup copy of it whenever, or may I only take one of the rabbit_persister.LOG.previous? Where would I look to find out how often it is rolled? Can I trigger a manual roll?

Any pointers are highly appreciated.

Thanks,
Robby


Post received from mailinglist
Guest
Posted: Thu Nov 05, 2009 9:13 am Reply with quote
Guest
Robert,

Robert Raschke wrote:
> But for the persistant messages I am not so sure. How is the
> rabbit_persister.LOG managed? Can I just take a backup copy of it
> whenever, or may I only take one of the rabbit_persister.LOG.previous?

I'd back up both files. It should be possible to restore the
rabbit_persister.LOG from a backup even when that backup was taken in
the middle of an append - I haven't tested that though. The .previous
log is needed in case the backup takes place while the log is being rolled.

> Where would I look to find out how often it is rolled?

The logic for deciding when to roll the log is rather complex.

> Can I trigger a manual roll?

rabbit_persister:force_snapshot() in the Erlang shell does the trick.


Regards,

Matthias.

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum