Skip to content

Commit 0844bf5

Browse files
hsbtclaude
andcommitted
Stop restarting apache2 every hour
root's crontab has carried "20 * * * * systemctl restart apache2" since before Anubis, unmanaged. It guards nothing (children settle around 25 MB and never leak) and it causes the worker exhaustion it looks like a cure for: 57 of the 91 AH00484 events in the last two weeks fall within eight minutes of it, when the 63,000 requests an hour hitting the front door all reconnect at once against StartServers 2. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent b7a2392 commit 0844bf5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

recipes/apache2.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,13 @@
7676
end
7777
end
7878
end
79+
80+
# root's crontab carried "20 * * * * systemctl restart apache2" from before
81+
# Anubis, outside this repository. It fixed nothing: children settle at 25 MB
82+
# and never leak. It caused harm instead. 57 of the 91 AH00484 (MaxRequestWorkers
83+
# exhausted) events in the last two weeks landed within eight minutes of it,
84+
# because the 63,000 requests an hour arriving at the front door all reconnect
85+
# at once against StartServers 2.
86+
file '/var/spool/cron/crontabs/root' do
87+
action :delete
88+
end

0 commit comments

Comments
 (0)