Discuss Deployment in MongoDB?

The mongostat utility provides a quick overview of the status of the current running mongod or mongos instances. Mongostat is functionally similar to the UNIX OR LINUX file system utility vmstat, but provides data regarding mongod or mongos instances.


Ex:mongostat –host localhost

Mongotop provies a method to track the amount of time a mongodb instance mongod spends reading and writing data. Mongotop provides statistics on the per-collection level. By default, mongotop return values every second.


Ex:mongotop –host localhost