Skip to content

Commit

Permalink
Crank the conntrack limit up to ensure we can cope with lots of conne…
Browse files Browse the repository at this point in the history
…ctions on mirrorbrain
  • Loading branch information
R. Tyler Croy committed Jun 30, 2016
1 parent 7af9549 commit f00f366
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion dist/profile/manifests/mirrorbrain.pp
Expand Up @@ -116,10 +116,27 @@
##########################


$conntrack_max = '131072'
# Double conntrack to ensure we can handle lots of connections
file { '/etc/sysctl.d/30-conntrack.conf':
ensure => present,
content => "net.nf_conntrack_max = ${conntrack_max}
",
# Without invoking this procps service, the sysctl.d defaults aren't
# properly loaded on boot under 14.04 LTS
notify => Exec['reprocess-sysctld'],
}

exec { 'reprocess-sysctld':
command => '/usr/sbin/service procps start',
unless => "/sbin/sysctl net.nf_conntrack_max | grep '${conntrack_max}'",
path => ['/bin', '/sbin'],
}


## Managing PostgreSQL
##########################
##
##
##########################
if $manage_pgsql {
class { 'postgresql::server':
Expand Down

0 comments on commit f00f366

Please sign in to comment.