From 254e907bda6468d1acd22edca700eb34f546f86c Mon Sep 17 00:00:00 2001 From: ycz008 Date: Fri, 19 Apr 2024 18:38:51 +0800 Subject: [PATCH] udpate prod mongo --- prod-upgrade/mongo/mongo.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prod-upgrade/mongo/mongo.yaml b/prod-upgrade/mongo/mongo.yaml index 722e4b5..78b8f78 100644 --- a/prod-upgrade/mongo/mongo.yaml +++ b/prod-upgrade/mongo/mongo.yaml @@ -24,6 +24,10 @@ spec: sysctl -w net.ipv4.tcp_keepalive_time=300 sysctl -w net.ipv4.tcp_keepalive_intvl=10 sysctl -w net.ipv4.tcp_keepalive_probes=3 + sysctl -w /sys/kernel/mm/transparent_hugepage/enabled + sysctl -w vm.max_map_count=262144 + echo never > /sys/kernel/mm/transparent_hugepage/enabled + echo never > /sys/kernel/mm/transparent_hugepage/defrag cp /etc/keyfile.0 /etc/mongodb/keyfile.0 chown 999 /etc/mongodb/keyfile.0 chmod 400 /etc/mongodb/keyfile.0