How to know which storage engine is used in mongodb?
Asked Answered
T

3

36

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

Tubercular answered 20/3, 2015 at 9:56 Comment(0)
T
48

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.

Tubercular answered 20/7, 2015 at 15:33 Comment(1)
He is the most mysterious user which I've ever seen on stackoverflow. He looks like a scholar of MongoDB. There are a lot of answer belongs to him on stackoverflow. Also his reputation seems just 1 and account is ` temporarily suspended` every time.Faso
F
11

On the console, Mayank's answer makes more sense.
On the other hand, by using MongoDB GUI like MongoChef or Robomongo storageEngine may be found by using the ways below;

On Robomongo;

enter image description here


On MongoChef;

enter image description here

Faso answered 20/3, 2015 at 20:11 Comment(2)
do you know how to change the storage engine to wiredtigeR?Gunplay
Yep. I've changed my storage engine by re-installing MongoDB. Check this question and answers; dba.stackexchange.com/a/104583/61836Faso
K
2

You can detect this via:

db.serverStatus().wiredTiger 

So at "present" where this "exists" then there is a different storage engine configured other than the default "MMAPv1" where "WiredTiger" is not used.

This applies to the present "MongoDB 3.0x" series

Karate answered 20/3, 2015 at 10:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.