[rabbitmq-discuss] Randomized Round-Robin?
tim at rabbitmq.com
Thu Mar 28 15:36:44 GMT 2013
On 27 Mar 2013, at 13:26, Martin Koch wrote:
> This seems to have the effect that messages are first rounded to worker 1..N on host A, then worker 1..N on host B, etc. This basically means that only one of the hosts is doing the bulk of the work at any given time.
> What I would like to achieve is that a random worker is chosen instead of the deterministic round-robin.
Without randomising, you could use prefetch counts to approximate fair dispatch (as in http://www.rabbitmq.com/tutorials/tutorial-two-python.html). Would that do what you want instead of using randomness?
> Any ideas?
> /Martin Koch - Senior Systems Architect - Issuu.com
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
More information about the rabbitmq-discuss