]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/apache2/templates/mpm_worker.erb
Revert "Revert "small number of apaches on popcon host""
[dsa-puppet.git] / modules / apache2 / templates / mpm_worker.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ##
4
5 # worker MPM
6 # StartServers: initial number of server processes to start
7 # MinSpareThreads: minimum number of worker threads which are kept spare
8 # MaxSpareThreads: maximum number of worker threads which are kept spare
9 # ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
10 #              graceful restart. ThreadLimit can only be changed by stopping
11 #              and starting Apache.
12 # ThreadsPerChild: constant number of worker threads in each server process
13 # MaxRequestWorkers: maximum number of threads
14 # MaxConnectionsPerChild: maximum number of requests a server process serves
15
16 # default config:
17 #    StartServers              2
18 #    MinSpareThreads          25
19 #    MaxSpareThreads          75
20 #    ThreadLimit              64
21 #    ThreadsPerChild          25
22 #    MaxRequestWorkers       150
23 #    MaxConnectionsPerChild    0
24
25 <IfModule mpm_worker_module>
26 <% if scope.function_has_role(['bugs_base']) or
27       scope.function_has_role(['popcon'])
28       -%>
29     StartServers                 2
30     MinSpareThreads             25
31     MaxSpareThreads             75
32     ThreadLimit                 64
33     ThreadsPerChild             25
34     MaxRequestWorkers          150
35     MaxConnectionsPerChild   10000
36 <% else -%>
37     ServerLimit                 30
38     MaxRequestWorkers         1500
39     ThreadsPerChild             50
40     MinSpareThreads             20
41     MaxSpareThreads             75
42     MaxConnectionsPerChild 1000000
43 <% end -%>
44 </IfModule>
45
46 # vim: syntax=apache ts=4 sw=4 sts=4 sr et