mms automation in action!
TRANSCRIPT
![Page 1: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/1.jpg)
MMS Automation in Action
![Page 2: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/2.jpg)
MMS: MongoDB Management Service
![Page 3: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/3.jpg)
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!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/4.jpg)
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!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/5.jpg)
MMS Automation : Why?● Ease of operation
○ Some operations are easier to script than others...
![Page 6: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/6.jpg)
MMS Automation : Why?● Ease of operation● Expect the unexpected
![Page 7: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/7.jpg)
MMS Automation : Why?● Ease of operation● Expect the unexpected● Reliability
![Page 8: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/8.jpg)
MMS Automation : Why?● Ease of operation● Expect the unexpected● Reliability● Mongo expertise
![Page 9: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/9.jpg)
How Does It Work?
![Page 10: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/10.jpg)
Automation
Server 1 Server 3Server 2
MMS
![Page 11: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/11.jpg)
Automation
Server 1 Server 3Server 2
MMS
AUTO AUTOAUTO
![Page 12: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/12.jpg)
Automation
Server 1 Server 3Server 2
MMS
AUTO AUTOAUTO
![Page 13: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/13.jpg)
Automation
Server 1 Server 3Server 2
MMS
AUTO AUTOAUTO
mongod mongodmongod
![Page 14: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/14.jpg)
Automation
Server 1 Server 3Server 2
MMS
AUTO AUTOAUTO
mongod mongodmongod
![Page 15: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/15.jpg)
Automation
Server 1 Server 3Server 2
MMS
AUTO AUTOAUTO
mongod mongodmongod
![Page 16: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/16.jpg)
Automation
Server 1 Server 3Server 2
MMS
AUTO AUTOAUTO
mongod mongodmongod
![Page 17: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/17.jpg)
New Features
![Page 18: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/18.jpg)
Import Existing
● Start managing a pre-existing repl set or cluster with automation.
![Page 19: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/19.jpg)
Demo
![Page 20: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/20.jpg)
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!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/21.jpg)
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!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/22.jpg)
Storage Engine Conversion for Replica Sets
![Page 23: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/23.jpg)
P
S2S1
![Page 24: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/24.jpg)
P
S2S1
Stop mongod
![Page 25: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/25.jpg)
P
S2S1
Delete db files
![Page 26: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/26.jpg)
P
S2S1
Start mongod with newstorage engine
![Page 27: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/27.jpg)
P
S2S1
Wait for initial sync
![Page 28: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/28.jpg)
P
S2S1
![Page 29: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/29.jpg)
P
S2S1
![Page 30: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/30.jpg)
P
S2S1
![Page 31: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/31.jpg)
P
S2S1
![Page 32: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/32.jpg)
PS1
![Page 33: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/33.jpg)
PS1
![Page 34: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/34.jpg)
S2
PS1
![Page 35: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/35.jpg)
S2
PS1
![Page 36: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/36.jpg)
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!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/37.jpg)
Repair Config Server
Automation will automatically detect if a config server gets out of sync, and repair it
![Page 38: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/38.jpg)
Repair Config Server
1. Detect that config server is out of sync by comparing dbhash against other dbhashes
![Page 39: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/39.jpg)
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!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/40.jpg)
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!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/41.jpg)
CS2 CS3
27000 CLIENT
CS1
Repair Config Server
![Page 42: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/42.jpg)
CS1 CS2 CS3
27000 CLIENT
Repair Config Server
![Page 43: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/43.jpg)
CS1 CS2 CS3
27000 CLIENT
Repair Config Server
![Page 44: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/44.jpg)
CS1 CS2 CS3
27000 CLIENT
27001
CS1
Repair Config Server
![Page 45: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/45.jpg)
CS1 CS2 CS3
27000 CLIENT
27001
CS1
![Page 46: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/46.jpg)
CS1 CS2 CS3
27000 CLIENT
27001
CS1
![Page 47: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/47.jpg)
CS2 CS3
27000 CLIENT
CS1
![Page 48: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/48.jpg)
Demo
![Page 49: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/49.jpg)
Automation API
● Can GET/PUT a Group’s AutomationConfig● Can GET the AutomationStatus of a Group
![Page 50: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/50.jpg)
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!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/51.jpg)
Automation API - Demo
● Follow along○ https://bit.ly/mmsautoapi
![Page 52: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/52.jpg)
Automation API - Demo
● Follow along○ https://bit.ly/mmsautoapi
● Read more○ https://docs.mms.mongodb.com/reference/api/
![Page 53: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/53.jpg)
Coming Soon● Resync● Rolling Indexes● Restore Backups● Microsoft Azure Support
![Page 54: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/54.jpg)
Advanced Enterprise Features
● SSL● LDAP Authentication● X.509 Authentication● Kerberos Authentication
![Page 55: MMS Automation In Action!](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cd1288bb61eb8d158b456e/html5/thumbnails/55.jpg)
Questions?