[zeromq-dev] zmq load balancing from the Tornado event loop
Thomas Jackson
jacksontj.89 at gmail.com
Sat Jan 19 20:07:36 CET 2013
I'm fairly new to zeromq and have been trying to get some more background
in how stuff works, as suuch I've been running through a few examples in
the pyzmq github repo. I was working on the async web example (
https://github.com/zeromq/pyzmq/blob/master/examples/eventloop/asyncweb.py)
and was working on extending it to have a pool of processes for the
"slow_responder" instead of a single thread. My changes are here:
http://pastebin.com/h2vhrQxu. This issue that I've been running into is
that it seems that all requests for the slow_responder go to a single
process, instead of being load balanced across both of them. I believe this
is caused by the "recreation" of the zmq instance on every request which
probably is messing with the RR algorithm. If there a better way to do
this? Or would I need to have my own mechanism for distributing the load to
the correct sockets?
Thomas Jackson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130119/4d700f04/attachment.htm>
More information about the zeromq-dev
mailing list