Created
July 19, 2014 04:54
-
-
Save saintc0d3r/f8d7bee9062a8dd9f6b3 to your computer and use it in GitHub Desktop.
[MongoDb][MMS] HOW TO - Remove warning 'Host has low open files limit' on MMS->Hosts page
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
1. Display the list of ports used by running mongod through running this command: | |
ps aux | grep mongod | |
2. Make notes the port number of mongod process for each replica set's node. | |
3. Open the mongod's process limits file using text editor like cat or vim as shown in this following command: | |
vim /proc/<the mongod's port number noted in pror step>/limits | |
4. Notice 'Max processes' & 'Max open files' entries in the file. Their values should like 1024. At next step, we are going to increase those values. We could also check current limits settings through running this comand: ulimit -a | |
5. Open /etc/security/limits.conf file using text editor apps as root and add these following entries in the file then save the changes: | |
* hard nofile 64000 | |
* soft nofile 64000 | |
6. Logout from current session then relogin. | |
7. Restart your replica set's mongod services. | |
8. Go back to your MMS->Hosts page. COnfirm that the warnings are gone now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment