X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/5b61dc78ec8857086174b99aa68ec7ee7f439e0b..3a4d52bd4c0f8e6ae7679145846b7bc7845d8ace:/roles/tilecache.rb diff --git a/roles/tilecache.rb b/roles/tilecache.rb index bbabdea11..db78d4d76 100644 --- a/roles/tilecache.rb +++ b/roles/tilecache.rb @@ -8,13 +8,19 @@ default_attributes( :sysctl => { :network_conntrack_time_wait => { :comment => "Only track completed connections for 30 seconds", - :parameters => { + :parameters => { "net.netfilter.nf_conntrack_tcp_timeout_time_wait" => "30" } }, + :network_conntrack_max => { + :comment => "Increase max number of connections tracked", + :parameters => { + "net.netfilter.nf_conntrack_max" => "131072" + } + }, :squid_swappiness => { :comment => "Prefer not to swapout to free memory", - :parameters => { + :parameters => { "vm.swappiness" => "30" } }