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: