mongodbstorage-enginesdatabasenosql

How to know which storage engine is used in mongodb?


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


Solution

  • 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.