This talk will cover MMS - the MongoDB monitoring system. MMS is a Free MongoDB monitoring Saas solution built by 10gen and used by many MongoDB users. Monitoring is a necessary activity for any production database system to detect upcoming or ongoing issues. In addition it gives an insight on all the vitals of your system and can help detect bottlenecks and inefficiencies for improved performance. This talk will focus on: - what is MMS and how to get started - understanding each metric and graph - what are signs of trouble, when to take actions or panic - what are signs that your hardware ressources are not properly used - how did we build MMS, the high performance time series system
8. Set up MMS – it’s easy
• Go to http://mms.10gen.com
– Create a new account or sign in with jira user.
– Pick an explicit company name
– Download and run the agent
– From MMS dashboard, add a host to monitor
9. The MMS client (agent)
• Small Python app
• A single agent process
– Failover – multiple agents
• Connect to mms.10gen.com (SSL over TCP
443)
18. Security
• Purely stats (metadata).
– Log transfer has to be turned on.
• HTTPS & connections are outbound only (from
the agent)
• If profiling in db & MMS, then profiling data is
sent
28. Metrics that we discussed
• Opcounters
• Lock %
• Background Flush
• Page Faults
• Replication
29. Metrics for performance
• Resident memory: how much data in RAM?
• Page Faults: paging to disk? Readahead?
• Journal commits in write lock: separate journal
• High background flush: reduce sync delay to
smooth