]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: peers: Balance applets across threads
authorMaciej Zdeb <maciej@zdeb.pl>
Mon, 16 May 2022 15:27:28 +0000 (17:27 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 May 2022 14:13:22 +0000 (16:13 +0200)
commit34e4085f8a1e1b18f72ceeb2fee6c844965b88d7
tree228795b5c0c0eb8219e6e07091bc8aea5c272a02
parentd01be2ab134a340980ac961b522835c7273b09ec
MEDIUM: peers: Balance applets across threads

When creating a new applet for peer outgoing connection, we check
the load on each thread. Threads with least applet count are
preferred.

With this solution we avoid a situation when many outgoing
connections run on the same thread causing significant load on
single CPU core.
src/peers.c