From 8f0fc9d8c0ecc05fc020d2d83f8fdc9d6a4d559d Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Fri, 23 Oct 2020 09:52:52 -0700 Subject: [PATCH 1/2] Set net.ipv4.tcp_mtu_probing = 1 --- deploy/kicbase/11-tcp-mtu-probing.conf | 3 +++ deploy/kicbase/Dockerfile | 1 + 2 files changed, 4 insertions(+) create mode 100644 deploy/kicbase/11-tcp-mtu-probing.conf diff --git a/deploy/kicbase/11-tcp-mtu-probing.conf b/deploy/kicbase/11-tcp-mtu-probing.conf new file mode 100644 index 000000000000..c34569dd8111 --- /dev/null +++ b/deploy/kicbase/11-tcp-mtu-probing.conf @@ -0,0 +1,3 @@ +# Turn on MTU probing to avoid network hangs when the Docker MTU is larger than +# the host or upstream network MTU. +net.ipv4.tcp_mtu_probing=1 \ No newline at end of file diff --git a/deploy/kicbase/Dockerfile b/deploy/kicbase/Dockerfile index 13b32a36294b..88b3034b15f3 100644 --- a/deploy/kicbase/Dockerfile +++ b/deploy/kicbase/Dockerfile @@ -23,6 +23,7 @@ FROM ubuntu:focal-20200423 # copy in static files (configs, scripts) COPY 10-network-security.conf /etc/sysctl.d/10-network-security.conf +COPY 11-tcp-mtu-probing.conf /etc/sysctl.d/11-tcp-mtu-probing.conf COPY clean-install /usr/local/bin/clean-install COPY entrypoint /usr/local/bin/entrypoint From 71af47a9d4da8df3fef43e5dd6d11694cfae13b9 Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Fri, 23 Oct 2020 12:57:28 -0700 Subject: [PATCH 2/2] Add mtu probing to ISO --- .../rootfs-overlay/etc/sysctl.d/11-tcp-mtu-probing.conf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/etc/sysctl.d/11-tcp-mtu-probing.conf diff --git a/deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/etc/sysctl.d/11-tcp-mtu-probing.conf b/deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/etc/sysctl.d/11-tcp-mtu-probing.conf new file mode 100644 index 000000000000..c34569dd8111 --- /dev/null +++ b/deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/etc/sysctl.d/11-tcp-mtu-probing.conf @@ -0,0 +1,3 @@ +# Turn on MTU probing to avoid network hangs when the Docker MTU is larger than +# the host or upstream network MTU. +net.ipv4.tcp_mtu_probing=1 \ No newline at end of file