]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: listener: only start listeners bound to the same processes
authorWilly Tarreau <w@1wt.eu>
Wed, 7 May 2014 17:22:24 +0000 (19:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 May 2014 17:16:26 +0000 (19:16 +0200)
commitae30253c2714a67c3be4b142d61dbd4dac3c2240
tree0fd9de664a259a627ff9de4f113662c9252e28bf
parent3d20958190e2afa55b0b0607b7c1b36e1b1cad3e
MAJOR: listener: only start listeners bound to the same processes

Now that we know what processes a "bind" statement is attached to, we
have the ability to avoid starting some of them when they're not on the
proper process. This feature is disabled when running in foreground
however, so that debug mode continues to work with everything bound to
the first and only process.

The main purpose of this change is to finally allow the global stats
sockets to be each bound to a different process.

It can also be used to force haproxy to use different sockets in different
processes for the same IP:port. The purpose is that under Linux 3.9 and
above (and possibly other OSes), when multiple processes are bound to the
same IP:port via different sockets, the system is capable of performing
a perfect round-robin between the socket queues instead of letting any
process pick all the connections from a queue. This results in a smoother
load balancing and may achieve a higher performance with a large enough
maxaccept setting.
doc/configuration.txt
src/listener.c