X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4722e0f97ac741783a6ed28fa49a5548295d64a0..e693cad1797b863b72437a1f06850e9c98b45ba1:/roles/lockheed.rb diff --git a/roles/lockheed.rb b/roles/lockheed.rb index ff2494dca..de012bb53 100644 --- a/roles/lockheed.rb +++ b/roles/lockheed.rb @@ -17,21 +17,76 @@ default_attributes( :slaves => %w[eno49 eno50] } }, - :external => { + :external_he => { :interface => "bond0.3", :role => :external, + :metric => 150, + :source_route_table => 100, :inet => { - :address => "184.104.179.144" - }, - :inet6 => { - :address => "2001:470:1:fa1::10" + :address => "184.104.179.144", + :prefix => "27", + :gateway => "184.104.179.129" + } + }, + :external => { + :interface => "bond0.103", + :role => :external, + :source_route_table => 150, + :inet => { + :address => "82.199.86.112", + :prefix => "27", + :gateway => "82.199.86.97" } } } + }, + :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 => { + :enable => true, + :keys_zone => "proxy_cache_zone:256M", + :inactive => "180d", + :max_size => "51200M" + } + } } ) run_list( "role[equinix-ams]", - "role[hp-g9]" + "role[hp-g9]", + "role[imagery]" )