]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mpm_event: Restart stopping of idle children after a load peak. PR 65626.
authorYann Ylavic <ylavic@apache.org>
Fri, 15 Oct 2021 10:29:00 +0000 (10:29 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 15 Oct 2021 10:29:00 +0000 (10:29 +0000)
commit4f9e7cf5d7dda9011afee1b886f5c27eec77d148
tree6b13a380a52f6cc3006030909624654e38fec650
parent1a303fdb6f0d938eccfa7a6e7811d08bd2432d4a
mpm_event: Restart stopping of idle children after a load peak. PR 65626.

r1770752 added an heuristic to avoid stopping children when the load triggers
MaxSpareThreads but children take some time to shut down until the point where
active_daemons_limit/ServerLimit is reached (scoreboard full) and no child gets
created to handle incoming connections.

However when this happens there is nothing to stop children again when the load
settles down (besides MaxRequestsPerChild, which may be 0) so let's restart to
stop children again if/when idle_thread_count reaches max_workers / 4.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894285 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/event-kill_at_total_daemons_limit.txt [new file with mode: 0644]
server/mpm/event/event.c