RABBITMQ_MNESIA size

755 views
Skip to first unread message

Pavel

unread,
Jan 22, 2016, 9:15:12 AM1/22/16
to rabbitmq-users
Hi all!

We are using RabbitMQ with message persistent option,
so files, stored in ${install_prefix}/var/lib/rabbitmq/mnesia
growing up util drive become full, and RabbitMQ will hang up.

After restart it clear mnesia files and the story begins again.

Could anyone please point me how to limit or purge mnesia files correctly.

Thank you beforehand,
Pavel.

Michael Klishin

unread,
Jan 22, 2016, 9:32:52 AM1/22/16
to rabbitm...@googlegroups.com, Pavel
On 22 January 2016 at 17:15:15, Pavel (pavel....@gmail.com) wrote:
> We are using RabbitMQ with message persistent option,
> so files, stored in ${install_prefix}/var/lib/rabbitmq/mnesia
> growing up util drive become full, and RabbitMQ will hang up.

You may want to get familiar with the free disk space limit:
http://www.rabbitmq.com/alarms.html

> After restart it clear mnesia files and the story begins again.
>
> Could anyone please point me how to limit or purge mnesia files
> correctly.

If you consistently run out of disk space, the real question is how to
prevent this.

You have a few options:

 * Move RabbitMQ database directory to a larger partition/drive
 * Limit queue length or use TTL
 * Use more nodes with mirroring to only a subset or no mirroring at all 

https://www.rabbitmq.com/maxlength.html
http://www.rabbitmq.com/ttl.html
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Pavel

unread,
Jan 22, 2016, 11:51:12 AM1/22/16
to rabbitmq-users, pavel....@gmail.com
Thanks a lot for your reply!


On Friday, January 22, 2016 at 5:32:52 PM UTC+3, Michael Klishin wrote:
On 22 January 2016 at 17:15:15, Pavel (pavel....@gmail.com) wrote:
> We are using RabbitMQ with message persistent option,
> so files, stored in ${install_prefix}/var/lib/rabbitmq/mnesia  
> growing up util drive become full, and RabbitMQ will hang up.  

You may want to get familiar with the free disk space limit:
http://www.rabbitmq.com/alarms.html


> After restart it clear mnesia files and the story begins again.  
>  
> Could anyone please point me how to limit or purge mnesia files  
> correctly.

If you consistently run out of disk space, the real question is how to
prevent this.

You have a few options:

 * Move RabbitMQ database directory to a larger partition/drive
 * Limit queue length or use TTL

Do I understood correctly - If we use persistent message option all messages will be logged to disk anyway without deleting log when messsages delivered?
 
 * Use more nodes with mirroring to only a subset or no mirroring at all 

https://www.rabbitmq.com/maxlength.html
http://www.rabbitmq.com/ttl.html
--  
MK  

Staff Software Engineer, Pivotal/RabbitMQ  

--
Pavel

Michael Klishin

unread,
Jan 22, 2016, 7:23:06 PM1/22/16
to rabbitm...@googlegroups.com, Pavel
On 22 January 2016 at 19:51:15, Pavel (pavel....@gmail.com) wrote:
> Do I understood correctly - If we use persistent message option
> all messages will be logged to disk anyway without deleting log
> when messsages delivered?

Only if they are routed to durable queues. Transient (non-durable, but also
exclusive ) queues are discarded on node start.
Reply all
Reply to author
Forward
0 new messages