Commit 3c04a83e authored by Joshua Timberman's avatar Joshua Timberman
Browse files

Merge pull request #44 from jcam/master

COOK-2372: apache2 mpm_worker: add ServerLimit attribute (default to 16)
parents 1115ef4a 8cab584d
......@@ -198,6 +198,7 @@ Worker attributes are used for tuning the Apache HTTPD worker MPM
configuration.
* `node['apache']['worker']['startservers']` - Initial number of server processes to start. Default 4
* `node['apache']['worker']['serverlimit']` - upper limit on configurable server processes. Default 16.
* `node['apache']['worker']['maxclients']` - Maximum number of simultaneous connections. Default 1024.
* `node['apache']['worker']['minsparethreads']` - Minimum number of spare worker threads. Default 64
* `node['apache']['worker']['maxsparethreads']` - Maximum number of spare worker threads. Default 192.
......
......@@ -134,6 +134,7 @@ default['apache']['prefork']['maxrequestsperchild'] = 10000
# Worker Attributes
default['apache']['worker']['startservers'] = 4
default['apache']['worker']['serverlimit'] = 16
default['apache']['worker']['maxclients'] = 1024
default['apache']['worker']['minsparethreads'] = 64
default['apache']['worker']['maxsparethreads'] = 192
......
......@@ -74,6 +74,7 @@ KeepAliveTimeout <%= node['apache']['keepalivetimeout'] %>
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
StartServers <%= node['apache']['worker']['startservers'] %>
ServerLimit <%= node['apache']['worker']['serverlimit'] %>
MaxClients <%= node['apache']['worker']['maxclients'] %>
MinSpareThreads <%= node['apache']['worker']['minsparethreads'] %>
MaxSpareThreads <%= node['apache']['worker']['maxsparethreads'] %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment