27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
|
# 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
|