[rabbitmq-discuss] Ignore delivery mode 2 in some queues
matthew at rabbitmq.com
Thu Apr 26 23:42:06 BST 2012
On Thu, Apr 26, 2012 at 07:35:45PM -0300, Pablo Molnar wrote:
> The question is how I can ignore the delivery mode 2 (persistent) for the
> log queue. Sometimes in peak hours there is a lot of enqueued in the log
> queue and I feel it is due persistence overhead, I don't need high
> availability for log queue.
Make the log queue non-durable. Messages are only immediately written to
disk if they are persistent and sent to a durable queue.
However, the same persistent msg sent to many durable queues only gets
written to disk once. Each queue has to do a small amount of on-disk
writing to record that the msg is in the queue, but the msg itself only
gets written once. Thus the extra cost of accidentally sending the msg
to another durable queue should be very low.
More information about the rabbitmq-discuss