X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ea154b090ca0e115b1e160e4e243a01a1b9f4085..88879aaa236b52a801effcceaf2ca91030cd2f73:/roles/lockheed.rb?ds=sidebyside diff --git a/roles/lockheed.rb b/roles/lockheed.rb index 8f42973e6..f4ace47e0 100644 --- a/roles/lockheed.rb +++ b/roles/lockheed.rb @@ -29,6 +29,39 @@ default_attributes( } } }, + :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 => { + "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" => "524288" + } + }, + :no_tcp_slow_start => { + :comment => "Disable TCP slow start", + :parameters => { + "net.ipv4.tcp_slow_start_after_idle" => "0" + } + }, + :tcp_use_bbr => { + :comment => "Use TCP BBR Congestion Control", + :parameters => { + "net.core.default_qdisc" => "fq", + "net.ipv4.tcp_congestion_control" => "bbr" + } + } + }, :nginx => { :cache => { :proxy => {