33
MMS: The Easiest Way to Run MongoDB Daniel Coupal #mongodb Technical Services Engineer, MongoDB

MMS: The Easiest Way to Run MongoDB

Embed Size (px)

DESCRIPTION

Presentation on the new MMS features done at the MongoDB office in Palo Alto, by Daniel Coupal, on November 12 2014

Citation preview

Page 1: MMS: The Easiest Way to Run MongoDB

MMS: The Easiest Way to Run MongoDB

Daniel Coupal

#mongodb

Technical Services Engineer, MongoDB

Page 2: MMS: The Easiest Way to Run MongoDB

What is MMS?

Page 3: MMS: The Easiest Way to Run MongoDB

What WAS the MongoDB Management Service?

•  Last month, the MongoDB Management Service was a web-based tool that allowed you to Monitor and Backup your MongoDB deployment.

•  You created your deployment, in any size or shape, then you used MMS to Monitor or Backup your deployment.

Page 4: MMS: The Easiest Way to Run MongoDB

What did we change?

•  MMS is now a web-based tool that starts with you from the beginning of your MongoDB deployment lifecycle.

•  Now you use MMS to build your deployment, and then continue to use MMS to manage its lifecycle (including Monitoring and Backup!)

Page 5: MMS: The Easiest Way to Run MongoDB

Why the change?

1.  MMS was arriving in the user’s life a little “late to the party”. Mistakes had already been made. User might already some misconceptions or frustrations with MongoDB.

2.  Previous version of MMS could monitor critical operations (maintenance, upgrades, etc.), but not actually help!

Page 6: MMS: The Easiest Way to Run MongoDB
Page 7: MMS: The Easiest Way to Run MongoDB

And run a very large MongoDB deployment of their own!

Page 8: MMS: The Easiest Way to Run MongoDB
Page 9: MMS: The Easiest Way to Run MongoDB

MongoDB Datacenter Customer Datacenter

MMS Agent

HTTPS

HTTPS

Page 10: MMS: The Easiest Way to Run MongoDB
Page 11: MMS: The Easiest Way to Run MongoDB
Page 12: MMS: The Easiest Way to Run MongoDB
Page 13: MMS: The Easiest Way to Run MongoDB

MMS Monitoring

Page 14: MMS: The Easiest Way to Run MongoDB

Topology

Page 15: MMS: The Easiest Way to Run MongoDB

Charting

Page 16: MMS: The Easiest Way to Run MongoDB

Alerting

Page 17: MMS: The Easiest Way to Run MongoDB

Proactive Support

MongoDB offers Proactive Support for Subscription Customers. Our engineers can

monitor your deployment and make suggestions in order to tweak for better

performance or avoid doom.

Page 18: MMS: The Easiest Way to Run MongoDB

MMS Backups

Page 19: MMS: The Easiest Way to Run MongoDB

Risks Are Everywhere

Storage failures

Power outages

Programmer error

Hardware failures

AWS Mandatory

Reboots

Datacenter failures

Cyber attacks Weather

Page 20: MMS: The Easiest Way to Run MongoDB

Replication

•  Redundant copies of your data across –  Servers –  Racks –  Data Centers

•  Automatic failover

•  Tunable consistency minimizes risk

•  However…programmer errors will replicate almost immediately!

Page 21: MMS: The Easiest Way to Run MongoDB

Backups

Backing up data is one way to ensure availability and lower risk. Effort is required to ensure that your backup system is always running and that the backups are correct.

Page 22: MMS: The Easiest Way to Run MongoDB

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 23: MMS: The Easiest Way to Run MongoDB

MMS Maintenance Operations

Page 24: MMS: The Easiest Way to Run MongoDB

The Process

•  Applies to upgrades and most maintenance tasks

•  Careful order of steps is critical –  Especially in sharded clusters!

•  For each shard/replica set –  For each replica set member

•  http://docs.mongodb.org/manual/tutorial/perform-maintence-on-replica-set-members/

Page 25: MMS: The Easiest Way to Run MongoDB

Step 1 – Stop A Secondary

Page 26: MMS: The Easiest Way to Run MongoDB

Step 2 – Restart As Standalone

Page 27: MMS: The Easiest Way to Run MongoDB

Step 3 – Perform Maintenance

Page 28: MMS: The Easiest Way to Run MongoDB

Step 4 – Restart As Member of Replica Set

Page 29: MMS: The Easiest Way to Run MongoDB

Step 5 – Work on Primary Last

Page 30: MMS: The Easiest Way to Run MongoDB

Demo

Page 31: MMS: The Easiest Way to Run MongoDB

Operations

•  Upgrade/Downgrade

•  Add replica member

•  Add shard

•  Remove shard

•  Resize oplog

Page 32: MMS: The Easiest Way to Run MongoDB

Resources

•  MMS –  mms.mongodb.com –  mms.mongodb.com/help

•  MMS On-Premise –  Available for evaluation –  mms.mongodb.com/help-hosted

Page 33: MMS: The Easiest Way to Run MongoDB

Thanks and see you at MongoSF discount code: 50DanielCoupal Daniel Coupal

#mongodb #mongodbdays

Technical Services Engineer, MongoDB