ops jumpstart: admin 101

20
Ops Jumpstart: Admin 101 André Spiegel Consulting Engineer MongoDB

Upload: mongodb

Post on 25-Jul-2015

79 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Ops Jumpstart: Admin 101

Ops Jumpstart: Admin 101

André Spiegel

Consulting EngineerMongoDB

Page 2: Ops Jumpstart: Admin 101

2

0 – 100 in 45 mins

1) What is MongoDB?

2) What's so specialabout administering it?

Page 3: Ops Jumpstart: Admin 101

What is MongoDB?

Page 4: Ops Jumpstart: Admin 101

4

db-engines.com/ranking

Page 5: Ops Jumpstart: Admin 101

5

{

"name" : "James Bond",

"age" : 42,

"address" : [

{ "city" : "London",

"country": "UK"

},

{ "city" : "Nassau/Bahamas",

"country" : "US"

}

]

}

Storing Documents: JSON

Page 6: Ops Jumpstart: Admin 101

6

db.persons.find ({ "name" : "James Bond" })

db.persons.find ({ "age" : { "$gt" : 40 } })

db.persons.update ({ "name" : "James Bond" },

{ "$inc" : "age" })

Expressive Query Language

Page 7: Ops Jumpstart: Admin 101

7

Replication

PRIMARY

SECONDARY SECONDARY

DRIVER

APPLICATION

Page 8: Ops Jumpstart: Admin 101

8

Sharding

SHARD0

SHARD1

SHARD2

SHARD3

ROUTERmongos

DRIVER

APPLICATION

C

C C

Page 9: Ops Jumpstart: Admin 101

9

Sharding & Replication

ROUTERmongos

DRIVER

APPLICATION

C

C C

P

S S

P

S S

P

S S

P

S S

Page 10: Ops Jumpstart: Admin 101

10

MongoDB in a Nutshell

• A document store: more complex data than relational

• Query language is just about as expressive as SQL

• Much greater focus on scalability

– replication (high availability)

– sharding (volume and throughput)

Page 11: Ops Jumpstart: Admin 101

What's so specialabout administering it?

Page 12: Ops Jumpstart: Admin 101

12

DBA Tasks for MongoDB

• There are no schemas

• Indexes are more important than in relational DBs

• Responsibility for security

• Likely dealing with a lot of servers

– monitoring

– backup

– deployment

Page 13: Ops Jumpstart: Admin 101

13

Page 14: Ops Jumpstart: Admin 101

14

Page 15: Ops Jumpstart: Admin 101

15

MongoDB Management Service

• Comprehensive, web-based management solution

– modules for monitoring, backup, automation

• MMS (in cloud)

– we run it for you

– enhances interaction with MongoDB tech support

• OpsManager (on prem)

– you run it yourself

– all under your control, nothing leaves your network

Page 16: Ops Jumpstart: Admin 101

16

Monitoring

Page 17: Ops Jumpstart: Admin 101

17

Backup

• Registers itself as a hidden replica,works cluster-wide

• Snapshot every six hours,plus oplog, thuspoint-in-time restore

• Requires 3-4x original storage for typical retention policy

• Can do 100s of GB/day over the net

• On-prem version available for enterprise customers

Page 18: Ops Jumpstart: Admin 101

18

Automation

• Deploy, configure and controlMongoDB on your own hardware

• Create complex configurationswith dozens, hundreds of serversin seconds

• Orchestrate complex tasks such as version upgrades, change of storage engine

• Each server runs an autonomous automation agent

Page 19: Ops Jumpstart: Admin 101

19

Summary

• Paradigm shift in databases is happening

• MongoDB is extremely attractive to modern application development: complex data structures, huge volume

• For DBAs, some things are different, some things stay the same: no schemas, but many servers

• Know as much as you can!

Page 20: Ops Jumpstart: Admin 101

Thank you.

Questions?