apache-formula/apache/files/Debian/mpm/mpm_worker.conf.jinja
Niels Abspoel 53b995a680 Improved apache-formula
- Added more modules and configuration options
 - Renamed sls files to reflect what they do.
 - added mpm options for Debian
2015-06-19 20:44:53 +02:00

27 lines
1.2 KiB
Django/Jinja

# Managed by saltstack
{%- set mpm_param = salt['pillar.get']('apache:mpm:params', {}) %}
# worker MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
# graceful restart. ThreadLimit can only be changed by stopping
# and starting Apache.
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestWorkers: maximum number of threads
# MaxConnectionsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
StartServers {{ mpm_param['start_servers'] | d('2') }}
MaxRequestWorkers {{ mpm_param['max_request_workers'] | d('150') }}
MinSpareThreads {{ mpm_param['min_spare_threads'] | d('25') }}
MaxSpareThreads {{ mpm_param['max_spare_threads'] | d('75') }}
ThreadLimit {{ mpm_param['thread_limit'] | d('64') }}
ThreadsPerChild {{ mpm_param['threads_per_child'] | d('25') }}
MaxConnectionsPerChild {{ mpm_param['max_connections_per_child'] | d('0') }}
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet