X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/664414939e418b88a370ae31d6cff3245322e7bc..883c754c10bcc8b94844658c61512dfbb8a2e8a3:/roles/tilecache.rb diff --git a/roles/tilecache.rb b/roles/tilecache.rb index f45286e37..ee5777735 100644 --- a/roles/tilecache.rb +++ b/roles/tilecache.rb @@ -19,6 +19,12 @@ default_attributes( :access_log => false }, :sysctl => { + :sockets => { + :comment => "Increase size of connection queue", + :parameters => { + "net.core.somaxconn" => 10000 + } + }, :network_conntrack_time_wait => { :comment => "Only track completed connections for 30 seconds", :parameters => { @@ -34,7 +40,7 @@ default_attributes( :network_local_port_range => { :comment => "Increase available local port range", :parameters => { - "net.ipv4.ip_local_port_range" => "4096 64000" + "net.ipv4.ip_local_port_range" => "1024 65000" } }, :kernel_tfo_listen_enable => { @@ -46,7 +52,7 @@ default_attributes( :squid_swappiness => { :comment => "Prefer not to swapout to free memory", :parameters => { - "vm.swappiness" => "30" + "vm.swappiness" => "1" } }, :sched_wakeup => {