Increase the file descriptor limit for the systemd service.

The default service FD limit of 1024 is not sufficient for MongoDB
deployments that handle thousands of client connections and
databases.
This commit is contained in:
Brandon DeRosier 2017-03-07 01:18:45 -05:00
parent 2dec49074d
commit e7a9b464f0
No known key found for this signature in database
GPG Key ID: 3990DA116D25506B
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ Documentation=man:mongod(1)
[Service]
User=mongodb
ExecStart=/usr/bin/mongod --config /etc/mongod.conf
LimitNOFILE=65535
LimitNPROC=65535
[Install]
WantedBy=multi-user.target