Saltstack Official Apache Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.0KB

  1. # Managed by saltstack
  2. {%- set mpm_param = salt['pillar.get']('apache:mpm:params', {}) %}
  3. # event MPM
  4. # StartServers: initial number of server processes to start
  5. # MinSpareThreads: minimum number of worker threads which are kept spare
  6. # MaxSpareThreads: maximum number of worker threads which are kept spare
  7. # ThreadsPerChild: constant number of worker threads in each server process
  8. # MaxRequestWorkers: maximum number of worker threads
  9. # MaxConnectionsPerChild: maximum number of requests a server process serves
  10. <IfModule mpm_event_module>
  11. StartServers {{ mpm_param['start_servers'] | d('2') }}
  12. MaxRequestWorkers {{ mpm_param['max_request_workers'] | d('150') }}
  13. MinSpareThreads {{ mpm_param['min_spare_threads'] | d('25') }}
  14. MaxSpareThreads {{ mpm_param['max_spare_threads'] | d('75') }}
  15. ThreadLimit {{ mpm_param['thread_limit'] | d('64') }}
  16. ThreadsPerChild {{ mpm_param['threads_per_child'] | d('25') }}
  17. MaxConnectionsPerChild {{ mpm_param['max_connections_per_child'] | d('0') }}
  18. </IfModule>
  19. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet