From 3e56ec749b8aa69cc900b018c601ebde46410a66 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 18 Jul 2022 08:54:58 +0100 Subject: [PATCH] Tune connection tracking on tile servers --- roles/tile.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 => { -- 2.39.5