37
Run MongoDB with Confidence using MMS Sam Weaver #mongodb #mongodbdays @samuel_weaver Product Manager, MongoDB

Mongo db london

  • Upload
    mongodb

  • View
    269

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Mongo db london

Run MongoDB with Confidence using MMS

Sam Weaver

#mongodb #mongodbdays

@samuel_weaver

Product Manager, MongoDB

Page 2: Mongo db london

Operational complexities

Page 3: Mongo db london

What is MMS?

Page 4: Mongo db london

MMS back in the day

Page 5: Mongo db london
Page 6: Mongo db london

What WAS the MongoDB Management Service?

• Two weeks ago, 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 7: Mongo db london

What did we change?

• MMS is now a web-based tool that starts with your 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 8: Mongo db london

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!

3. Puppet/Chef/Others scripts hard to maintain between version releases. Lots can go wrong!

Page 9: Mongo db london
Page 10: Mongo db london
Page 11: Mongo db london

MongoDB DatacenterCustomer Datacenter

MMS Agent

HTTPS

HTTPS

Page 12: Mongo db london
Page 13: Mongo db london
Page 14: Mongo db london

Onboarding Demo

Page 15: Mongo db london

MMS Monitoring

Page 16: Mongo db london

Topology

Page 17: Mongo db london

Charting

Page 18: Mongo db london

Alerting

Page 19: Mongo db london

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 20: Mongo db london

MMS Backups

Page 21: Mongo db london

Risks Are Everywhere

Storage failures

Power outages

Programmer error

Hardware failures

AWS Mandatory

Reboots

Datacenter failures

Cyber attacks Weather

Page 22: Mongo db london

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 23: Mongo db london

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 24: Mongo db london

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 25: Mongo db london

Queryable Backups Demo

Page 26: Mongo db london

MMS Maintenance Operations

Page 27: Mongo db london

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 28: Mongo db london

Step 1 – Stop A Secondary

Page 29: Mongo db london

Step 2 – Restart As Standalone

Page 30: Mongo db london

Step 3 – Perform Maintenance

Page 31: Mongo db london

Step 4 – Restart As Member of Replica Set

Page 32: Mongo db london

Step 5 – Work on Primary Last

Page 33: Mongo db london

Demo

Page 34: Mongo db london

Operations

• Upgrade/Downgrade

• Add replica member

• Add shard

• Remove shard

• Resize oplog

Page 35: Mongo db london

Roadmap

• On Premise version of automation just around the corner

• Further support for cloud & virtualization technologies – suggestions welcome!

Page 36: Mongo db london

Resources

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

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

Page 37: Mongo db london

Thank You

Sam Weaver

#mongodb #mongodbdays

@samuel_weaver

Product Manager, MongoDB