From 15f7ae54b0a98418a89e46b64e23bb7fbe9bd7e6 Mon Sep 17 00:00:00 2001 From: Yibo Cai Date: Thu, 21 Dec 2017 17:20:09 +0800 Subject: deploy/cobbler: drop tcp_tw_recycle in sysctl.conf Currently, tcp_tw_recycle is set explicitly in sysctl.conf when installing OS by cobbler. This option is removed in kernel4.12, current sysctl.conf breaks sysctl function and K8s deployment. Actually, tcp_tw_recycle is considered broken and not recommended to use. We may simply drop this option to be compatible with different kernel versions. References: - https://vincent.bernat.im/en/blog/2014-tcp-time-wait-state-linux - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4396e46187ca5070219b81773c4e65088dac50cc Change-Id: I2cd89db3d423c811ba58eb5960f3cc718475be5f Signed-off-by: Yibo Cai --- deploy/adapters/cobbler/snippets/kickstart_sysctl.conf | 1 - deploy/adapters/cobbler/snippets/preseed_sysctl.conf | 1 - deploy/adapters/cobbler/snippets/sysctl.xml | 1 - 3 files changed, 3 deletions(-) (limited to 'deploy/adapters') diff --git a/deploy/adapters/cobbler/snippets/kickstart_sysctl.conf b/deploy/adapters/cobbler/snippets/kickstart_sysctl.conf index c227ecfa..112f010d 100644 --- a/deploy/adapters/cobbler/snippets/kickstart_sysctl.conf +++ b/deploy/adapters/cobbler/snippets/kickstart_sysctl.conf @@ -59,7 +59,6 @@ net.ipv4.ip_local_port_range = 15000 61000 net.ipv4.tcp_fin_timeout=30 # fast cycling of sockets in time_wait state and re-using them -net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 # increase the maximum number of requests queued to a listen socket diff --git a/deploy/adapters/cobbler/snippets/preseed_sysctl.conf b/deploy/adapters/cobbler/snippets/preseed_sysctl.conf index c227ecfa..112f010d 100644 --- a/deploy/adapters/cobbler/snippets/preseed_sysctl.conf +++ b/deploy/adapters/cobbler/snippets/preseed_sysctl.conf @@ -59,7 +59,6 @@ net.ipv4.ip_local_port_range = 15000 61000 net.ipv4.tcp_fin_timeout=30 # fast cycling of sockets in time_wait state and re-using them -net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 # increase the maximum number of requests queued to a listen socket diff --git a/deploy/adapters/cobbler/snippets/sysctl.xml b/deploy/adapters/cobbler/snippets/sysctl.xml index fe13bf7f..42f95976 100644 --- a/deploy/adapters/cobbler/snippets/sysctl.xml +++ b/deploy/adapters/cobbler/snippets/sysctl.xml @@ -62,7 +62,6 @@ net.ipv4.ip_local_port_range = 15000 61000 net.ipv4.tcp_fin_timeout=30 # fast cycling of sockets in time_wait state and re-using them -net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 # increase the maximum number of requests queued to a listen socket -- cgit 1.2.3-korg