Changing MongoDB storage engine from Mmapv1 to WiredTiger

Changing the storage engine for a standalone MongoDB server from Mmapv1 to WiredTiger is relatively painless. Here’s how I did it. Backup the database Stop monbodb service Update mongodb.conf Here’s my /etc/mongodb.conf file: Start monbodb service Restore the database from backup That’s it. To check what storage engine you’re using with your MongoDB, connect to the mongodb with mongo shell and run:

November 3, 2015 · 1 min · 62 words · kenno

MongoDB warning: Failed to connect

After upgrading MongoDB from version 2.4 to 2.6, I am not able to connect to it from another machine. The firewall has been checked to ensure that port 27017 is opened for the machine that I want to connect from. So what else could go wrong? Well, I was impatient and turned to you know what… Google search. According to this link: https://groups.google.com/forum/#!msg/mongodb-user/yhf05AW-hK8/YqES0cVIXlUJ, the problem is due to the database is bound to only local IP....

May 22, 2014 · 1 min · 130 words · kenno