[rabbitmq-discuss] Config File Options

Matthew Sackman matthew at rabbitmq.com
Mon Sep 6 21:31:06 BST 2010


On Mon, Sep 06, 2010 at 02:24:50PM -0600, Jason J. W. Williams wrote:
> That helps a lot. Is msg_store_file_size_limit the maximum size of the
> persistent store or the max size of the journal?

Really this needs a proper blog post or some configuration guide to
explain but the following will suffice for the time being.

There is one msg_store per node. It creates files to hold messages from
all the queues. The files it creates are limited in size, and GC occurs
when conditions are met to avoid large amounts of wasted space in those
files when messages are removed. The msg_store_file_size_limit controls
the size of those files.

Each queue needs to (sometimes) record on disk the order and status of
messages in the queue. This is strictly meta information. For various
reasons relating to the ways in which queues are typically used, this
information is first written to a journal (per queue) before being
scattered (effectively, sorted) out to other files (again, all per
queue). The queue_index_max_journal_entries controls the number of
entries in the journal before it gets flushed. There no size control
here, but the maximum size is very low because these are simply meta
datums about each message and its state (has it been published, has it
been delivered, has it been acknowledged).

Matthew


More information about the rabbitmq-discuss mailing list