38

Automate MongoDB with MongoDB Management Service (MMS)

  • Upload
    mongodb

  • View
    473

  • Download
    4

Embed Size (px)

DESCRIPTION

MongoDB Management Service makes operations effortless, reducing complicated tasks to a single click. You can now provision machines, configure replica sets and sharded clusters, and upgrade your MongoDB deployment all through the MMS interface. This session will introduce you to the new automation functionality in MMS. We'll walk through demos of provisioning, expanding and contracting clusters, managing users, and more.

Citation preview

Page 1: Automate MongoDB with MongoDB Management Service (MMS)
Page 2: Automate MongoDB with MongoDB Management Service (MMS)

Automate MongoDB with MongoDB

Management Service (MMS)

Daniel Coupal

Technical Services Engineer, MongoDB

Page 3: Automate MongoDB with MongoDB Management Service (MMS)

3

Agenda

• What is MMS?

• MMS Maintenance Operations

• Demo

• MMS Monitoring

• MMS Backup

• Wrapping Up

Page 4: Automate MongoDB with MongoDB Management Service (MMS)

What is MMS?

Page 5: Automate MongoDB with MongoDB Management Service (MMS)

5

What WAS the MongoDB Management

Service?

• Two months 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 6: Automate MongoDB with MongoDB Management Service (MMS)

6

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 7: Automate MongoDB with MongoDB Management Service (MMS)

7

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 8: Automate MongoDB with MongoDB Management Service (MMS)

8

Page 9: Automate MongoDB with MongoDB Management Service (MMS)

9

And run a very large MongoDB deployment of their own!

Page 10: Automate MongoDB with MongoDB Management Service (MMS)

10

Page 11: Automate MongoDB with MongoDB Management Service (MMS)

11

MongoDB DatacenterCustomer Datacenter

MMS Agent

HTTPS

HTTPS

Page 12: Automate MongoDB with MongoDB Management Service (MMS)

12

Page 13: Automate MongoDB with MongoDB Management Service (MMS)

13

Page 14: Automate MongoDB with MongoDB Management Service (MMS)

14

Page 15: Automate MongoDB with MongoDB Management Service (MMS)

MMS Maintenance Operations

Page 16: Automate MongoDB with MongoDB Management Service (MMS)

16

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 17: Automate MongoDB with MongoDB Management Service (MMS)

17

Step 1 – Stop A Secondary

Page 18: Automate MongoDB with MongoDB Management Service (MMS)

18

Step 2 – Restart As Standalone

Page 19: Automate MongoDB with MongoDB Management Service (MMS)

19

Step 3 – Perform Maintenance

Page 20: Automate MongoDB with MongoDB Management Service (MMS)

20

Step 4 –Restart As Member of Replica Set

Page 21: Automate MongoDB with MongoDB Management Service (MMS)

21

Step 5 – Work on Primary Last

Page 22: Automate MongoDB with MongoDB Management Service (MMS)

Demo

Page 23: Automate MongoDB with MongoDB Management Service (MMS)

23

Operations

• Provision a cluster

• Upgrade/Downgrade

• Add replica member

• Add shard

• Remove shard

• Resize oplog

Page 24: Automate MongoDB with MongoDB Management Service (MMS)

MMS Monitoring

Page 25: Automate MongoDB with MongoDB Management Service (MMS)

25

Topology

Page 26: Automate MongoDB with MongoDB Management Service (MMS)

26

Charting

Page 27: Automate MongoDB with MongoDB Management Service (MMS)

27

Alerting

Page 28: Automate MongoDB with MongoDB Management Service (MMS)

28

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 29: Automate MongoDB with MongoDB Management Service (MMS)

MMS Backup

Page 30: Automate MongoDB with MongoDB Management Service (MMS)

30

Risks Are Everywhere

Storage failures

Power outagesProgrammer

error

Hardware failures

AWS Mandatory

Reboots

Datacenter failures

Cyber attacks Weather

Page 31: Automate MongoDB with MongoDB Management Service (MMS)

31

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 32: Automate MongoDB with MongoDB Management Service (MMS)

32

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 33: Automate MongoDB with MongoDB Management Service (MMS)

33

MongoDB Backup Approaches

mongodump File system MMS Backup

Initial complexity Medium High Low

Confidence in Backups

Medium Medium High

Point in timerecovery of replica set

Sort of ☺ No Yes

System Overhead High Can be low Low

Scalable No With work Yes

ConsistentSnapshot of Sharded System

Difficult Difficult Yes

Page 34: Automate MongoDB with MongoDB Management Service (MMS)

Wrapping Up

Page 35: Automate MongoDB with MongoDB Management Service (MMS)

35

Roadmap

• On Premise version of automation just around

the corner

• Further support for cloud & virtualization

technologies – suggestions welcome!

Page 36: Automate MongoDB with MongoDB Management Service (MMS)

36

Resources

• MMS

– mms.mongodb.com

– mms.mongodb.com/help

• MMS On-Premise

– Available with your MongoDB Entreprise Subscription

– Available for evaluation

– mms.mongodb.com/help-hosted

Page 37: Automate MongoDB with MongoDB Management Service (MMS)

37

Take Away

• We are bringing the easiness of developing with

MongoDB to deploying and operating it.

Page 38: Automate MongoDB with MongoDB Management Service (MMS)

Thank You for using MongoDB!

Daniel Coupal

Technical Services Engineer, MongoDB