|
|
| Author |
Message |
|
| Guest |
Posted: Tue Nov 03, 2009 9:48 am |
|
|
|
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 |
|
|
| Back to top |
|
| Guest |
Posted: Thu Nov 05, 2009 9:13 am |
|
|
|
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 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|