+ All Categories
Home > Technology > MMS Automation In Action!

MMS Automation In Action!

Date post: 14-Aug-2015
Category:
Upload: mongodb
View: 76 times
Download: 0 times
Share this document with a friend
Popular Tags:
55
MMS Automation in Action
Transcript
Page 1: MMS Automation In Action!

MMS Automation in Action

Page 2: MMS Automation In Action!

MMS: MongoDB Management Service

Page 3: MMS Automation In Action!

MMS Automation

● Create MongoDB systems of any size, and any configuration

● Manage MongoDB systems, such as adding capacity or resizing the oplog, with no application downtime

● Upgrade a deployment, with no application downtime

… all from the comfort of your web browser.

Page 4: MMS Automation In Action!

MMS ProvisioningIntegration with Amazon AWS that allows you to provision the servers on which your MongoDB processes will run, directly from MMS.

● Optional component - you can provision your base servers any way you like, doing it via MMS Provisioning is just one way

● Future plans to integrate OpenStack, Azure, Digital Ocean, etc.

Page 5: MMS Automation In Action!

MMS Automation : Why?● Ease of operation

○ Some operations are easier to script than others...

Page 6: MMS Automation In Action!

MMS Automation : Why?● Ease of operation● Expect the unexpected

Page 7: MMS Automation In Action!

MMS Automation : Why?● Ease of operation● Expect the unexpected● Reliability

Page 8: MMS Automation In Action!

MMS Automation : Why?● Ease of operation● Expect the unexpected● Reliability● Mongo expertise

Page 9: MMS Automation In Action!

How Does It Work?

Page 10: MMS Automation In Action!

Automation

Server 1 Server 3Server 2

MMS

Page 11: MMS Automation In Action!

Automation

Server 1 Server 3Server 2

MMS

AUTO AUTOAUTO

Page 12: MMS Automation In Action!

Automation

Server 1 Server 3Server 2

MMS

AUTO AUTOAUTO

Page 13: MMS Automation In Action!

Automation

Server 1 Server 3Server 2

MMS

AUTO AUTOAUTO

mongod mongodmongod

Page 14: MMS Automation In Action!

Automation

Server 1 Server 3Server 2

MMS

AUTO AUTOAUTO

mongod mongodmongod

Page 15: MMS Automation In Action!

Automation

Server 1 Server 3Server 2

MMS

AUTO AUTOAUTO

mongod mongodmongod

Page 16: MMS Automation In Action!

Automation

Server 1 Server 3Server 2

MMS

AUTO AUTOAUTO

mongod mongodmongod

Page 17: MMS Automation In Action!

New Features

Page 18: MMS Automation In Action!

Import Existing

● Start managing a pre-existing repl set or cluster with automation.

Page 19: MMS Automation In Action!

Demo

Page 20: MMS Automation In Action!

Authentication and Authorization● Automation supports adding, editing, and removing

users and custom roles.● Works with standalone instances, replica sets, and

sharded clusters.● Works with all versions of MongoDB that Automation

supports: 2.4, 2.6 and 3.0● Delayed auth schema upgrades are supported

Page 21: MMS Automation In Action!

Storage Engine Conversion

● Pluggable storage engines are a new feature in MongoDB 3.0

● Automation supports converting between MMAPv1 and WiredTiger storage engines.

Page 22: MMS Automation In Action!

Storage Engine Conversion for Replica Sets

Page 23: MMS Automation In Action!

P

S2S1

Page 24: MMS Automation In Action!

P

S2S1

Stop mongod

Page 25: MMS Automation In Action!

P

S2S1

Delete db files

Page 26: MMS Automation In Action!

P

S2S1

Start mongod with newstorage engine

Page 27: MMS Automation In Action!

P

S2S1

Wait for initial sync

Page 28: MMS Automation In Action!

P

S2S1

Page 29: MMS Automation In Action!

P

S2S1

Page 30: MMS Automation In Action!

P

S2S1

Page 31: MMS Automation In Action!

P

S2S1

Page 32: MMS Automation In Action!

PS1

Page 33: MMS Automation In Action!

PS1

Page 34: MMS Automation In Action!

S2

PS1

Page 35: MMS Automation In Action!

S2

PS1

Page 36: MMS Automation In Action!

Storage Engine Conversion(standalone instances)

1. Stop mongod2. Start mongod on a different port3. Run mongodump4. Stop mongod5. Remove files under the dbpath6. Start mongod with new storage engine setting (still on

the different port)7. Run mongorestore8. Restart mongod on its original port

Page 37: MMS Automation In Action!

Repair Config Server

Automation will automatically detect if a config server gets out of sync, and repair it

Page 38: MMS Automation In Action!

Repair Config Server

1. Detect that config server is out of sync by comparing dbhash against other dbhashes

Page 39: MMS Automation In Action!

Repair Config Server

2. Figure out which dbhash is correct

● Ignore if data size < 90% max data size

● If two agree, assume they are correct

● If none agree, choose “the first”

Page 40: MMS Automation In Action!

Repair Config Server

3. Repair config server : ● shut down● mongodump from a good server● start up on ephemeral port ● mongorestore● verify dbhash correct● restart on normal port

Page 41: MMS Automation In Action!

CS2 CS3

27000 CLIENT

CS1

Repair Config Server

Page 42: MMS Automation In Action!

CS1 CS2 CS3

27000 CLIENT

Repair Config Server

Page 43: MMS Automation In Action!

CS1 CS2 CS3

27000 CLIENT

Repair Config Server

Page 44: MMS Automation In Action!

CS1 CS2 CS3

27000 CLIENT

27001

CS1

Repair Config Server

Page 45: MMS Automation In Action!

CS1 CS2 CS3

27000 CLIENT

27001

CS1

Page 46: MMS Automation In Action!

CS1 CS2 CS3

27000 CLIENT

27001

CS1

Page 47: MMS Automation In Action!

CS2 CS3

27000 CLIENT

CS1

Page 48: MMS Automation In Action!

Demo

Page 49: MMS Automation In Action!

Automation API

● Can GET/PUT a Group’s AutomationConfig● Can GET the AutomationStatus of a Group

Page 50: MMS Automation In Action!

Automation API

● Can GET/PUT a Group’s AutomationConfig● Can GET the AutomationStatus of a Group

○ Bypass the UI, automate automation

Page 51: MMS Automation In Action!

Automation API - Demo

● Follow along○ https://bit.ly/mmsautoapi

Page 52: MMS Automation In Action!

Automation API - Demo

● Follow along○ https://bit.ly/mmsautoapi

● Read more○ https://docs.mms.mongodb.com/reference/api/

Page 53: MMS Automation In Action!

Coming Soon● Resync● Rolling Indexes● Restore Backups● Microsoft Azure Support

Page 54: MMS Automation In Action!

Advanced Enterprise Features

● SSL● LDAP Authentication● X.509 Authentication● Kerberos Authentication

Page 55: MMS Automation In Action!

Questions?


Recommended