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:
parent
2dec49074d
commit
e7a9b464f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue