[rabbitmq-discuss] Durable queues and high availability (broker failage)
matthias at lshift.net
Wed Jul 29 01:34:12 BST 2009
Wilson Ke wrote:
> When I restart rabbitmq server,the durable queue had purge all
> messages. I want to remain these messages in the durable queue after
> restart rabbitmq server,how can I do? Btw,I use
> deliverymode=2(persistent) to send messages to the queue.
As long as the queues are marked as durable, are not exclusive or
auto-delete, and the messages are marked as persistent, then the queues
and messages should survive a broker restart.
If all these conditions are met in your setup and the messages still
disappear then please post the code that creates the queues and the code
that sends the messages.
More information about the rabbitmq-discuss