How to know which storage engine is used in mongodb?

Mayank Patel picture Mayank Patel · Mar 20, 2015 · Viewed 20.9k times · Source

Starting from version 3.0, mongodb support pluggable storage engine. How to know which storage engine is being used in a system?

Answer

Mayank Patel picture Mayank Patel · Jul 20, 2015

Easiest way to find the storage engine being used currently in from mongo console.

Inside mongo console, type (You might need admin access to run this command)

db.serverStatus().storageEngine

If It returns,

{ "name" : "wiredTiger" }

WireTiger Storage engine is being used.

Once it is confirmed that wiredTiger is being used then type

db.serverStatus().wiredTiger

to get all the configuration details of wiredTiger.