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.

25 lines
1.0KB

  1. # Managed by saltstack
  2. {%- set mpm_param = salt['pillar.get']('apache:mpm:params', {}) %}
  3. # prefork MPM
  4. # StartServers: number of server processes to start
  5. # MinSpareServers: minimum number of server processes which are kept spare
  6. # ServerLimit: maximum number of server processes
  7. # MaxSpareServers: maximum number of server processes which are kept spare
  8. # MaxRequestWorkers: maximum number of server processes allowed to start
  9. # MaxConnectionsPerChild: maximum number of requests a server process serves
  10. <IfModule mpm_prefork_module>
  11. StartServers {{ mpm_param['start_servers'] | d('5') }}
  12. MaxRequestWorkers {{ mpm_param['max_request_workers'] | d('150') }}
  13. {%- if mpm_param['max_request_workers'] | d('150') >= 256 %}
  14. ServerLimit {{ mpm_param['max_request_workers'] | d('150') }}
  15. {%- endif %}
  16. MinSpareServers {{ mpm_param['min_spare_servers'] | d('5') }}
  17. MaxSpareServers {{ mpm_param['max_spare_servers'] | d('10') }}
  18. MaxConnectionsPerChild {{ mpm_param['max_connections_per_child'] | d('0') }}
  19. </IfModule>
  20. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet