]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connections: Revamp the way idle connections are killed
authorOlivier Houchard <cognet@ci0.org>
Sun, 29 Mar 2020 22:23:57 +0000 (00:23 +0200)
committerOlivier Houchard <cognet@ci0.org>
Sun, 29 Mar 2020 22:30:07 +0000 (00:30 +0200)
commit079cb9af22da65e528a14abbcc83c7d94206ccd9
treed5e1d4ef909997abe24f4995dc28ea8133196e04
parentcf612a0457bd9e658d772dc426064d3865c89ff7
MEDIUM: connections: Revamp the way idle connections are killed

The original algorithm always killed half the idle connections. This doesn't
take into account the way the load can change. Instead, we now kill half
of the exceeding connections (exceeding connection being the number of
used + idle connections past the last maximum used connections reached).
That way if we reach a peak, we will kill much less, and it'll slowly go back
down when there's less usage.
src/server.c