[zeromq-dev] Simple example for load balancing in Python
Boris Dj
djboris.debian at gmail.com
Sat Mar 30 18:34:11 CET 2013
Hi there
I'm trying to find out how to solve the following problem:
- A producer pushes work to workers (REQ/REP or PUSH/PULL)
- The worker only accepts work, if he is not busy (Load balancing)
- The workers push their results to a collector (PUSH/PULL)
How can I implement this situation in Python. The result of everything I
tried is a Round-Robin distribution of tasks, which I can't use.
I need this solution because all tasks have a different -not predictable-
time to solve and I can't afford to wait for slow workers/tasks.
I looked in http://zguide.zeromq.org/py:chapter3 but I hadn't success with
understanding this or finding an similar situatition.
Can anyone send me an example in Python or at least in any other language
or give me any hints how to solve this problem?
Thank you very much
- Boris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130330/fe8b79db/attachment.htm>
More information about the zeromq-dev
mailing list