Skip to content

Commit

Permalink
Increase the file descriptor limit for the systemd service.
Browse files Browse the repository at this point in the history
The default service FD limit of 1024 is not sufficient for MongoDB
deployments that handle thousands of client connections and
databases.
  • Loading branch information
bdero committed Mar 7, 2017
1 parent 2dec490 commit e7a9b46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/mongodb.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e7a9b46

Please sign in to comment.