Last active
November 22, 2016 19:02
-
-
Save wiserweb/09dd68cc8e02594f3ec9dea27effd4d4 to your computer and use it in GitHub Desktop.
mongodb 3.2 systemd startup file with recommended ulimits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=High-performance, schema-free document-oriented database | |
After=network.target | |
Documentation=https://docs.mongodb.org/manual | |
[Service] | |
User=mongodb | |
Group=mongodb | |
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf | |
LimitFSIZE=infinity | |
# (cpu time) | |
LimitCPU=infinity | |
# (virtual memory size) | |
LimitAS=infinity | |
# (open files) | |
LimitNOFILE=64000 | |
# (processes/threads) | |
LimitNPROC=64000 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment