Tools
- Analyze the mongostat results: https://docs.mongodb.com/manual/reference/program/mongostat/
- And mongotop to see query highlight https://docs.mongodb.com/manual/reference/program/mongotop/
- Enable slow queries: db.setProfilingLevel(1,50)
- Dex: to analyze slow queries: http://dex.mongolab.com/
- mtools to visualize the query usage https://github.com/rueckstiess/mtools
- System metrics: top and iostat
Checklist
- Usage and location of the Replica Set instances
- Check system resources usage: CPU and disk IOPS
- Check network latency, bandwidth and Application level Read Preference and Write Concern
- Check mongo instances usage (mongostat)
- Check top slow queries (mongotop, slow queries)
- Check queries and command usage using
- Check backup strategy
- Check storage engine and MongoDB version
- Check monitoring tools