+ All Categories
Home > Technology > Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Date post: 09-Jul-2015
Category:
Upload: mongodb
View: 231 times
Download: 3 times
Share this document with a friend
Description:
MongoDB Management Service (MMS) is the application for managing MongoDB, created by the engineers who develop MongoDB. MMS provides visibility into the performance of your cluster, alerting when key metrics are out of range and backup and recovery of your mission critical data. This session will provide you with an overview of MMS, including installation and setup and a walk through of metrics and alerts. Then we'll compare and contrast the various different backup strategies, with a deep dive on using MMS to back up your MongoDB data.
Popular Tags:
50
Run MongoDB with Confidence using MMS Sandeep Parikh #mongodb #mongodbdays @crcsmnky Senior Solutions Architect, MongoDB
Transcript
Page 1: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Run MongoDB with Confidence using MMS

Sandeep Parikh

#mongodb #mongodbdays

@crcsmnky

Senior Solutions Architect, MongoDB

Page 2: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Operational Complexities

Page 3: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

What is MMS?

Page 4: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MongoDB Management Service

Page 5: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

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.

Page 6: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MMS Monitoring

Page 7: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

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”

Page 8: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Topology

Page 9: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Charting

Page 10: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Alerting

Page 11: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

What is “Normal”?

• 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?

Page 12: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

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

Page 13: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Proactive Support

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.

Page 14: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MMS Backup

Page 15: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Disasters: All Shapes & Sizes

Page 16: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Disasters: Many Causes

Page 17: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

⅓ Companies Don’t Test Tape Backups

Page 18: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

¾ Companies Found Failures

Page 19: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

60% of Companies That Lost Data…

Page 20: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

…Closed Within 6 Months

Page 21: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

140K Drive Crashes Every Week

Page 22: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Lost DC for 10 Days?

Page 23: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Bankrupt Within 1 Year

Page 24: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Risks Are Everywhere

Storage failures

Power outages

Programmer error

Hardware failures

DC failuresCyber attacks

Weather

Page 25: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Analyzing Risk Tolerance

• 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 reduce risk?

• MongoDB solutions

– Replication

– Application/Infrastructure Engineering

– Backups!

Page 26: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Minimizing Risk

Page 27: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Replication

• Built into MongoDB, effects ops and infrastructure

cost

• Tunable durability minimizes risk in case of failure

• Automatic failover process lasts for very short

interval

• However…programmer errors will replicate almost

immediately!

Page 28: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

App and Infrastructure Engineering

Many potential solutions to ensure redunancy in

applications and infrastructure, such as:

• Multiple racks

• Multiple data centers

Page 29: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

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

Page 30: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MongoDB Backup Approaches

• mongodump/mongorestore

• Storage level options

• MMS Backup

Page 31: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

mongodump/mongorestore

• Run online or offline

• Oplog aware for point-in-time restores

• Filter in, filter out

• Considerations

– Data size

– Sharding

– Working set

Page 32: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Storage Level Backup

• Copy files from data directory (e.g. /data)

• File system or block level snapshots

• Fastest way to backup/restore

• Considerations

– Journaling

– Consistency

– Granularity

– Ops coordination, point-in-time

– Snapshot storage

Page 33: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MMS Backup

• Cloud or On-Premise

• Support for a variety of deployment systems

– RHEL, Ubuntu, CentOS, Mac, Windows

• Support for a variety of deployment types

– Single, Replica, Sharded

Page 34: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

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

Page 35: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MMS Backup Deep Dive

Page 36: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Getting Started with MMS Backup

• Sign into MMS

• Install the MMS Backup agent onto one node

• Select the replica sets or sharded cluster to back up

• Start

Page 37: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Architecture

MMS Backup

Page 38: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MMS Backup Interface

Page 39: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Configurable Backups

• Include/exclude Replica Sets

• Include/exclude Databases and/or Collections

• Control snapshot frequency (as low as 15 minutes)

• Control data retention (up to 1 year)

Page 40: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Snapshot Process

• Starting with the initial sync, we rebuild your data in

our data centers and start snapshotting

• Defaults snapshots every 6 hours

• Oplog is stored for 24 hours

Page 41: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Snapshots

Page 42: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Restoring From Snapshot

• Select snapshot and choose delivery (SCP or

HTTPS)

• Unzip snapshot file

• Start mongod pointing to this directory

Page 43: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Restore Interface

Page 44: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Sharded Cluster Backups

• Balancer paused every 6 hours (default,

configurable)

• A “no-op” token inserted into oplog, mongos, config

• Oplog applied to backup shards up to token point

Provides consistent state of the cluster across shards

Page 45: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Restoring Sharded Cluster

• Select cluster in MMS interface

• Restore from pre-built snapshot or request

checkpoint restore (15 minute window)

• Download one data file per shard and one for config

Page 46: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MMS Backup: Simple

Page 47: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MMS Backup: Increased Redundancy

Page 48: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

MMS Backup for MongoDB

• Simplest approach to backup

• Point-in-time restores for replica sets

• Check point restores for sharded clusters

• Customizable snapshot policy

• Two-factor auth required for restore

Page 49: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Resources

• MMS

– mms.mongodb.com

– mms.mongodb.com/help

• MMS On-Premise

– Available for evaluation

– mms.mongodb.com/help-hosted

Page 50: Run MongoDB with Confidence Using MongoDB Management Service (MMS)

Thank You

Sandeep Parikh

#mongodb #mongodbdays

@crcsmnky

Senior Solutions Architect, MongoDB


Recommended