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

View File

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