MongoDB - Deployment
When you are preparing a MongoDB deployment, you should try to understand how your application is going to hold up in production.
this will help you understand how your production system will hold up before deploying, and determine where you will need to add capacity.
mongostatThis command checks the status of all running mongod instances and return counters of database operations. These counters include inserts, queries, updates, deletes, and cursors. To run the command, start your mongod instance. In another command prompt, go to bin directory of your mongodb installation and type mongostat.
mongotopmongotop returns information in each second, which you can change it accordingly. You should check that this read and write activity matches your application intention, and you’re not firing too many writes to the database at a time, reading too frequently from a disk, or are exceeding your working set size. In another command prompt, go to bin directory of your mongodb installation and type mongotop.
D:\set up\mongodb\bin>mongotopTo change mongotop command to return information less frequently, specify a specific number after the mongotop command.
D:\set up\mongodb\bin>mongotop 30The above example will return values every 30 seconds. Apart from the MongoDB tools, 10gen provides a free, hosted monitoring service, MongoDB Management Service