From e4a8064648367fb8f08111d8c125a1d2cabc7ff2 Mon Sep 17 00:00:00 2001 From: gjmzj Date: Thu, 5 Mar 2020 16:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E5=A4=84=E7=90=86=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=86=85=E6=A0=B8=E5=8F=82=E6=95=B0net.core.?= =?UTF-8?q?somaxconn=20=3D=2032768?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/prepare/templates/95-k8s-sysctl.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/prepare/templates/95-k8s-sysctl.conf.j2 b/roles/prepare/templates/95-k8s-sysctl.conf.j2 index 2cc8cd8..5375abf 100644 --- a/roles/prepare/templates/95-k8s-sysctl.conf.j2 +++ b/roles/prepare/templates/95-k8s-sysctl.conf.j2 @@ -6,6 +6,7 @@ net.bridge.bridge-nf-call-arptables = 1 net.ipv4.tcp_tw_recycle = 0 {% endif %} net.ipv4.tcp_tw_reuse = 0 +net.core.somaxconn = 32768 net.netfilter.nf_conntrack_max=1000000 vm.swappiness = 0 vm.max_map_count=655360