31
1 Register now: mongodbworld.com Use Code TojiGeorge for additional 25% Off *Come as a group of 3 or more Save another 25%

Webinar: Backups + Disaster Recovery

  • Upload
    mongodb

  • View
    1.416

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Webinar: Backups + Disaster Recovery

1

Register now: mongodbworld.com

Use Code TojiGeorge for additional 25% Off*Come as a group of 3 or more – Save another 25%

Page 2: Webinar: Backups + Disaster Recovery

Backup &

Disaster

Recovery

Toji GeorgeSolution Architect – [email protected]

Page 3: Webinar: Backups + Disaster Recovery

3

Topics

• Requirements around Availability and Backup

• MongoDB Solutions

• Tools for Backing up MongoDB

Page 4: Webinar: Backups + Disaster Recovery

4

Requirements

• “I need my data to be readable/writable in the face of

infrastructure failures”

– Memory, disk, server, network, rack, data center

• “Need tunable resiliency depending upon failure

scenarios”

• “I want to be able to get my data back to yesterday 3:05

PM because an application change caused some

erroneous updates”

Page 5: Webinar: Backups + Disaster Recovery

5

Requirements

• “I need my data to be readable/writable in the face of

infrastructure failures”

– Memory, disk, server, network, rack, data center

• “Need tunable resiliency depending upon failure

scenarios”

• “I want to be able to get my data back to yesterday 3:05

PM because an application change caused some

erroneous updates”

Availability

Backup

Page 6: Webinar: Backups + Disaster Recovery

6

Considerations

Effort and Cost to meet availability and backup

requirements driven by:

• RPO: Recovery Point Objective

– How much data can you afford to lose?

• RTO: Recovery Time Objective

– How long can you afford to be offline?

Page 7: Webinar: Backups + Disaster Recovery

Availability

Page 8: Webinar: Backups + Disaster Recovery

8

• Automated replication

and failover

• Multi-data center

support

• Improved operational

simplicity

(e.g., upgrades, HW

swaps)

• Data durability and

consistency

MongoDB Replication for Availability

Page 9: Webinar: Backups + Disaster Recovery

9

Single Data Center

Automated failover

Tolerates server failures

Tolerates rack failures

Number of replicas defines

failure tolerance

Page 10: Webinar: Backups + Disaster Recovery

10

Active/Active Data Center

Tolerates server, rack, data center failures, network partitions

Page 11: Webinar: Backups + Disaster Recovery

11

Replication Advantage

• Built into MongoDB, only ops and infrastructure cost

• Meet RPO with tunable durability

– Acknowledge write from 1 to majority members of a

replica set

• Down for a very short interval

– Failover time is in seconds

Page 12: Webinar: Backups + Disaster Recovery

Backup

Page 13: Webinar: Backups + Disaster Recovery

13

“We do not need backups for MongoDB”

• We have replicated data

• Multiple systems will not go down

• We have good change control

Why should you backup:

https://www.mongodb.com/presentations/run-mongodb-confidence-backing-and-monitoring-mms

Page 14: Webinar: Backups + Disaster Recovery

14

Solutions for Backup

Manual Automated

• mongodump/mongorestore

• Storage level backups

• MongoDB Management

Service or Ops Manager

Page 15: Webinar: Backups + Disaster Recovery

15

mongodump / mongorestore

• Can be run online or offline

• Oplog aware for point in time restores

• Filter in, filter out

• Considerations:

– Data size/can be slow

– Shard sync

Page 16: Webinar: Backups + Disaster Recovery

16

Storage level backups

• Flavors:

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

– File system or block storage snapshots

• Fastest way to backup/restore

• Considerations:

– Journal/consistency

– Backup granularity (whole file system back up?)

– Ops expertise

– Storage of snapshots or data file backups

Page 17: Webinar: Backups + Disaster Recovery

17

MongoDB Management

Service (MMS)Ops Manager

• Runs on our cloud

(mms.mongodb.com)

• Free service for

Managing/Monitoring up to 8

servers

• Paid service for Backup, First 1 GB

Free

• Runs in your cloud / data center

• Included with MongoDB Enterprise

Advanced

http://www.mongodb.com/presentations/automate-

mongodb-mongodb-management-service-mms

http://www.mongodb.com/presentations/webinar-

introducing-ops-managerAutomation, for single-click provisioning,

scaling & upgrades

Monitoring, with charts, dashboards and

alerts on 100+ metrics

Backup and restore, with point-in-time

recovery, support for sharded clusters

Page 18: Webinar: Backups + Disaster Recovery

18

Steps for Backup

MMS Ops Manager

(Infrastructure already exists in the

cloud)

Setup MMS for Automation and

Monitoring Infrastructure

Size and setup MMS Backup

infrastructure

Start to monitor (and/or manage) your MongoDB

deployment

Deploy backup agents

Start taking backups

Page 19: Webinar: Backups + Disaster Recovery

19

Comparing backup approaches

Mongodump File system MMS Backup Ops Manager

Initial

complexity

Medium High Low High

System

overhead

High Low Low Medium

Point in time

recovery of

replica set

Yes * No Yes Yes

Consistent

snapshot of

sharded system

Yes * Yes * Yes Yes

Scalable No Yes Yes Yes

Restore time Slow Fast Medium Medium

* Possible, but need to write the tools and complex to setup and maintain

NOTE: You cannot use MMS or OPS Manager to backup Standalone MongoDB

Page 20: Webinar: Backups + Disaster Recovery

20

Backup Configuration

Page 21: Webinar: Backups + Disaster Recovery

21

How Backup WorksReplica Set

Shard 2 Shard 3Shard 1

Sharded Cluster

Production MongoDBDeployment

Page 22: Webinar: Backups + Disaster Recovery

22

How Backup Works

Ops

Manager

Replica Set

Shard 2 Shard 3Shard 1

Sharded Cluster

Production MongoDBDeployment

Backup Daemon HEADsInvisible secondary replicas

Page 23: Webinar: Backups + Disaster Recovery

23

How Backup Works

Ops

Manager

MongoDB Database

Replica Set

Shard 2 Shard 3Shard 1

Sharded Cluster

Production MongoDBDeployment

BlockstoreCompressed, deduplicated snapshot storage

Restores

Snapshots consistent clustershot (sharded)

Backup Daemon HEADsInvisible secondary replicas

Page 24: Webinar: Backups + Disaster Recovery

24

Backup Restore

Page 25: Webinar: Backups + Disaster Recovery

25

Test Restore(If you can’t restore, you aren’t backed up)

Page 26: Webinar: Backups + Disaster Recovery

Summary

Page 27: Webinar: Backups + Disaster Recovery

27

Meet your RPO and RTO Objectives

with MongoDB

• Replication will help you meet stringent availability

requirements

• Backup with confidence using MongoDB tools

– Use MMS or Ops Manager to do point in time restores

with confidence

– Manual backup capabilities available

Page 28: Webinar: Backups + Disaster Recovery

28

Get expert help: Planning,

Installing, Sizing Ops Manager

Ops OptimizationWhat is it? A custom plan developed by a MongoDB consulting engineer for setting up Ops Manager on your infrastructure

What to expect• A plan for setting up Ops Manager in your data center

• Learn how to enable Ops Manager

• Figure out which metrics to monitor and how to enable a backup and disaster recovery strategy

Find out more at mongodb.comor email us at [email protected]

28

Page 29: Webinar: Backups + Disaster Recovery

29

Useful Links

• MMS – https://mms.mongodb.com

• MMS Documentation: https://docs.mms.mongodb.com/

• Ops Manager Download:

http://www.mongodb.com/download

• Ops Manager Documentation:

https://docs.opsmanager.mongodb.com

Page 30: Webinar: Backups + Disaster Recovery

30

Register now: mongodbworld.com

Use Code TojiGeorge for additional 25% Off*Come as a group of 3 or more – Save another 25%

Page 31: Webinar: Backups + Disaster Recovery

Questions?