X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/58b2f9feddeb8e638a33cbaf4f775f602f57d2c6..cd3fe3c4915267c08ba333ec4b7280b4aa3e5729:/roles/tilecache.rb diff --git a/roles/tilecache.rb b/roles/tilecache.rb index 38dea9b12..645d107d0 100644 --- a/roles/tilecache.rb +++ b/roles/tilecache.rb @@ -12,10 +12,19 @@ default_attributes( :apt => { :sources => ["nginx"] }, + :networking => { + :tcp_fastopen_key => "tile" + }, :nginx => { :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 => { @@ -25,7 +34,7 @@ default_attributes( :network_conntrack_max => { :comment => "Increase max number of connections tracked", :parameters => { - "net.netfilter.nf_conntrack_max" => "262142" + "net.netfilter.nf_conntrack_max" => "524288" } }, :network_local_port_range => { @@ -45,6 +54,13 @@ default_attributes( :parameters => { "vm.swappiness" => "30" } + }, + :sched_wakeup => { + :comment => "Tune scheduler", + :parameters => { + "kernel.sched_min_granularity_ns" => "10000000", + "kernel.sched_wakeup_granularity_ns" => "15000000" + } } } )