X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ce4d234ef22e628fe216f93a552f7f31dcb0897d..cd3fe3c4915267c08ba333ec4b7280b4aa3e5729:/roles/tilecache.rb diff --git a/roles/tilecache.rb b/roles/tilecache.rb index e2cad2518..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 => { @@ -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" + } } } )