mongodb backup service overview boston mug

20
MongoDB Management Service: Backup Overview

Upload: mongodb

Post on 12-May-2015

917 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: MongoDB backup service overview Boston MUG

MongoDB Management Service:Backup Overview

Page 2: MongoDB backup service overview Boston MUG

Disasters do happen

Page 3: MongoDB backup service overview Boston MUG

Sometimes they are our fault

Page 4: MongoDB backup service overview Boston MUG

4

• How much data can you afford to lose? (RPO)

• How long can you afford to be off-line? (RTO)

• Cost is impacted by these decisions.

Considerations

Page 5: MongoDB backup service overview Boston MUG

5

• mongodump/mongorestore

• Storage-level options

• MongoDB Backup Service (new!)

Recovery Approaches for MongoDB

Page 6: MongoDB backup service overview Boston MUG

6

• Can be run in live or offline mode

• Oplog-aware for point-in-time operations

• Filter can be applied in both directions

• mongodump docs

• mongorestore docs

• Considerations– Working set– Sharding

mongodump / mongorestore

Page 7: MongoDB backup service overview Boston MUG

7

• Copy files in your data directory (e.g. /data/db)

• Filesystem or block storage snapshot

• Fastest way to backup/restore

• Considerations– Consistency– Backup granularity– Ops expertise

Storage-level Backups

Page 8: MongoDB backup service overview Boston MUG

8

What is MongoDB Management Service (MMS)?

Page 9: MongoDB backup service overview Boston MUG

9

MongoDB Management Service

Page 10: MongoDB backup service overview Boston MUG

10

MMS Backup: Features

Available• Cloud-based service• Archived across DCs

Secure• Data is encrypted in-

transit• 2-factor auth for

restores

Managed• Developed and

monitored by MongoDB• Point-in-time backups

Overhead• Lightweight agent,

processes oplog

Restores• Free, unlimited• Seed new environments

Page 11: MongoDB backup service overview Boston MUG

11

Unlimited restoresSeed dev, test, or new environments

Page 12: MongoDB backup service overview Boston MUG

12

Recovery Approaches

Complexity

Scalability

mongodump

storage-level

mms backup

Page 13: MongoDB backup service overview Boston MUG

How It Works

Page 14: MongoDB backup service overview Boston MUG

14

Overview

Page 15: MongoDB backup service overview Boston MUG

15

• From the initial sync, we rebuild your data in our datacenters and take a snapshot

• We take snapshots every 6 hours

• Oplog is stored for 48 hours

Under the Hood

Page 16: MongoDB backup service overview Boston MUG

16

• Balancer paused every 6 hours

• A no-op token is inserted across all shards, mongos’s and config servers

• Oplog applied to replica sets until point in which token was inserted

• Provides a consistent state of database across shards

Sharded Clusters

Page 17: MongoDB backup service overview Boston MUG

17

• Point-in-time recovery

• Easy to restore

• Unlimited, free restores

• Fully managed

Key Benefits

Page 18: MongoDB backup service overview Boston MUG

18

1. Create an account at mms.10gen.com

2. Install MMS Monitoring Agent on your deployment

3. Register at mms.10gen.com/backup

4. Install MMS Backup Agent on your deployment

5. Start initial sync

6. Rest easy!

Getting Started

Page 19: MongoDB backup service overview Boston MUG

Free Month – Register UsingCoupon Code

“MUG_Boston” (expires 10/31)

MongoDB Boston 10/25 – discount: mug25

Page 20: MongoDB backup service overview Boston MUG