[rabbitmq-discuss] about msg_store_persistent folder

618 views
Skip to first unread message

Kevin Chan

unread,
Jan 13, 2011, 2:17:48 AM1/13/11
to rabbitmq...@lists.rabbitmq.com
Hi Everyone 
  
  I send msg to rabbbitmq server ,on the server,the folder(/var/lib/rabbitmq/mnesia/rabbit@localhost/msg_store_transient) size will became bigger and bigger.how to deal with 

it. may i del this folder's file when rabbitmq server running,or is there any way to limmit the folder growing?  Thanks   
 

--
Kevin Chan

XiaMen China




Matthew Sackman

unread,
Jan 13, 2011, 7:54:40 AM1/13/11
to rabbitmq...@lists.rabbitmq.com
Hi Kevin,

On Thu, Jan 13, 2011 at 03:17:48PM +0800, Kevin Chan wrote:
> I send msg to rabbbitmq server ,on the server,the folder(
> /var/lib/rabbitmq/mnesia/rabbit@localhost/msg_store_transient) size will
> became bigger and bigger.how to deal with
> it. may i del this folder's file when rabbitmq server running,or is there
> any way to limmit the folder growing?

The way to limit the folder growing is to consume and acknowledge
messages from the broker. Rabbit will only write messages to disk which
have not been consumed and when necessary - either the messages are
being published persistent (delivery_mode = 2) or the broker is under
memory pressure and is thus writing to disk to free up memory.

If you stop the queues from growing (either by not publishing messages,
or by consuming and acknowledging messages from the queues) then Rabbit
will have no reason to write messages to disk.

Matthew
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq...@lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Kevin Chan

unread,
Jan 18, 2011, 2:38:25 AM1/18/11
to rabbitmq...@lists.rabbitmq.com
Thanks Matthew 

    as u say when the message has consumed the messages on disk will be del,but i'm not sure that the message will be consumer in time,so i need to keep have enough free disk ,i mount other partition to the rabbitmq folder ,it's success,but  the rabbitmq-server can not start,  is there anythings i should do?    

2011/1/13 Matthew Sackman <mat...@rabbitmq.com>

Matthew Sackman

unread,
Jan 19, 2011, 7:56:18 AM1/19/11
to rabbitmq...@lists.rabbitmq.com
On Tue, Jan 18, 2011 at 03:38:25PM +0800, Kevin Chan wrote:
> as u say when the message has consumed the messages on disk will be
> del,but i'm not sure that the message will be consumer in time

Ok, you could investigate the queue message ttl feature. See:
http://www.rabbitmq.com/extensions.html#queue-ttl

> ,so i need to
> keep have enough free disk ,i mount other partition to the rabbitmq folder
> ,it's success,but the rabbitmq-server can not start, is there anythings i
> should do?

Check the permissions on the mount and the folders.

Reply all
Reply to author
Forward
0 new messages