Set net.ipv4.tcp_mtu_probing to 2

> Forces every new TCP socket to begin at a
> conservative MSS
> (min(path MTU, 1024 bytes) – 40).
> Immediately sends progressively larger probes
> and raises the MSS as soon as they’re ACKed.

This has been found to solve very slow deploys
with Tailscale, Kamal and our internal Docker
registry.
This commit is contained in:
Lewis Buckley
2025-08-20 12:24:18 +01:00
parent bd2eddbab4
commit 3e4597b89c
2 changed files with 3 additions and 2 deletions

1
migrations/1755244361.sh Normal file
View File

@@ -0,0 +1 @@
sudo sed -i 's/^net.ipv4.tcp_mtu_probing=1/net.ipv4.tcp_mtu_probing=2/' /etc/sysctl.d/99-sysctl.conf