SlideShare ist ein Scribd-Unternehmen logo
1 von 51
MongoDB Backup and
Monitoring with MMS
Sam Weaver, Senior Solution Architect
#MongoDBWorld
Operational complexities
What is MMS?
What is MMS?
The MMS User Interface
Navigation tabs take you to the different functional areas of MongoDB
Management Service. Through this interface, you can monitor your
deployment, configure alerts via email or SMS, backup your data and
automate your deployments.
Monitoring
Monitoring
MMS monitors deployments through a monitoring agent
installed on a host server. One agent can:
• Identify the members of the deployment and server
configuration, MongoDB Version, query profile, logs, etc.
• Dynamically create a graphical representation of the
deployment technology.
• Visualize performance indications like lock percentage,
reads/writes, queues, etc.
• Enable you to configure alerts for when these numbers
aren’t “normal”
Topology view
Charting
Alerting
• Set a base line for normal by seeing how your
production environment responds to regular
traffic
• Check for spikes in operations – peak or
unexpected load?
What’s “normal”?
=
Key performance indicators
• Page faults, queues and lock % may be
indicators that you need to scale up or out
• Oplog window indicates how long a
secondary can be behind the primary
• Background average flush indicates if your
disks are struggling
Monitoring
Additionally, MongoDB offers Proactive Support for
Subscription Customers, where our engineers are able to
monitor your deployment and make suggestions in order to
tweak for better performance or avoid doom.
Backup
Disasters are not only due to user error...
There’s many other causes of disasters
34% of companies fail to test their
tape backups
77% of those that did, found failures
60% of companies that lost their data…
Closed business within 6 months
140,000 HDD crashes per week in the US
93% of those who lost their DC for 10
days…
Filed for bankruptcy within 1 year
Risks Are All Around
• Risks
– Storage failure
– Power outage
– Programmer error
– Hardware failure
– Data center failure
– Cyber attack
– Weather related incidents
• Relative to any particular risk
– How much data can you afford to lose? (RPO)
– How long can you afford to be offline? (RTO)
– What price are you willing to pay to remove the risk?
• MongoDB Solutions
– Replication
– Application and Infrastructure engineering
– Backup of your Data
Analyzing your Risk Tolerance
Our Recommendations for
Avoiding Risk
Solution 1: Replication
• Built into MongoDB, only ops and
infrastructure cost
• Tunable durability gives you very little to zero
risk in case of failure
• Down for a very short interval
• BUT… programmer errors will replicate
almost instantly
Solution 2: Application and
Infrastructure Engineering
Lots of potential solutions to ensure
redundancy in applications and their
infrastructure, such as:
• Having more than one data center
• Spreading across AWS zones
Solution 3: Backup Your Data
Backup of your data is one way to assure
availability and lower risk. Keep in mind,
backups:
• Can suffer from being out of date
• Can be slow
• Isolated
• ...but usually cheap and covers most risks
• mongodump/mongorestore
• Storage level options
• MongoDB Backup Service
Comparing MongoDB Backup
Approaches
• Can be run online or offline
• Oplog aware for point in time restores
• Filter in, filter out
• Considerations:
– Data size
– Sharding
Mongodump/MongoRestore
• Copy files in your data directory (e.g.
/data/db)
• File system or block storage snapshots
• Fastest way to backup/restore
• Considerations:
– Journal
– Consistency
– Backup granularity (whole file system back up?)
– Ops expertise
– Storage of snapshots or data file backups
Storage-level Backups
● Possible in the cloud (via
mms.mongodb.com) or in your own hosted
environment
● Available on a variety of operating systems
(Examples - RHEL, Ubuntu, CentOS, OS X,
Windows)
Backup with MongoDB Management
Service
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
MongoDB Backup Recovery
Approaches
MongoDB Backup with MMS
How it Works
• Access the MMS UI
• Install the Backup Agent onto one server
• Select the replica sets or cluster you want to
back up
• Click the Start button
Backup with MongoDB Management
Service
System Architecture
The Web Interface
Backup is Highly Configurable
Select which:
• Replica Sets to include/exclude
• Collections/namespaces to include/exclude
• How often snapshots are taken of your data
(down to 15 minute intervals)
• How long your data is stored (up to 1 year)
• 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 24 hours
Under the Hood
Snapshots page
Restore from a Snapshot
Restoring data is incredibly simple -
• Select the snapshot you’d like to restore and
choose a delivery method (SCP push or HTTPS
pull)
• Receive the file
• Unzip it
• Point your mongod to this directory
Restoring a MongoDB Sharded
Cluster
Restoring data is only a few extra steps
• Select your cluster in the MMS UI
• Restore from a pre-build snapshot or request a
checkpoint restore (15 minute window)
• You will receive one data file to download for
each shard, and one for the config server(s)
• Follow the same process as before for moving
the data files to the server
How Do We Backup a Sharded
Cluster?
• Behind the scenes:
– Balancer paused every 6 hours**
– A no-op token is inserted across all shards,
mongoses and config servers
– Oplog applied to replica sets until point at which
token was inserted
• Provides a consistent state of database across
shards
**The balancer can be paused more frequently to accommodate more frequent restore points.
Small Deployment
Deploy for Redundancy
Recap: MongoDB Backup with MMS
• Simplest means of backing up your database
• Peace of mind, it just works
• Point-in-time restores for replica sets
• Check point restores for clusters
• Spin up QA or reporting environments quickly
from snapshots
Resources
• MMS Cloud mms.mongodb.com
• MMS Cloud Documentation
mms.mongodb.com/help/
• MMS On-Prem Documentation
mms.mongodb.com/help-hosted/
• MMS On-Prem software download
available on the subscription downloads
page
Questions?
Thanks!
Sam Weaver, Senior Solution Architect

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

MariaDB Performance Tuning and Optimization
MariaDB Performance Tuning and OptimizationMariaDB Performance Tuning and Optimization
MariaDB Performance Tuning and Optimization
 
PostgreSQL9.3 Switchover/Switchback
PostgreSQL9.3 Switchover/SwitchbackPostgreSQL9.3 Switchover/Switchback
PostgreSQL9.3 Switchover/Switchback
 
Webinar: Introduction to MongoDB 3.0
Webinar: Introduction to MongoDB 3.0Webinar: Introduction to MongoDB 3.0
Webinar: Introduction to MongoDB 3.0
 
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
 
Performance Tuning - Memory leaks, Thread deadlocks, JDK tools
Performance Tuning -  Memory leaks, Thread deadlocks, JDK toolsPerformance Tuning -  Memory leaks, Thread deadlocks, JDK tools
Performance Tuning - Memory leaks, Thread deadlocks, JDK tools
 
PostgreSQL Scaling And Failover
PostgreSQL Scaling And FailoverPostgreSQL Scaling And Failover
PostgreSQL Scaling And Failover
 
MariaDB High Availability Webinar
MariaDB High Availability WebinarMariaDB High Availability Webinar
MariaDB High Availability Webinar
 
PostreSQL HA and DR Setup & Use Cases
PostreSQL HA and DR Setup & Use CasesPostreSQL HA and DR Setup & Use Cases
PostreSQL HA and DR Setup & Use Cases
 
M|18 Where and How to Optimize for Performance
M|18 Where and How to Optimize for PerformanceM|18 Where and How to Optimize for Performance
M|18 Where and How to Optimize for Performance
 
M|18 Choosing the Right High Availability Strategy for You
M|18 Choosing the Right High Availability Strategy for YouM|18 Choosing the Right High Availability Strategy for You
M|18 Choosing the Right High Availability Strategy for You
 
Hardware Provisioning
Hardware ProvisioningHardware Provisioning
Hardware Provisioning
 
Building a High Performance Analytics Platform
Building a High Performance Analytics PlatformBuilding a High Performance Analytics Platform
Building a High Performance Analytics Platform
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual MachineRight-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machine
 
MySQL Server Backup, Restoration, and Disaster Recovery Planning
MySQL Server Backup, Restoration, and Disaster Recovery PlanningMySQL Server Backup, Restoration, and Disaster Recovery Planning
MySQL Server Backup, Restoration, and Disaster Recovery Planning
 
OVH Lab - Enterprise Cloud Databases
OVH Lab - Enterprise Cloud DatabasesOVH Lab - Enterprise Cloud Databases
OVH Lab - Enterprise Cloud Databases
 
MongoDB at MapMyFitness
MongoDB at MapMyFitnessMongoDB at MapMyFitness
MongoDB at MapMyFitness
 
Building a Scalable Architecture for web apps
Building a Scalable Architecture for web appsBuilding a Scalable Architecture for web apps
Building a Scalable Architecture for web apps
 
Sql saturday dc vm ware
Sql saturday dc vm wareSql saturday dc vm ware
Sql saturday dc vm ware
 
Performance Analysis and Troubleshooting Methodologies for Databases
Performance Analysis and Troubleshooting Methodologies for DatabasesPerformance Analysis and Troubleshooting Methodologies for Databases
Performance Analysis and Troubleshooting Methodologies for Databases
 
Deploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQLDeploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQL
 

Andere mochten auch

Andere mochten auch (7)

Backing Up Data with MMS
Backing Up Data with MMSBacking Up Data with MMS
Backing Up Data with MMS
 
MongoDB Days Silicon Valley: Concurrency Control in MongoDB 3.0+
MongoDB Days Silicon Valley: Concurrency Control in MongoDB 3.0+MongoDB Days Silicon Valley: Concurrency Control in MongoDB 3.0+
MongoDB Days Silicon Valley: Concurrency Control in MongoDB 3.0+
 
Automate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management ServiceAutomate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management Service
 
Prepare for Peak Holiday Season with MongoDB
Prepare for Peak Holiday Season with MongoDBPrepare for Peak Holiday Season with MongoDB
Prepare for Peak Holiday Season with MongoDB
 
An Enterprise Architect's View of MongoDB
An Enterprise Architect's View of MongoDBAn Enterprise Architect's View of MongoDB
An Enterprise Architect's View of MongoDB
 
MongoDB WiredTiger Internals
MongoDB WiredTiger InternalsMongoDB WiredTiger Internals
MongoDB WiredTiger Internals
 
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDBBenchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
 

Ähnlich wie Run MongoDB with Confidence: Backing up and Monitoring with MMS

Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment Strategy
MongoDB
 
MongoDB at MapMyFitness from a DevOps Perspective
MongoDB at MapMyFitness from a DevOps PerspectiveMongoDB at MapMyFitness from a DevOps Perspective
MongoDB at MapMyFitness from a DevOps Perspective
MongoDB
 

Ähnlich wie Run MongoDB with Confidence: Backing up and Monitoring with MMS (20)

MongoDB Management Service: Getting Started with MMS
MongoDB Management Service: Getting Started with MMSMongoDB Management Service: Getting Started with MMS
MongoDB Management Service: Getting Started with MMS
 
MongoDB Management Service (MMS): Session 01: Getting Started with MMS
MongoDB Management Service (MMS): Session 01: Getting Started with MMSMongoDB Management Service (MMS): Session 01: Getting Started with MMS
MongoDB Management Service (MMS): Session 01: Getting Started with MMS
 
IBM MQ Disaster Recovery
IBM MQ Disaster RecoveryIBM MQ Disaster Recovery
IBM MQ Disaster Recovery
 
MongoDB Days Silicon Valley: Best Practices for Upgrading to MongoDB
MongoDB Days Silicon Valley: Best Practices for Upgrading to MongoDBMongoDB Days Silicon Valley: Best Practices for Upgrading to MongoDB
MongoDB Days Silicon Valley: Best Practices for Upgrading to MongoDB
 
Webinar: Best Practices for Upgrading to MongoDB 3.2
Webinar: Best Practices for Upgrading to MongoDB 3.2Webinar: Best Practices for Upgrading to MongoDB 3.2
Webinar: Best Practices for Upgrading to MongoDB 3.2
 
Silicon Valley Code Camp 2015 - Advanced MongoDB - The Sequel
Silicon Valley Code Camp 2015 - Advanced MongoDB - The SequelSilicon Valley Code Camp 2015 - Advanced MongoDB - The Sequel
Silicon Valley Code Camp 2015 - Advanced MongoDB - The Sequel
 
An Introduction to MongoDB Ops Manager
An Introduction to MongoDB Ops ManagerAn Introduction to MongoDB Ops Manager
An Introduction to MongoDB Ops Manager
 
MongoDB Deployment Checklist
MongoDB Deployment ChecklistMongoDB Deployment Checklist
MongoDB Deployment Checklist
 
Web Speed And Scalability
Web Speed And ScalabilityWeb Speed And Scalability
Web Speed And Scalability
 
Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment Strategy
 
Deployment Strategies
Deployment StrategiesDeployment Strategies
Deployment Strategies
 
A Backup Today Saves Tomorrow
A Backup Today Saves TomorrowA Backup Today Saves Tomorrow
A Backup Today Saves Tomorrow
 
KoprowskiT_SPBizConf_2AMaDisasterJustBegan
KoprowskiT_SPBizConf_2AMaDisasterJustBeganKoprowskiT_SPBizConf_2AMaDisasterJustBegan
KoprowskiT_SPBizConf_2AMaDisasterJustBegan
 
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBeganKoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
 
MongoDB at MapMyFitness from a DevOps Perspective
MongoDB at MapMyFitness from a DevOps PerspectiveMongoDB at MapMyFitness from a DevOps Perspective
MongoDB at MapMyFitness from a DevOps Perspective
 
KoprowskiT_SQLDay2016_2AMaDisasterJustBegan
KoprowskiT_SQLDay2016_2AMaDisasterJustBeganKoprowskiT_SQLDay2016_2AMaDisasterJustBegan
KoprowskiT_SQLDay2016_2AMaDisasterJustBegan
 
Silicon Valley Code Camp 2014 - Advanced MongoDB
Silicon Valley Code Camp 2014 - Advanced MongoDBSilicon Valley Code Camp 2014 - Advanced MongoDB
Silicon Valley Code Camp 2014 - Advanced MongoDB
 
Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)
 
05. performance-concepts
05. performance-concepts05. performance-concepts
05. performance-concepts
 
Automate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management ServiceAutomate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management Service
 

Mehr von MongoDB

Mehr von MongoDB (20)

MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
 
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
 
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
 
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDBMongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
 
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
 
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series DataMongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
 
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 MongoDB SoCal 2020: MongoDB Atlas Jump Start MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
 
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
 
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
 
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
 
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your MindsetMongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
 
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas JumpstartMongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
 
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
 
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
 
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
 
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep DiveMongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
 
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & GolangMongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
 
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
 
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
 

Kürzlich hochgeladen

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

Run MongoDB with Confidence: Backing up and Monitoring with MMS

  • 1. MongoDB Backup and Monitoring with MMS Sam Weaver, Senior Solution Architect #MongoDBWorld
  • 5. The MMS User Interface Navigation tabs take you to the different functional areas of MongoDB Management Service. Through this interface, you can monitor your deployment, configure alerts via email or SMS, backup your data and automate your deployments.
  • 7. Monitoring MMS monitors deployments through a monitoring agent installed on a host server. One agent can: • Identify the members of the deployment and server configuration, MongoDB Version, query profile, logs, etc. • Dynamically create a graphical representation of the deployment technology. • Visualize performance indications like lock percentage, reads/writes, queues, etc. • Enable you to configure alerts for when these numbers aren’t “normal”
  • 11. • Set a base line for normal by seeing how your production environment responds to regular traffic • Check for spikes in operations – peak or unexpected load? What’s “normal”?
  • 12. = Key performance indicators • Page faults, queues and lock % may be indicators that you need to scale up or out • Oplog window indicates how long a secondary can be behind the primary • Background average flush indicates if your disks are struggling
  • 13. Monitoring Additionally, MongoDB offers Proactive Support for Subscription Customers, where our engineers are able to monitor your deployment and make suggestions in order to tweak for better performance or avoid doom.
  • 15. Disasters are not only due to user error...
  • 16. There’s many other causes of disasters
  • 17. 34% of companies fail to test their tape backups
  • 18. 77% of those that did, found failures
  • 19. 60% of companies that lost their data…
  • 21. 140,000 HDD crashes per week in the US
  • 22. 93% of those who lost their DC for 10 days…
  • 23. Filed for bankruptcy within 1 year
  • 24. Risks Are All Around • Risks – Storage failure – Power outage – Programmer error – Hardware failure – Data center failure – Cyber attack – Weather related incidents
  • 25. • Relative to any particular risk – How much data can you afford to lose? (RPO) – How long can you afford to be offline? (RTO) – What price are you willing to pay to remove the risk? • MongoDB Solutions – Replication – Application and Infrastructure engineering – Backup of your Data Analyzing your Risk Tolerance
  • 27. Solution 1: Replication • Built into MongoDB, only ops and infrastructure cost • Tunable durability gives you very little to zero risk in case of failure • Down for a very short interval • BUT… programmer errors will replicate almost instantly
  • 28. Solution 2: Application and Infrastructure Engineering Lots of potential solutions to ensure redundancy in applications and their infrastructure, such as: • Having more than one data center • Spreading across AWS zones
  • 29. Solution 3: Backup Your Data Backup of your data is one way to assure availability and lower risk. Keep in mind, backups: • Can suffer from being out of date • Can be slow • Isolated • ...but usually cheap and covers most risks
  • 30. • mongodump/mongorestore • Storage level options • MongoDB Backup Service Comparing MongoDB Backup Approaches
  • 31. • Can be run online or offline • Oplog aware for point in time restores • Filter in, filter out • Considerations: – Data size – Sharding Mongodump/MongoRestore
  • 32. • Copy files in your data directory (e.g. /data/db) • File system or block storage snapshots • Fastest way to backup/restore • Considerations: – Journal – Consistency – Backup granularity (whole file system back up?) – Ops expertise – Storage of snapshots or data file backups Storage-level Backups
  • 33. ● Possible in the cloud (via mms.mongodb.com) or in your own hosted environment ● Available on a variety of operating systems (Examples - RHEL, Ubuntu, CentOS, OS X, Windows) Backup with MongoDB Management Service
  • 34. 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 MongoDB Backup Recovery Approaches
  • 35. MongoDB Backup with MMS How it Works
  • 36. • Access the MMS UI • Install the Backup Agent onto one server • Select the replica sets or cluster you want to back up • Click the Start button Backup with MongoDB Management Service
  • 39. Backup is Highly Configurable Select which: • Replica Sets to include/exclude • Collections/namespaces to include/exclude • How often snapshots are taken of your data (down to 15 minute intervals) • How long your data is stored (up to 1 year)
  • 40. • 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 24 hours Under the Hood
  • 42. Restore from a Snapshot Restoring data is incredibly simple - • Select the snapshot you’d like to restore and choose a delivery method (SCP push or HTTPS pull) • Receive the file • Unzip it • Point your mongod to this directory
  • 43.
  • 44. Restoring a MongoDB Sharded Cluster Restoring data is only a few extra steps • Select your cluster in the MMS UI • Restore from a pre-build snapshot or request a checkpoint restore (15 minute window) • You will receive one data file to download for each shard, and one for the config server(s) • Follow the same process as before for moving the data files to the server
  • 45. How Do We Backup a Sharded Cluster? • Behind the scenes: – Balancer paused every 6 hours** – A no-op token is inserted across all shards, mongoses and config servers – Oplog applied to replica sets until point at which token was inserted • Provides a consistent state of database across shards **The balancer can be paused more frequently to accommodate more frequent restore points.
  • 48. Recap: MongoDB Backup with MMS • Simplest means of backing up your database • Peace of mind, it just works • Point-in-time restores for replica sets • Check point restores for clusters • Spin up QA or reporting environments quickly from snapshots
  • 49. Resources • MMS Cloud mms.mongodb.com • MMS Cloud Documentation mms.mongodb.com/help/ • MMS On-Prem Documentation mms.mongodb.com/help-hosted/ • MMS On-Prem software download available on the subscription downloads page
  • 51. Thanks! Sam Weaver, Senior Solution Architect