4. 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
6. 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. 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
10. 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
15. 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. 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
18. 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
19. Free Month – Register Using
Coupon Code
“MUG_Boston”
(expires 10/31)
MongoDB Boston 10/25 –
discount: mug25
Editor's Notes
MongoDB Management Service (MMS) is a cloud-based suite of services for managing MongoDB deployments. MMS provides monitoring and backup capabilities, helping users optimize clusters, automate tasks and mitigate operational risk. For customers that prefer to manage MongoDB on their own infrastructure, 10gen also offers MMS MonitoringOn-Prem as part of MongoDB Enterprise (backup features coming soon).
Install lightweight agent written in Go so it’s compiled nativelyPerform an initial syncOplog tails going forward – performance impact similar to adding another secondaryEncrypted in motion
6-hour interval snapshots for 2 days, Daily snapshots stored for 1 week, Weekly snapshots stored for 1 month,Monthly snapshots stored for 1 year.
Point-in-time recoveryOplog stored for 48 hoursRestore your replica set to any point-in-time in the last 48 hours by creating a custom snapshotEasy to restorePull from custom URLPush via SCPUnlimited, free restoresConfidence in your restore processBuild development, QA, analytics environments without impacting productionFully managedCreated by the engineers that build MongoDBNo need to write or maintain custom backup scripts