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.

27 lines
1.2KB

  1. # Managed by saltstack
  2. {%- set mpm_param = salt['pillar.get']('apache:mpm:params', {}) %}
  3. # worker 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. # ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
  8. # graceful restart. ThreadLimit can only be changed by stopping
  9. # and starting Apache.
  10. # ThreadsPerChild: constant number of worker threads in each server process
  11. # MaxRequestWorkers: maximum number of threads
  12. # MaxConnectionsPerChild: maximum number of requests a server process serves
  13. <IfModule mpm_worker_module>
  14. StartServers {{ mpm_param['start_servers'] | d('2') }}
  15. MaxRequestWorkers {{ mpm_param['max_request_workers'] | d('150') }}
  16. MinSpareThreads {{ mpm_param['min_spare_threads'] | d('25') }}
  17. MaxSpareThreads {{ mpm_param['max_spare_threads'] | d('75') }}
  18. ThreadLimit {{ mpm_param['thread_limit'] | d('64') }}
  19. ThreadsPerChild {{ mpm_param['threads_per_child'] | d('25') }}
  20. MaxConnectionsPerChild {{ mpm_param['max_connections_per_child'] | d('0') }}
  21. </IfModule>
  22. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet