[rabbitmq-discuss] Consumer setup performance / starvation issue

flzz nominal at gmail.com
Mon Jun 20 19:55:06 BST 2011


Yup, certainly does change the behavior.  I put a 1ms sleep before the
ack and all the workers establish a full consumer connection in a
reasonable amount of time.

Etrik

On Jun 20, 2:35 pm, Matthias Radestock <matth... at rabbitmq.com> wrote:
> Etrik,
>
> On 20/06/11 19:25, flzz wrote:
>
> > 1. Start a single producer, let it queue 500,000 messages or so, then
> > stop it
> > 2. Start up 16 workers to consume the queue (workers have a prefetch
> > of 1)
>
> > The first 7 to 8 workers will successfully setup and start
> > processing messages, the other 8 to 9 workers will sit in a wait
> > state while trying to set themselves up as consumers. Only after all
> > the messages in the queue are processed will the rest of the workers
> > successfully establish a connection as a consumer. >
> > [...]
> > Another item worth mentioning, is that rabbitmqctl list_channels
> > will exhibit the same wait issue when workers are processing the
> > queued messages.
>
> I have a theory for why this may be happening. To confirm it, could you
> please get your workers to run more slowly, e.g. insert a sleep/pause
> between them receiving a message and then ack'ing it. Does that change
> the behaviour?
>
> Regards,
>
> Matthias.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-disc... at lists.rabbitmq.comhttps://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list