Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Using MongoDB Monitoring Service (MMS)

Using MongoDB Monitoring Service (MMS)

MongoDB #mongodbdays presentation on 2013-04-09 (in London) on "Using MongoDB Monitoring Service (MMS)"

Mark Hillick

April 09, 2013
Tweet

More Decks by Mark Hillick

Other Decks in Technology

Transcript

  1. Agenda 1.  What, where, numbers? 2.  How? 3.  Measure Me!!!

    4.  Alerting 5.  Security 6.  Documentation 7.  Futures 8.  Conclusion 9.  Questions? MongoDB Monitoring Service, Mark Hillick
  2. What is MMS? •  MongoDB monitoring Saas solution with: – 

    Granularity: min, hour, day –  Alerting: host up / down, metrics etc –  Event tracking (server restart, step down, …) •  Host management (auto discover) •  Profiling •  Hardware stats also
  3. Why use MMS? (2) •  Overview – Bird’s Eye – 

    Macro •  Drill down (minute by minute) –  Micro
  4. Why use MMS? (3) •  Haz all teh things J

    •  Tailored specifically for MongoDB •  Incredibly helpful for 10gen Support when troubleshooting
  5. A few numbers … •  40k writes per second • 

    400 metrics per ping packet •  9 billion metrics recorded per day
  6. 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
  7. The MMS client (agent) •  Small Python app •  A

    single agent process –  Failover – multiple agents •  Connect to mms.10gen.com (SSL over TCP 443)
  8. memory •  Mapped: sum of files on disk •  Virtual

    memory: 2 x mapped (j) + process overhead •  Resident memory: data in RAM actively used
  9. Lock % •  Amount of time spent in the write

    lock •  From 2.2 : each db has own lock
  10. Replication •  On primary: amount of time in oplog • 

    On secondary: replication delay to primary
  11. Metrics that we discussed •  Opcounters •  Memory •  Page

    Faults •  Lock % •  Background Flush •  Replication
  12. 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
  13. What is sent? •  Purely metadata •  HTTPS & connections

    are outbound only (from the agent) •  Log transfer has to be turned on •  If profiling in db & MMS, then profiling data is sent
  14. On-premise MMS •  Locally Hosted in Customer Infrastructure •  PCI,

    HIPAA, SOX etc •  Enterprise Customers (2.4)
  15. Conclusion •  Easy to use •  Macro & micro • 

    Detailed monitoring features •  Helps 10gen Support immensely
  16. Thanks •  Thanks to Mike Stimpson for the awesome pics

    J http://imgur.com/a/0XvKw (I bought his book btw!)