Skip to content

Commit 404ff25

Browse files
hsbtclaude
andcommitted
Raise MaxRequestWorkers to 400
Browsing costs two workers rather than one, because the front vhost proxies to Anubis and Anubis proxies back into this same apache on port 3001. The Debian default of 150 caps concurrent browsing at 75, which the front door still reaches in bursts: AH00484 fired 34 times in two weeks outside the window the hourly restart accounts for. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 0844bf5 commit 404ff25

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

recipes/apache2.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@
3333
to '../conf-available/cgit.conf'
3434
end
3535

36+
remote_file '/etc/apache2/conf-available/mpm-tuning.conf' do
37+
mode '644'
38+
owner 'root'
39+
notifies :restart, 'service[apache2]'
40+
end
41+
42+
link '/etc/apache2/conf-enabled/mpm-tuning.conf' do
43+
to '../conf-available/mpm-tuning.conf'
44+
notifies :restart, 'service[apache2]'
45+
end
46+
3647
%w[git svn].each do |subdomain|
3748
remote_file "/etc/apache2/sites-available/#{subdomain}.ruby-lang.org.conf" do
3849
mode '644'
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Overrides what mods-available/mpm_event.conf sets. That file is a dpkg
2+
# conffile, so it is left alone and this one wins by being included later.
3+
#
4+
# Browsing costs two workers rather than one: the front vhost proxies to Anubis
5+
# and Anubis proxies back into this same apache on port 3001. Debian's default
6+
# of 150 therefore caps concurrent browsing at 75, and AH00484 fires on bursts
7+
# even though steady state is 35 to 55 busy workers. 16 children of 25 threads
8+
# is the event MPM's own ServerLimit, and costs about 400 MB out of 7 GB.
9+
<IfModule mpm_event_module>
10+
ServerLimit 16
11+
MaxRequestWorkers 400
12+
</IfModule>

0 commit comments

Comments
 (0)