apache: Add option to set the MaxClients directive

This commit is contained in:
Ossi Salmi 2015-05-20 09:41:05 +03:00
parent a509469be1
commit 85a37f8624
4 changed files with 11 additions and 7 deletions

View file

@ -23,6 +23,10 @@ class apache::common {
}
}
if ! $apache_maxclients {
$apache_maxclients = "256"
}
if $apache_datadir {
file { $apache_datadir:
ensure => directory,

View file

@ -104,8 +104,8 @@ KeepAliveTimeout 15
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
ServerLimit <%= @apache_maxclients %>
MaxClients <%= @apache_maxclients %>
MaxRequestsPerChild 4000
</IfModule>

View file

@ -103,8 +103,8 @@ KeepAliveTimeout 15
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
ServerLimit <%= @apache_maxclients %>
MaxClients <%= @apache_maxclients %>
MaxRequestsPerChild 4000
</IfModule>

View file

@ -103,8 +103,8 @@ KeepAliveTimeout 15
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
ServerLimit <%= @apache_maxclients %>
MaxClients <%= @apache_maxclients %>
MaxRequestsPerChild 4000
</IfModule>