From: Tom Hughes Date: Mon, 18 Jul 2022 07:54:58 +0000 (+0100) Subject: Tune connection tracking on tile servers X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/3e56ec749b8aa69cc900b018c601ebde46410a66 Tune connection tracking on tile servers --- diff --git a/roles/tile.rb b/roles/tile.rb index 2de49372c..1da7726d8 100644 --- a/roles/tile.rb +++ b/roles/tile.rb @@ -62,6 +62,18 @@ default_attributes( "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 => { @@ -74,7 +86,7 @@ default_attributes( "net.core.default_qdisc" => "fq", "net.ipv4.tcp_congestion_control" => "bbr" } - }, + } }, :tile => { :database => {