Weitere ähnliche Inhalte Ähnlich wie How to monitor MongoDB (20) Mehr von Server Density (19) Kürzlich hochgeladen (20) How to monitor MongoDB1. How to monitor:
MongoDB
David Mytton
Hangout on Air - Sept 2014
https://blog.serverdensity.com/monitor-mongodb/
8. Server Density Architecture
● ~100 servers - Ubuntu 12.04
● 50:50 virtual/dedicated
● 200TB/m processed data
● Nginx, Python, MongoDB
9. Server Density Architecture
● ~100 servers - Ubuntu 12.04
● 50:50 virtual/dedicated
● 200TB/m processed data
● Nginx, Python, MongoDB
● Softlayer > 1TB RAM, 5TB SSDs
10. Key metrics
● Oplog replication lag
● Replica state
● Lock %
● Disk i/o % utilization
13. Oplog replication lag
● Replica sets: master/slave
● Async i.e. eventually consistent
● Write concern
16. Oplog replication lag
● Replica sets: master/slave
● Async i.e. eventually consistent
● Write concern
● Falling behind
19. Reasons for repl falling behind
● Network problems
● Hardware problems
● Shard chunk migrations
20. Reasons for repl falling behind
● Network problems
● Hardware problems
● Shard chunk migrations
● MongoDB bugs
24. Lock %
● Database locking (2.6)
● Sometimes a problem:
25. Lock %
● Database locking (2.6)
● Sometimes a problem:
● Nearing 100%
26. Lock %
● Database locking (2.6)
● Sometimes a problem:
● Nearing 100%
● Constantly high
27. Lock %
● Database locking (2.6)
● Sometimes a problem:
● Nearing 100%
● Constantly high
● Slows replication
29. Disk i/o % utilization
● Hardware limits
● Nearing 100%
30. Disk i/o % utilization
● Hardware limits
● Nearing 100%
● Constantly high
31. Disk i/o % utilization
● Hardware limits
● Nearing 100%
● Constantly high
● Spinning -> SSD
32. Disk i/o % utilization
https://blog.serverdensity.com/mongodb-performance-ssds-vs-spindle-sas-drives/
33. Disk i/o % utilization
https://blog.serverdensity.com/mongodb-benchmarks/
34. Disk i/o % utilization
● Hardware limits
● Nearing 100%
● Constantly high
● Spinning -> SSD
● Slow queries, hangs, slow repl
46. Key metrics
● Oplog replication lag
● Replica state
● Lock %
● Disk i/o % utilization
49. Summary
● Critical alerts on key metrics
● Watch non-critical
● Manual tools for real time
50. Summary
● Critical alerts on key metrics
● Watch non-critical
● Manual tools for real time
● Set up a monitoring product
51. Useful resources
● http://docs.mongodb.org/manual/administration/monitoring/
● https://blog.serverdensity.com/monitor-mongodb
● https://blog.serverdensity.com