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