For the first time this year, 10gen will be offering a track completely dedicated to Operations at MongoSV, 10gen's annual MongoDB user conference on December 4. Learn more at MongoSV.com
Sharding allows you to distribute load across multiple servers and keep your data balanced across those servers. This session will review MongoDB’s sharding support, including an architectural overview, design principles, and automation.
4. • How many have faced node failures?
• How many have been woken to do fail overs?
• How many have experienced issues due to n/w
latency?
• Different uses for data
– Normal processing
– Simple analytics
4
24. • Since 2.0.0
• Control over where data is written to
• Each member can have one or more tags e.g.
• tags: {dc: "ny"}
• tags: {dc: "ny", ip: "192.168", rack:
"row3rk7"}
• Replica set defines rules for where data resides
• Rules can change without changing app code
24
28. • Custom read preferences
• Control where you read from
– E.g. { "disk": "ssd", "use": "reporting" }
• Use in conjunction with standard read
preferences
– Except primary
28
30. • No downtime
• Rolling upgrade/maintenance
– Start with Secondary
– Primary last
30
31. • Single datacenter
• Single switch & power
Member 1 • Points of failure:
– Power
Member 2 – Network
– Datacenter
Member 3 – Two node failure
• Automatic recovery of
single node crash
31
32. • Multi datacenter
DC
Member 1
• DR node for safety
1 • Can’t do multi data
Member 2 center durable write
safely since only 1
node in distant DC
DC
Member 3
2
32
33. • Three data centers
DC • Can survive full data
Member 1
1
center loss
Member 2
• Can do w= { dc : 2 } to
guarantee write in 2
DC Member 3
2
data centers (with
Member 4
tags)
DC Member 5 -
3 DR
33
35. • Heartbeat every 2 seconds
– Times out in 10 seconds
• Local DB (not replicated)
– system.replset
– oplog.rs
• Capped collection
• Idempotent version of operation stored
35
38. • Use replica sets
• Easy to setup
– Try on a single machine
• Check doc page for RS tutorials
– http://docs.mongodb.org/manual/replication/#t
utorials
38