mongodb backup service overview boston mug
TRANSCRIPT
MongoDB Management Service:Backup Overview
Disasters do happen
Sometimes they are our fault
4
• How much data can you afford to lose? (RPO)
• How long can you afford to be off-line? (RTO)
• Cost is impacted by these decisions.
Considerations
5
• mongodump/mongorestore
• Storage-level options
• MongoDB Backup Service (new!)
Recovery Approaches for MongoDB
6
• Can be run in live or offline mode
• Oplog-aware for point-in-time operations
• Filter can be applied in both directions
• mongodump docs
• mongorestore docs
• Considerations– Working set– Sharding
mongodump / mongorestore
7
• Copy files in your data directory (e.g. /data/db)
• Filesystem or block storage snapshot
• Fastest way to backup/restore
• Considerations– Consistency– Backup granularity– Ops expertise
Storage-level Backups
8
What is MongoDB Management Service (MMS)?
9
MongoDB Management Service
10
MMS Backup: Features
Available• Cloud-based service• Archived across DCs
Secure• Data is encrypted in-
transit• 2-factor auth for
restores
Managed• Developed and
monitored by MongoDB• Point-in-time backups
Overhead• Lightweight agent,
processes oplog
Restores• Free, unlimited• Seed new environments
11
Unlimited restoresSeed dev, test, or new environments
12
Recovery Approaches
Complexity
Scalability
mongodump
storage-level
mms backup
How It Works
14
Overview
15
• From the initial sync, we rebuild your data in our datacenters and take a snapshot
• We take snapshots every 6 hours
• Oplog is stored for 48 hours
Under the Hood
16
• Balancer paused every 6 hours
• A no-op token is inserted across all shards, mongos’s and config servers
• Oplog applied to replica sets until point in which token was inserted
• Provides a consistent state of database across shards
Sharded Clusters
17
• Point-in-time recovery
• Easy to restore
• Unlimited, free restores
• Fully managed
Key Benefits
18
1. Create an account at mms.10gen.com
2. Install MMS Monitoring Agent on your deployment
3. Register at mms.10gen.com/backup
4. Install MMS Backup Agent on your deployment
5. Start initial sync
6. Rest easy!
Getting Started
Free Month – Register UsingCoupon Code
“MUG_Boston” (expires 10/31)
MongoDB Boston 10/25 – discount: mug25