[rabbitmq-discuss] Durable queues persister file size

Tony Garnock-Jones tonyg at lshift.net
Wed Sep 10 16:28:19 BST 2008


Eran Sandler wrote:
> When I send an Ack message, the message should be deleted from the
> rabbit_persister.log file, right?

Yes, but the way it's done is a bit tricky: the log file is append-only,
so what the system does is write a record to it noting the fact of the
arrival of the ack. When the file grows beyond a certain point, the
persister will "garbage-collect" the log and start a new log file, which
will contain only the remaining unacknowledged messages.

> Is there a required delete operation that I need to do?

Not unless you have a very limited amount of space, that is smaller than
the default limits on the persister log file size. In that case, you'll
have to tweak the source code to make the "garbage-collector" run more
often.

Regards,
  Tony
-- 
 [][][] Tony Garnock-Jones     | Mob: +44 (0)7905 974 211
   [][] LShift Ltd             | Tel: +44 (0)20 7729 7060
 []  [] http://www.lshift.net/ | Email: tonyg at lshift.net




More information about the rabbitmq-discuss mailing list