[zeromq-dev] loadbalancing problem?

Nir Soffer nirsof at gmail.com
Wed Oct 20 16:09:50 CEST 2010


Doesn't the Least-Recently Used Routing method solve your problem?
http://zguide.zeromq.org/chapter:all#toc44

You send messages only to ready workers - if there is no ready worker,
fail after some timeout.

On Wed, Oct 20, 2010 at 3:47 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
>
> Sven,
>
> > I saw, there already is some technique in the loadbalancer to take a
> > busy pipe out of the loop.
> > What I didn't find, was the reinsertion of that pipe. When (on what
> > event and where) does the pipe get revive()ed again ? There are tons of
> > revive() but no references to them.
> >
> > I think at this position it should be possible to unwind the routing
> > information to search for the target pipe's socket ID and eventually
> > choose another pipe for sending if found.
>
> Yes. There is a way to remove the pipe from the load balancer. The
> problem is that you have no idea *when* you should remove it.
>
> Martin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list