Ops Skills and Tools for Beginners [MongoDB World 2014]

Ops Skills and Tools for Beginners [MongoDB World 2014]

Originally presented at MongoDB World 2014. This is an introduction to Ops with MongoDB aimed at Developers and people who haven't run MongoDB in production before. It covers some basics of servers, hosting, installation, monitoring and backups.


Russell Smith

June 24, 2014


  1. rainforest @rainforestqa Ops Skills and Tools for Beginners

  2. Russell Smith ! English guy Mongo DB Master Ex Ops

    consultant Ruby / PHP developer YC S12 Alum Using mongo in Prod since 1.6/1.8
  3. @rainforestqa rainforest Rainforest QA ! Insanely simple testing checkout: www.rainforestqa.com

  4. What is Ops?

  5. @rainforestqa rainforest Setting up servers / services

  6. @rainforestqa rainforest Supporting Engineers

  7. @rainforestqa rainforest Keeping stuff running

  8. @rainforestqa rainforest Avoiding disasters

  9. @rainforestqa rainforest Fixing breakage

  10. Lets Learn the basics

  11. Installation

  12. @rainforestqa rainforest Replicated

  13. @rainforestqa rainforest Sharded

  14. @rainforestqa rainforest Best practices Ubuntu is simplest Install from Mongo’s

    repo Chose the right replica set size: 3 nodes Never use 32 bits
  15. @rainforestqa rainforest Alternatives MongoHQ MonogLab ObjectRocket MMS + AWS (via

  16. Monitoring Mongo

  17. @rainforestqa rainforest Server components

  18. @rainforestqa rainforest Storage magnetic, ssd metric: disk io

  19. @rainforestqa rainforest Memory / RAM fastest general store metrics; free,

    swap usage
  20. @rainforestqa rainforest Network allows communication use 1gbit or higher (avoid

    100mbit) metrics; latency, throughput
  21. @rainforestqa rainforest CPU more is better mostly used metrics; %

  22. @rainforestqa rainforest Monitoring & Diagnostics

  23. @rainforestqa rainforest Top things to monitor Failover events Repl Lag

    Connections Lock % Disk usage
  24. @rainforestqa rainforest Hosted is Simplest

  25. MMS Hosted, free for monitoring ! Also can do Backups

  26. Scout Monitors mongo, servers and many others (Plugins!) ! non-free

  27. Server Density Monitors mongo, servers and many others (Plugins!) !

  28. @rainforestqa rainforest Opensource options Ganglia Munin Nagios Zabbix

  29. Linux tools to learn mongostat / mongotop top iostat vmstat

  30. @rainforestqa rainforest Mongo shell rs.conf() rs.status() db.serverStatus() db.stats() db.currentOp()

  31. @rainforestqa rainforest Backups

  32. @rainforestqa rainforest Backup options mongodump from the file system LVM

    / EBS MMS
  33. @rainforestqa rainforest TEST YOUR BACKUPS

  34. Common pitfals

  35. Missing indexes! Running out of disk space Untested backups Sharding

    too late / wrong key un-replicated / even set size
  36. @rainforestqa rainforest Conclusion do backups monitor read the docs

  37. rainforest @rainforestqa Questions? @rainforestqa @rhs