[rabbitmq-discuss] what would cause queue size to immediately go to 0?

Matthew Sackman matthew at rabbitmq.com
Fri Nov 5 13:56:07 GMT 2010


On Fri, Nov 05, 2010 at 01:33:38PM +0000, Marek Majkowski wrote:
> Please try using explicit acknowledgments, with no_ack=False
> and do acks manually using `basic_ack`

You might also need to use basic.qos to prevent the broker flooding the
client with msgs. But in general, this behaviour is "fine", provided
that's what you require in terms of behaviour of the consumers.

It's always worth looking at messages_ready (i.e. messages in the queue
which have not been delivered yet) and messages_unacknowledged (i.e.
messages which have been delivered by the queue for which no
acknowledgement has been received yet), to see quite what's going on.
(The "messages" field is the sum of those two).

Matthew


More information about the rabbitmq-discuss mailing list