2015-06-19 20:44:53 +02:00
|
|
|
# Managed by saltstack
|
|
|
|
|
|
|
|
{%- set mpm_param = salt['pillar.get']('apache:mpm:params', {}) %}
|
|
|
|
|
|
|
|
# prefork MPM
|
|
|
|
# StartServers: number of server processes to start
|
|
|
|
# MinSpareServers: minimum number of server processes which are kept spare
|
2016-07-29 19:19:46 +02:00
|
|
|
# ServerLimit: maximum number of server processes
|
2015-06-19 20:44:53 +02:00
|
|
|
# MaxSpareServers: maximum number of server processes which are kept spare
|
|
|
|
# MaxRequestWorkers: maximum number of server processes allowed to start
|
|
|
|
# MaxConnectionsPerChild: maximum number of requests a server process serves
|
|
|
|
|
|
|
|
<IfModule mpm_prefork_module>
|
|
|
|
StartServers {{ mpm_param['start_servers'] | d('5') }}
|
|
|
|
MaxRequestWorkers {{ mpm_param['max_request_workers'] | d('150') }}
|
2016-07-29 19:19:46 +02:00
|
|
|
{%- if mpm_param['max_request_workers'] | d('150') >= 256 %}
|
|
|
|
ServerLimit {{ mpm_param['max_request_workers'] | d('150') }}
|
|
|
|
{%- endif %}
|
2015-06-19 20:44:53 +02:00
|
|
|
MinSpareServers {{ mpm_param['min_spare_servers'] | d('5') }}
|
|
|
|
MaxSpareServers {{ mpm_param['max_spare_servers'] | d('10') }}
|
|
|
|
MaxConnectionsPerChild {{ mpm_param['max_connections_per_child'] | d('0') }}
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|