commit | 079cb9af22da65e528a14abbcc83c7d94206ccd9 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <cognet@ci0.org> | Mon Mar 30 00:23:57 2020 +0200 |
committer | Olivier Houchard <cognet@ci0.org> | Mon Mar 30 00:30:07 2020 +0200 |
tree | d5e1d4ef909997abe24f4995dc28ea8133196e04 | |
parent | cf612a0457bd9e658d772dc426064d3865c89ff7 [diff] |
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.