MongoDB Management Service (MMS) is a suite of services for managing MongoDB deployments. Engineered by the team who develops MongoDB, MMS makes it easier to operate MongoDB at any scale. MMS provides monitoring, backup and recovery, helping users optimize clusters and mitigate operational risk. MMS users can visualize database performance and set custom alerts that notify when particular metrics are out of normal range. MMS is also the only continuous backup solution for MongoDB, providing point-in-time recovery for replica sets and cluster-wide snapshots of sharded systems.
MMS is available as a fully managed cloud service, or as on-prem software included with your MongoDB Enterprise subscription.
Benefits of MMS:
• Knowledge.
• Confidence.
• Visibility.
2. Agenda
• What is MMS?
– Monitoring
• Why use MMS Monitoring?
• Setting it up and getting around
• Performance and monitoring
– Backup
• Risks
• Backup strategies
• Wrap up
12. Example: replication lag
• Secondaries under specified vs primaries
• Access patterns between primary /
secondaries
• Insufficient bandwidth
• Foreground index builds on secondaries
“…when you have eliminated the impossible, whatever remains,
however improbable, must be the truth…” -- Sherlock Holmes
Sir Arthur Conan Doyle, The Sign of the Four
13. Example: replication lag
Example:
• ~1500 ops per minute (opcounters)
• 0.1 MB per object (average object size,
local db)
~1500 ops/min / 60 seconds * 0.1 MB/op *
8b/B =~ 20 mbps required bandwidth
21. mongodump / mongorestore
•
•
•
•
Can be run in live or offline mode
Oplog-aware for point-in-time operations
Filter can be applied in both directions
Considerations
– Working set
– Sharding
22. Storage-level Backups
• 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
25. How much does it cost?
• Free Tier - monthly bill under $5 is free for first 12 months
26. Summary
•
•
•
•
MMS Monitoring is a great, free service
Setup is easy
Proactively monitor your cluster
MMS Backups makes backing up data
easy
• Making MongoDB operations as easy as
development using MongoDB
Notes de l'éditeur
Talk about fat finger wall street trader.http://en.wikipedia.org/wiki/2010_Flash_Crash
How much data can you afford to lose? (RPO)How long can you afford to be off-line? (RTO)What price are you willing to pay to remove or mitigate the risk.
Mulitple copies of garbage for replication – for that you need backup. MongoDB built it for you, so only has devops and infrastructure cost.Lose very little to zero data in a failureDown for a very short interval (availability is high)BUT: programmer errors, deliberate data loss is often replicated nearly instantly.
Mention backup strategies document.
From the initial sync, we rebuild your data in our datacenters and take a snapshotWe take snapshots every 6 hoursOplog is stored for 48 hoursBalancer paused every 6 hours A no-op token is inserted across all shards, mongos’s and config serversOplog applied to replica sets until point in which token was insertedProvides a consistent state of database across shards