Changing the storage engine for a standalone MongoDB server from Mmapv1 to WiredTiger is relatively painless.

Here’s how I did it.

  1. Backup the database
  1. Stop monbodb service
  1. Update mongodb.conf

Here’s my /etc/mongodb.conf file:

  1. Start monbodb service
  1. 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: