[zeromq-dev] Load balancing algorithm

Holger Hoffstaette holger.hoffstaette at googlemail.com
Mon Jun 28 20:20:31 CEST 2010

On Mon, 28 Jun 2010 11:08:13 -0500, Brian Granger wrote:

> The current load balancing algorithm used by the XREQ socket is defined in
> lb.cpp.  Requests are simply round robin'ed through the active pipes:
> [snip]
> I am wondering if we can do better than this.  My idea is to pick a client
> at random, rather that walking through them sequentially.

Btw: http://berezecki.com/?p=22

I'm a big fan of randomization, however for "perfect" balancing (e.g.
request/response time minimization) of jobs with large deviation you'll
always need statistics or weights. Things only get more complicated from
there. :)


More information about the zeromq-dev mailing list