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.

28 lines
1.2KB

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