[rabbitmq-discuss] Very slow get (dequeue) on node B if shovel on node A is configured with {ack_mode, on_confirm}

bratner bratner ratner2 at gmail.com
Wed Feb 13 14:33:55 GMT 2013


Hi!

My setup includes a rabbitmq-c application that publishes messages on node
A.
The publishing rate is about 200mps, each message can be up to 10Kb.

Shovel (node A) is configured to move them to node B.
On node B i'm dequeuing the messages with a PHP test script with
$queue->get(AMQP_AUTOACK).
If i keep the publishing rate at 200mps then i can see that the queue on
node A is empty and the Q on node B is
filling up. The read-rate of my test script is really low.

If i stop the publishing, 3-5 seconds later, my test script starts reading
like crazy until the queue on node B is empty.

Even If I slow down the publishing rate to 5mps , same is happening ,
messages are piling up on node B until i dial down the pressure.

This problem disappears if I set ack_mode to on_publish or no_ack. In this
case the reader script reads with the publishing speed.

My configuration :



[
{rabbit, [
{log_levels, [{connection, error}]}
]},
{rabbitmq_shovel,
[ {shovels, [ {messagemover, [
{sources, [
{broker, "amqp://usera:pass@localhost/vhosta<amqp://cdrposter:4VkI6MKH@localhost/sipout>
"},
{declarations, [
{'exchange.declare',[{exchange, <<"my-fanout">>},{type,
<<"fanout">>},durable]},
{'queue.declare',[{queue,<<"messages">>},durable]},
{'queue.bind',[{exchange, <<"my-fanout">>},{queue, <<"messages">>}]}
]}
]},
{destinations, [
{brokers, [ "amqp://userb:pass@nodeB/vhostb<amqp://cdr_manager:Ci2XOb3b@10.200.10.218/cdrs>"
]},
{declarations, [
{'exchange.declare',[{exchange, <<"my-fanout">>},{type,
<<"fanout">>},durable]},
{'queue.declare',[{queue,<<"messages">>},durable]},
{'queue.bind',[{exchange, <<"my-fanout">>},{queue, <<"messages">>}]}
]}
]},
{queue, <<"messages">>},
{prefetch_count, 200},
{ack_mode, on_confirm},
{publish_properties, [{delivery_mode, 2}]},
{reconnect_delay, 5}
]}
]}
]}
].


Thank you,
Boris.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130213/d4467be0/attachment.htm>


More information about the rabbitmq-discuss mailing list