[rabbitmq-discuss] Randomized Round-Robin?

Tim Watson 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?
> Thanks,
> /Martin Koch - Senior Systems Architect - Issuu.com
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

More information about the rabbitmq-discuss mailing list