summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSam Kleinman <samk@10gen.com>2016-08-23 15:29:27 -0400
committerSam Kleinman <samk@10gen.com>2016-08-25 14:51:17 -0400
commit906a6f057f87fb4e51c4a698d9d6fe490fb293a2 (patch)
tree783d989feed4e30a259b5b0aa99b8394a2993873 /debian
parent0b7ec447b03a71eb87a780795042aa8d3a2e1370 (diff)
downloadmongo-906a6f057f87fb4e51c4a698d9d6fe490fb293a2.tar.gz
SERVER-25080 SERVER-24885: fix systemd process limits
Diffstat (limited to 'debian')
-rw-r--r--debian/mongod.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/mongod.service b/debian/mongod.service
index 6113d456c59..7619884811a 100644
--- a/debian/mongod.service
+++ b/debian/mongod.service
@@ -7,6 +7,15 @@ Documentation=https://docs.mongodb.org/manual
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
+LimitFSIZE=infinity # file size
+LimitCPU=infinity # cpu time
+LimitAS=infinity # virtual memory size
+LimitNOFILE=64000 # open files
+LimitNPROC=64000 # processes/threads
+TasksMax=infinity # total threads (user+kernel)
+TasksAccounting=false
+# Recommended limits for for mongod as specified in
+# http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings
[Install]
WantedBy=multi-user.target \ No newline at end of file