Automate MongoDB with MongoDB Management Service
Post on 19-Nov-2014
432 Views
Preview:
DESCRIPTION
Transcript
Run MongoDB with Confidence using MMS
Kelly Stirman
#mongodb #mongodbdays
@kstirman
Director of Products, MongoDB
Operational Complexities
What is MMS?
MMS Monitoring
Topology
Charting
Alerting
Proactive Support
MongoDB offers Proactive Support for Subscription Customers. Our
engineers can monitor your deployment and make suggestions in
order to tweak for better performance or avoid doom.
MMS Backups
Disasters: All Shapes & Sizes
Disasters: Many Causes
Risks Are Everywhere
Storage failures
Power outages
Programmer error
Hardware failures
DC failures
Cyber attacks
Weather
Replication
• Redundant copies of your data across– Servers– Racks– Data Centers
• Automatic failover
• Tunable consistency minimizes risk
• However…programmer errors will replicate almost immediately!
Backups
Backing up data is one way to ensure availability and lower risk. They require active engagement, otherwise:
• Backups can be outdated
• Process can be slow (backup or restore)
• Isolated
• …but they are relatively inexpensive and do well at minimizing risk
MongoDB Backup Approaches
Mongodump File system MMS Backup
Initial complexity
Medium High Low
Confidence in Backups
Medium Medium High
Point in time recovery of replica set
Sort of ☺ No Yes
System Overhead
High Can be low Low
Scalable No With work Yes
Consistent Snapshot of Sharded System
Difficult Difficult Yes
MMS Maintenance Operations
The Process
• Applies to upgrades and most maintenance tasks
• Careful order of steps is critical– Especially in sharded clusters!
• For each shard/replica set– For each replica set member
• http://docs.mongodb.org/manual/tutorial/perform-maintence-on-replica-set-members/
Step 1 – Stop A Secondary
Step 2 – Restart As Standalone
Step 3 – Perform Maintenance
Step 4 – Restart As Member of Replica Set
Step 5 – Work on Primary Last
Demo
Operations
• Upgrade/Downgrade
• Add replica
• Add shard
• Remove shard
• Resize oplog
Resources
• MMS– mms.mongodb.com– mms.mongodb.com/help
• MMS On-Premise– Available for evaluation– mms.mongodb.com/help-hosted
Thank You
Kelly Stirman
#mongodb #mongodbdays
@kstirman
Director of Products, MongoDB
top related