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.

24 lines
1.1KB

  1. #
  2. # This file is managed by Salt! Do not edit by hand!
  3. #
  4. {%- set mpm_param = salt['pillar.get']('apache:mpm:params', {}) %}
  5. # event 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. # ThreadsPerChild: constant number of worker threads in each server process
  10. # MaxRequestWorkers: maximum number of worker threads
  11. # MaxConnectionsPerChild: maximum number of requests a server process serves
  12. <IfModule mpm_event_module>
  13. StartServers {{ mpm_param['start_servers'] | d('2') }}
  14. MaxRequestWorkers {{ mpm_param['max_request_workers'] | d('150') }}
  15. MinSpareThreads {{ mpm_param['min_spare_threads'] | d('25') }}
  16. MaxSpareThreads {{ mpm_param['max_spare_threads'] | d('75') }}
  17. ThreadLimit {{ mpm_param['thread_limit'] | d('64') }}
  18. ThreadsPerChild {{ mpm_param['threads_per_child'] | d('25') }}
  19. MaxConnectionsPerChild {{ mpm_param['max_connections_per_child'] | d('0') }}
  20. </IfModule>
  21. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet