102

STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Embed Size (px)

DESCRIPTION

IT systems provide tremendous value, and maintaining data integrity and guaranteeing business continuity is of utmost importance for any organization. However, in today's world, those systems have grown in complexity and cost, while the business demands IT agility and lower costs. In this talk, AWS technology evangelist, Simone Brunozzi, joined by AWS customers, will explore how organizations should approach backup and disaster recovery, and how these two aspects can be implemented in the cloud to improve efficiency and flexibility. The talk starts with general concepts, and then dives into technical details, culminating in real customer examples that showcase some tips and tricks and the benefits of a cloud-based approach.

Citation preview

Page 1: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012
Page 2: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

2 2

"The mind is not a vessel to be filled, but a fire to be ignited." - Plutarch

Page 3: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Agenda

I. Prologue

II. Lessons

III. Customer Story

IV. Earthquake

V. Lessons

VI. Conclusions

The story of Monte Cassino

Backup

Shaw Media

What happened to my Parmigiano?

Disaster Recovery

... And a little surprise!

Page 4: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Prologue

Part I

Page 5: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

5

Page 6: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

6

Abbey of Monte

Cassino

Page 7: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

7 7

Why is Monte Cassino important? ] [

Page 8: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

8

The Treasure of Monte Cassino ] [ 8

Page 9: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

9

The Treasure of Monte Cassino ] [

800 papal documents 20,500 volumes in the Old Library 60,000 in the New Library 200 manuscripts on parchment 100,000 prints and paintings (including 11 Titians) 500 incunabula

A book printed before 1501 C.E.

Gutenberg’s Bible was printed in 1455

C.E.

Titian, one of the most influential

painters ever

x

Page 10: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

10

Business continuity continuum ] [

High availability

Backup storage

Disaster recovery

Page 11: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

11

High Availability : Keeping services alive

Business continuity continuum ] [

Page 12: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

12

High Availability : Keeping services alive Backing up : Process of copying and archiving of data so it may be used to restore the original after a data loss event

Business continuity continuum ] [

Page 13: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

13

High Availability : Keeping services alive. Backing up : Process of copying and archiving of data so it may be used to restore the original after a data loss event. Disaster recovery : Recovery of technology infrastructure critical to an organization after a natural or human-induced disaster.

Business continuity continuum ] [

Page 14: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

14

Origin of Backup ] [

Monastery : Brilliant, scalable, low-cost, highly durable backup system Origin of Universities (Charlemagne, 814 C.E.) The Empire

needs educated people

Let’s ask the Church!

Edict: Free education in

cathedrals and monasteries

Lots of books (and backups)

x

Page 15: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

15

Origin ] [

Monastery : Brilliant, scalable, low-cost, highly durable backup system. Origin of Universities (Charlemagne, 814 a.C.) Indoctrination : One of the first critical function within an organization (Catholic Church) that needed continuation after any natural or human-induced disaster. It needed backup of books (Bibles, etc.) in order to function.

Barbarians, pestilences, fires, invasions, wars,

famines, revolts, etc.

Page 16: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

16 16

Why is Monte Cassino important? ] [

Page 17: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

17

World War II ] [

Page 18: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

18 18

Dec 1942: Many “treasures” are transported from Rome and other places to Monte

Cassino, for safety

The Treasure of Monte Cassino ] [

Page 19: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

19 19

Lost in translation ] [

It means “Military Division”

(abbreviated)

Intercepted German message: “Ist der Abt noch im Kloster?”

“Ja.”

It also means “Abbot”

(abbreviated)

Page 20: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

20 20

Abbey of Monte Cassino ] [

Page 21: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

21 21

The Treasure of Monte Cassino ] [

Feb 1944: Schlegel and Becker (Panzer-Division Hermann Göring) had the treasures transferred to the Vatican

x

Page 22: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

22 22

Escape from Monte Cassino ] [

Page 23: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

23 23

Escape from Monte Cassino ] [

Lt. Col. Julius Schlegel

(an Austrian Roman Catholic)

Capt. Maximilian Becker

(a Protestant surgeon)

Page 24: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

“Biggest bombing against a single target of all time”

Page 25: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

25 25

Monte Cassino after bombing (1944) ] [

Page 26: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

26 26

Restoration in 1954 ] [

Page 27: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

27 27

The Abbey of Monte Cassino today ] [

Page 28: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

End of Prologue

Page 29: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Lessons from Monte Cassino

Part II

Page 30: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

30 30

1. My backup should be accessible

a.k.a. the pain of physical data

transfer

Page 31: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

AWS

1. My backup should be accessible

API AWS Direct Connect

AWS Storage Gateway

Customer owns the data

Redundancy

AWS Import/Export

Page 32: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

AWS Storage Gateway ] [

GW-stored volumes

Page 33: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

z

Page 34: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

GW-Cached volumes

GW-stored volumes

“Cool” storage

“Cold”

w

Page 35: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

VPN

Public / AWS Direct Connect

AWS Import/Export

z

Page 36: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

36 36

2. My backup should be able to scale

Page 37: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

37

Lessons from Monte Cassino ] [

2. My backup should be able to scale

• “Infinite” scale with Amazon S3 and Amazon Glacier • Scale to multiple regions • Seamless • No need to provision • Cost tiers (cheaper at scale)

Page 38: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

38

Regions (8) GovCloud Regions (1)

(as of Nov 27th, 2012)

Global AWS Infrastructure ] [

Page 39: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

39

Availability Zones (23)

Global AWS Infrastructure ] [ (as of Nov 27th, 2012)

Page 40: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

40

Edge Locations (38)

Dallas (2)

St.Louis

Miami

Jacksonville Los Angeles (2)

Palo Alto

Seattle

Ashburn (2)

Newark New York (2)

Dublin

London Amsterdam (2) Stockholm

Frankfurt (2) Paris

Singapore (2)

Hong Kong

Tokyo

São Paulo

South Bend

San Jose

Osaka

Milan

Sydney

Madrid

Global AWS Infrastructure ] [ (as of Nov 27th, 2012)

Page 41: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

41 41

3. My backup should be safe

Page 42: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

42

Lessons from Montecassino ] [

3. My backup should be safe

• SSL Endpoints (Amazon S3 and Amazon Glacier) • Signed API calls • Store encrypted files • Server-side encryption • Durability: multiple copies across different data centers • Local/cloud with AWS Storage Gateway

Page 43: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

43

3. My backup should be safe

Page 44: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

44 44

4. My backup should work with a DR policy

Page 45: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

45

Lessons from Monte Cassino ] [

4. My backup should work with a DR policy

• Easy to integrate within AWS or Hybrid • AWS Storage Gateway: Run services on Amazon EC2 (DR) • Clear costs • Reduced costs • I decide redundancy/availability in relation to costs

Page 46: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012
Page 47: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

47

Lessons from Monte Cassino ] [

5. Someone should care about it

• Clear ownership • Permissions with IAM: Users, groups -> roles • Logs • AWS support

Page 48: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

48

Lessons from Monte Cassino ] [

1. My backup should be accessible

2. My backup should be able to scale

3. My backup should be safe

4. My backup should work with a DR policy

5. Someone should care about it

Page 49: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

A customer story

Part III

Page 50: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

50 50

Augusto Rosa Manager, Server Operations - Shaw Media

augusto.rosa @ shawmedia.ca

Page 51: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

51 51

Shaw Media ] [

Page 52: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

52 52

Who we are ] [ • Shaw Media: Division of Shaw Communications Inc. • It reaches almost 100% of Canadians; 18 specialty channels • Global national newscast: 1+ million viewers every weekday • Access to full episodes: 20 websites, 4 video-on-demand • It engages with 25+ million Canadians per week

Page 53: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

53 53

Before AWS ] [ • Data centers in Winnipeg and Toronto • Challenge to manage, frequent power outages, downtime • Expensive hosting fees inherited from parent company • Technology was old and in disarray (total revamp needed)

Page 54: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

54 54

Mission Impossible? ] [

Page 55: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

55 55

Mission ] [ • Implement a new CMS • Empower the editorial team • Business objectives •Time frame of 9 months • Be agile and cost effective

Page 56: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

AWS

Page 57: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Amazon SQS Amazon SNS Amazon SES AWS Marketplace Amazon FPS Amazon DevPay Amazon Mechanical Turk Amazon Route 53 Amazon VPC Amazon Direct Connect Amazon S3 Amazon Glacier Amazon EBS AWS Import/Export AWS Storage Gateway AWS Support

Amazon EC2 Amazon EMR Auto Scaling Elastic Load Balancing Amazon CloudFront Amazon RDS Amazon DynamoDB Amazon SimpleDB Amazon ElastiCache Amazon IAM Amazon CloudWatch Amazon Elastic Beanstalk Amazon CloudFormation Amazon CloudSearch Amazon SWF Alexa WIS and Alexa Top Sites

Amazon SQS Amazon SNS Amazon SES AWS Marketplace Amazon FPS Amazon DevPay Amazon Mechanical Turk Amazon Route 53 Amazon VPC Amazon Direct Connect Amazon S3 Amazon Glacier Amazon EBS AWS Import/Export AWS Storage Gateway AWS Support

Amazon EC2 Amazon EMR Auto Scaling Elastic Load Balancing Amazon CloudFront Amazon RDS Amazon DynamoDB Amazon SimpleDB Amazon ElastiCache Amazon IAM Amazon CloudWatch Amazon Elastic Beanstalk Amazon CloudFormation Amazon CloudSearch Amazon SWF Alexa WIS and Alexa Top Sites

Page 58: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

58 58

Phase One ] [ • Fast deployment of servers, network rules, load balancers • First site under new CMS: Live in 4 weeks from scratch • Full migration of 29 sites from a physical DC in 9 months

Page 59: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

59 59

Phase Two ] [ • Full migration of 6 other websites and web services • From 2nd physical DC into AWS in 2 months • Migration: Windows ‘03/SQL ‘05 -> Windows ‘08/SQL ’08 • Creating new web farms takes 1 to 5 days (versus months) • Takes longer to procure licenses than the infrastructure • Ability to scale and automate

Page 60: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

60 60

Benefits of Using AWS ] [ • Increased uptime from 98.8% to 99.99% • Scale to success, quicker response to business needs • 1+ M$ saved in capital and operational cost • No physical investment, smaller teams • Allowed using service management 3rd party companies • Easy backup on AWS -> 3 years retention (tax credits)

Page 61: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

61 61

AWS Architecture ] [

Page 62: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

62 62

Some Numbers ] [ • 50+ EC2 instances (various sizes) • 25+ TB traffic/month • 40M+ Route53 queries • 10+ TB backup on Amazon S3

... And growing!

Page 63: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

63 63

Lessons Learned ] [ • Architecting for AWS in mind from start • Use all Availability Zones in area you choose to host; divide across all • Plan for failures: Be crazy about it (things fail) • Backup backup backup • Monthly AMI • Windows/SQL Server workarounds (failover cluster, AD, etc.) • Engage with AWS Solutions Architects early

Page 64: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

64 64

Disaster Recovery ] [ • Learn from outages all the time • Implement changes to prevent failures at cloud level • Document how you recover from failures • Single component may fail; architecture shouldn’t

Page 65: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

65 65

Backup ] [ • Daily snapshots of all volumes automatically • VIP volumes: snapshots every 4 hours • Keep the last 10 snapshots • Dell Replay: It backs up file system files every 1 hour • Volumes replicated to Amazon S3 (Oregon) every 2 hours • SQL Server backup every 30 minutes • SQL Server backup volumes moved to Amazon S3 every 2 hours

Page 66: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

66 66

Future ] [ • Move from public cloud to VPC • Auto Scaling on Amazon EC2 • Amazon S3 as image repository for all sites • Second cloud vendor as DR (instead of in-house) • Amazon ElastiCache for central caching for ASP.net apps

Page 67: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

67 67

Augusto Rosa Manager, Server Operations - Shaw Media

augusto.rosa @ shawmedia.ca

Page 68: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

The 2012 Emilia Earthquake

Part IV

Page 69: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

69 69

May 20th, 2012: Earthquake in Italy ] [

Page 70: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

70

Page 71: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

71 71

Parmigiano warehouse (0.5B € damage) ] [

Page 72: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

72 72

“Let’s do something NOW” ] [

Page 73: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

73 73

Buy 1 Kg of Parmigiano for 1 Euro ] [

Page 74: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

74 74

Everybody helped ] [

Page 75: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Lessons from an Earthquake

Part V

Page 76: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

76

1. You NEED a DR in place!

2. Testing your DR

3. Reducing costs

4. You can have different DR solutions

Lessons from an Earthquake ] [

Page 77: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

77 77

1. You NEED a DR in place!

Page 78: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

DR with High Availability

Page 79: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

App DR with Standby

Page 80: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

80 80

Business Impact Analysis (RTO, RPO)

Page 81: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

81

Lessons from an Earthquake ] [

• RTO (Recovery Time Objective): 1) Time for trying to fix the problem 2) The recovery itself 3) Testing 4) Tell users • RPO (Recovery Point Objective): how much data I can lose

Business Impact Analysis (RTO, RPO)

Page 82: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

82

Lessons from an Earthquake ] [

1) Backup and Restore 2) “Pilot light” for quick recovery into AWS (Cold standby) 3) Warm standby solution on AWS 4) Multi-site hybrid solution (AWS + on premises)

Different Types of DR Architecture

Page 83: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Cost ($/GB/month) Performance Durability

Amazon S3 0.125 *** ***** Amazon Glacier 0.01 * *****

AWS Storage Gateway

0.125 (+ 125/GW) **** ***

Amazon EBS 0.10 **** *** Amazon EBS

(PIOPS) 0.125 ***** ***

Page 84: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

84 84

2. Testing your DR

Page 85: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

85

Lessons from an Earthquake ] [

• Dev/test in the cloud is super easy • Spin up capacity only for the test • Regularly test your DR • Cost is minimal • What about data transfer speed?

2. Testing your DR

Page 86: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

86

s3cmd ls --recursive

s3://datasets.elasticmapreduce/ngrams/b

ooks/ | awk '{print $4;

sub(/s3:\/\/datasets.elasticmapreduce/,

"/array", $4); print $4}' | parallel -

j0 -N2 --progress /usr/bin/s3cmd --no-

progress get {1} {2}

Special thanks to Craig Carl, AWS Solutions Architect

Page 87: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

87

s3cmd ls --recursive

s3://datasets.elasticmapreduce/ngrams/b

ooks/ | awk '{print $4;

sub(/s3:\/\/datasets.elasticmapreduce/,

"/array", $4); print $4}' | parallel -

j0 -N2 --progress /usr/bin/s3cmd --no-

progress get {1} {2}

Lists every object in the bucket

Page 88: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

88

s3cmd ls --recursive

s3://datasets.elasticmapreduce/ngrams/b

ooks/ | awk '{print $4;

sub(/s3:\/\/datasets.elasticmapreduce/,

"/array", $4); print $4}' | parallel -

j0 -N2 --progress /usr/bin/s3cmd --no-

progress get {1} {2}

Gets the path to the Amazon S3 object and the local

destination path

Page 89: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

89

s3cmd ls --recursive

s3://datasets.elasticmapreduce/ngrams/b

ooks/ | awk '{print $4;

sub(/s3:\/\/datasets.elasticmapreduce/,

"/array", $4); print $4}' | parallel -

j0 -N2 --progress /usr/bin/s3cmd --no-

progress get {1} {2}

Runs parallel with as many threads as possible, '-N2' tells

parallel there were two arguments on stdin and

assigns them to {1} and {2}

Page 90: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

90

s3cmd ls --recursive

s3://datasets.elasticmapreduce/ngrams/b

ooks/ | awk '{print $4;

sub(/s3:\/\/datasets.elasticmapreduce/,

"/array", $4); print $4}' | parallel -

j0 -N2 --progress /usr/bin/s3cmd --no-

progress get {1} {2}

It’s the command that GNU Parallel will run, '{1}' is

substituted with the Amazon S3 object path, '{2}' is

substituted with the local destination path

Page 91: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

91

s3cmd ls --recursive

s3://datasets.elasticmapreduce/ngrams/b

ooks/ | awk '{print $4;

sub(/s3:\/\/datasets.elasticmapreduce/,

"/array", $4); print $4}' | parallel -

j0 -N2 --progress /usr/bin/s3cmd --no-

progress get {1} {2}

Copying 2.4 TB down from 48 hours to 9 hours (5x faster)

Page 92: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

92 92

3. Reducing costs

Page 93: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

93

Lessons from an Earthquake ] [

1) AWS cost reduction (e.g., S3 cost reduction on Nov 28th) 2) Reduced redundancy (Amazon S3) 3) Retention policy 4) Hot/warm/cool/cold backup 5) Reserved capacity/tiers

3. Reducing costs

Page 94: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

0-1 TB 0.125 0.093

1-50 TB 0.110 0.083

50-500 TB 0.95 0.073

500-1,000 TB 0.90 0.063

1-5 PB 0.80 0.053

5+ PB 0.55 0.037

Amazon S3 Standard $/GB/Month

Reduced $/GB/Month

Page 95: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

95 95

4. You can have different DR solutions

Page 96: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

96

Lessons from an Earthquake ] [

• Easy to integrate existing vendors with DR on AWS • Approach: One vendor/hybrid/multiple vendors • One region/multi-regions (if you need geodiversity)

4. You can have different DR solutions

Page 97: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

97

1. You NEED a DR in place!

2. Testing your DR

3. Reducing costs

4. You can have different DR solutions

Lessons from an Earthquake ] [

Page 98: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Conclusions

Part VI

Page 99: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012
Page 100: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Backups Disaster Recovery

Action items

Agility Cost savings Control

x

Page 101: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

Parmigiano, a Monastery, Love and Faith

Simone Brunozzi Senior Technology Evangelist, Amazon Web Services

@simon

Technical lessons on how to do Backup and Disaster Recovery in the Cloud

Page 102: STG202 Parmigiano, a Monastery, Love and Faith: Technical Lessons on how to do Backup and Disaster Recovery in the Cloud - AWS re: Invent 2012

We are sincerely eager to

hear your feedback on

this presentation and on

re:Invent.

Please fill out an

evaluation form when you

have a chance.