]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listener: always compare the local thread as well
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Apr 2023 16:06:16 +0000 (18:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Apr 2023 15:41:26 +0000 (17:41 +0200)
commit8adffaa899ec24c023f9b2163cb51a92cdad5e7b
tree69e1cd5bcbb02ce01c143d24274a9004c2aa00c7
parentff18504d7322ee262caa257dc0241afc9d8493c4
MINOR: listener: always compare the local thread as well

By comparing the local thread's load with the least loaded thread's
load, we can further improve the fairness and at the same time also
improve locality since it allows a small ratio of connections not to
be migrated. This is visible on CPU usage with long connections on
very large thread counts (224) and high bandwidth (200G). The cost
of checking the local thread's load remains fairly low so there's no
reason not to do this. We continue to update the index if we select
the local thread, because it means that the two other threads were
both more loaded so we'd rather find better ones.
src/listener.c