]> git.kaiwu.me - haproxy.git/commit
MEDIUM: servers: Add strict-maxconn.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 6 Feb 2025 16:07:48 +0000 (17:07 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 26 Feb 2025 12:00:18 +0000 (13:00 +0100)
commit706b008429220e011f3ac9a074ff0e8c83492fb7
treec33f50da9cf86927c8899854dd4b61b15b84fd91
parent8de8ed4f48729f07ccdf0671e64483fbc82e0964
MEDIUM: servers: Add strict-maxconn.

Maxconn is a bit of a misnomer when it comes to servers, as it doesn't
control the maximum number of connections we establish to a server, but
the maximum number of simultaneous requests. So add "strict-maxconn",
that will make it so we will never establish more connections than
maxconn.
It extends the meaning of the "restricted" setting of
tune.takeover-other-tg-connections, as it will also attempt to get idle
connections from other thread groups if strict-maxconn is set.
doc/configuration.txt
include/haproxy/server-t.h
src/backend.c
src/connection.c
src/server.c
src/stream.c