summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2014-04-16 21:14:00 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2014-04-16 21:14:00 +0100
commita6439b55f8611dec9c0c9fab4e543f206a6e0360 (patch)
treef05aa6e0ce9419c6b7967be9af6631b35361bff2 /codegen.py
parentf4d79ac0137ae0a8c82f8aaf275636eabd33c9d9 (diff)
downloadrabbitmq-server-git-a6439b55f8611dec9c0c9fab4e543f206a6e0360.tar.gz
record workers in a set
...instead of a queue. That way when an idle worker is restarted (and sends an 'idle' message to the pool), it won't end up in the pool twice. Note that we always hand out work to the first worker in the ordset. That is actually more efficient than the round-robin strategy we had with the queue since it keeps a smaller number of workers busy while others can hibernate.
Diffstat (limited to 'codegen.py')
0 files changed, 0 insertions, 0 deletions