udpate prod mongo

main
ycz008 2024-04-19 18:38:51 +08:00
parent 51a578a801
commit 254e907bda
1 changed files with 4 additions and 0 deletions

View File

@ -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