diff options
author | Ernie Hershey <ernie.hershey@10gen.com> | 2013-11-06 18:25:39 -0500 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2013-11-19 16:02:08 -0500 |
commit | 1b4c5d4f2c1ea6f25a035884adc7fea884c25334 (patch) | |
tree | 42a6ed9e533ecf62e69cc7768973fc6991ba6c3d /debian/mongod.upstart | |
parent | eb1f40c7ef0c53047eda306db5185350deeac8d3 (diff) | |
download | mongo-1b4c5d4f2c1ea6f25a035884adc7fea884c25334.tar.gz |
SERVER-10931 set ulimits in init scripts to match documentation
This sets resource limits across all Linux packages to match our
recommended settings -
http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings
Diffstat (limited to 'debian/mongod.upstart')
-rw-r--r-- | debian/mongod.upstart | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/mongod.upstart b/debian/mongod.upstart index 48180ba8a4e..ebfa006ad8b 100644 --- a/debian/mongod.upstart +++ b/debian/mongod.upstart @@ -1,6 +1,14 @@ # Ubuntu upstart file at /etc/init/mongod.conf -limit nofile 20000 20000 +# Recommended ulimit values for mongod or mongos +# See http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings +# +limit fsize unlimited unlimited +limit cpu unlimited unlimited +limit as unlimited unlimited +limit nofile 64000 64000 +limit rss unlimited unlimited +limit nproc 32000 32000 kill timeout 300 # wait 300s between SIGTERM and SIGKILL. |