Webinar: Backups + Disaster Recovery

Post on 15-Jul-2015

1.414 views 0 download

Tags:

Transcript of 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%

Backup &

Disaster

Recovery

Toji GeorgeSolution Architect – Pre-Salestoji@mongodb.com

3

Topics

• Requirements around Availability and Backup

• MongoDB Solutions

• Tools for Backing up MongoDB

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”

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

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?

Availability

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

9

Single Data Center

Automated failover

Tolerates server failures

Tolerates rack failures

Number of replicas defines

failure tolerance

10

Active/Active Data Center

Tolerates server, rack, data center failures, network partitions

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

Backup

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

14

Solutions for Backup

Manual Automated

• mongodump/mongorestore

• Storage level backups

• MongoDB Management

Service or Ops Manager

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

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

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

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

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

20

Backup Configuration

21

How Backup WorksReplica Set

Shard 2 Shard 3Shard 1

Sharded Cluster

Production MongoDBDeployment

22

How Backup Works

Ops

Manager

Replica Set

Shard 2 Shard 3Shard 1

Sharded Cluster

Production MongoDBDeployment

Backup Daemon HEADsInvisible secondary replicas

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

24

Backup Restore

25

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

Summary

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

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 sales@mongodb.com

28

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

30

Register now: mongodbworld.com

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

Questions?