Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added exec command to pp file to have puppet set the max send and rec…
…v buffer sizes on the OS level
  • Loading branch information
fasseg committed Oct 30, 2013
1 parent 0fe0f4b commit 304b2df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/tomcat7/manifests/init.pp
Expand Up @@ -54,6 +54,16 @@

notify {"$ip_address":}

exec { "increase send buffer size":
command => "sudo sysctl -w net.core.rmem_max=5242880",
path => "/bin/:/usr/bin/",
}

exec { "increase recv buffer size":
command => "sudo sysctl -w net.core.wmem_max=5242880",
path => "/bin/:/usr/bin/",
}

package { 'tomcat7':
ensure => installed,
require => Package[$jre_package],
Expand Down

0 comments on commit 304b2df

Please sign in to comment.