Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
rainforest @rainforestqa Ops Skills and Tools for Beginners
Slide 2
Slide 2 text
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
Slide 3
Slide 3 text
@rainforestqa rainforest Rainforest QA ! Insanely simple testing checkout: www.rainforestqa.com
Slide 4
Slide 4 text
What is Ops?
Slide 5
Slide 5 text
@rainforestqa rainforest Setting up servers / services
Slide 6
Slide 6 text
@rainforestqa rainforest Supporting Engineers
Slide 7
Slide 7 text
@rainforestqa rainforest Keeping stuff running
Slide 8
Slide 8 text
@rainforestqa rainforest Avoiding disasters
Slide 9
Slide 9 text
@rainforestqa rainforest Fixing breakage
Slide 10
Slide 10 text
Lets Learn the basics
Slide 11
Slide 11 text
Installation
Slide 12
Slide 12 text
@rainforestqa rainforest Replicated
Slide 13
Slide 13 text
@rainforestqa rainforest Sharded
Slide 14
Slide 14 text
@rainforestqa rainforest Best practices Ubuntu is simplest Install from Mongo’s repo Chose the right replica set size: 3 nodes Never use 32 bits
Slide 15
Slide 15 text
@rainforestqa rainforest Alternatives MongoHQ MonogLab ObjectRocket MMS + AWS (via automation)
Slide 16
Slide 16 text
Monitoring Mongo
Slide 17
Slide 17 text
@rainforestqa rainforest Server components
Slide 18
Slide 18 text
@rainforestqa rainforest Storage magnetic, ssd metric: disk io
Slide 19
Slide 19 text
@rainforestqa rainforest Memory / RAM fastest general store metrics; free, swap usage
Slide 20
Slide 20 text
@rainforestqa rainforest Network allows communication use 1gbit or higher (avoid 100mbit) metrics; latency, throughput
Slide 21
Slide 21 text
@rainforestqa rainforest CPU more is better mostly used metrics; % usage
Slide 22
Slide 22 text
@rainforestqa rainforest Monitoring & Diagnostics
Slide 23
Slide 23 text
@rainforestqa rainforest Top things to monitor Failover events Repl Lag Connections Lock % Disk usage
Slide 24
Slide 24 text
@rainforestqa rainforest Hosted is Simplest
Slide 25
Slide 25 text
MMS Hosted, free for monitoring ! Also can do Backups Automation
Slide 26
Slide 26 text
Scout Monitors mongo, servers and many others (Plugins!) ! non-free
Slide 27
Slide 27 text
Server Density Monitors mongo, servers and many others (Plugins!) ! non-free
Slide 28
Slide 28 text
@rainforestqa rainforest Opensource options Ganglia Munin Nagios Zabbix
Slide 29
Slide 29 text
Linux tools to learn mongostat / mongotop top iostat vmstat netstat
Slide 30
Slide 30 text
@rainforestqa rainforest Mongo shell rs.conf() rs.status() db.serverStatus() db.stats() db.currentOp()
Slide 31
Slide 31 text
@rainforestqa rainforest Backups
Slide 32
Slide 32 text
@rainforestqa rainforest Backup options mongodump from the file system LVM / EBS MMS
Slide 33
Slide 33 text
@rainforestqa rainforest TEST YOUR BACKUPS
Slide 34
Slide 34 text
Common pitfals
Slide 35
Slide 35 text
Missing indexes! Running out of disk space Untested backups Sharding too late / wrong key un-replicated / even set size
Slide 36
Slide 36 text
@rainforestqa rainforest Conclusion do backups monitor read the docs
Slide 37
Slide 37 text
rainforest @rainforestqa Questions? @rainforestqa @rhs