leveraging amazon's elastic block store

20
© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential 1 Leveraging Amazon’s Elastic Block Store (EBS)

Upload: rightscale

Post on 06-May-2015

1.048 views

Category:

Technology


0 download

DESCRIPTION

RightScale Webinar: August 28, 2008 – This webinar focuses on Amazon's Elastic Block Store (EBS) with specific instructions and a live demo. Watch the video at http://vimeo.com/rightscale/leveraging-amazons-elastic-block-store.

TRANSCRIPT

Page 1: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

1

Leveraging Amazon’s Elastic Block Store (EBS)

Page 2: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

2

Your Panel Today• Michael Crandell – CEO• Thorsten von Eicken – CTO• Josh Fraser – VP Business

Development

Page 3: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

3

Welcome to RightScale Why does EBS matter? EBS features & demo Use-cases RightScale Support for EBS Q&A – Getting Started

Please use chat to ask questions anytime!

Agenda

Page 4: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

4

EC2EC2 S3S3 SQSSQS SimpleDBSimpleDB EBSEBS

AUTOMATEDMANAGEMENTAUTOMATED

MANAGEMENTCOMPONENT

LIBRARIESCOMPONENT

LIBRARIESEXPERTISE

& SUPPORTEXPERTISE

& SUPPORT

Cloud Management PlatformEXPERTISE

RIGHTSCRIPTS

MYSQL MGR

WEB SITE

GRID

Cloud ApplicationsCloud Applications

Righ

tSca

le

Page 5: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

5

Why Elastic Block Store Matters

Scalable Web Architecture“EC2 Classic”

Traditional Architecture“EC2 + EBS”

SAN

srv

srvsrv srv

srv

srv

srv

srvsrvsrv

srv• Many identical servers• Scalable, replicatable• Service-oriented architecture• Distributed storage system

• Centrally managed storage• Built-in redundancy• Snapshot backup

Page 6: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

6

Use-Cases Enabled by EBS• Large Persistent Datasets

– Too large for server-local storage /“too small” for distributed storage

– Traditional applications, relational databases– Large read-only datasets replicated to many

servers

• Virtual Appliance Servers– Single server with reliable persistent store– Easy backup, replication, upgrade– Simple, economical approach

Page 7: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

7

Intro to EBS Volumes

• Create volume: 1GB – 1TB size• Attach to any instance

in same availability zone• Pay $0.10/GB per month

+ $0.10 / million I/O ops• Snapshot backup a volume to S3• Create new volume from snapshot

Page 8: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

8

Quick Demo

Page 9: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

9

Snapshots• Point-in-time

snapshot• Written to S3

– (Not to bucket!)

• Incremental backup• Restore to new volume

– Instantaneous (lazy restore)

Server 1

Server 2

Amazon S3

Vol 1

Vol 2

Server 3 Server 4

Vol 3 Vol 4

snap 2snap 1

Page 10: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

10

Incremental Snapshots

• Table of Contents vs. Data Blocks• “Space used” difficult to gauge• Frequent snapshots: minimal cost

delete snap 2

Page 11: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

11

Keeping Safe• Freeze data while snapshotting

– XFS filesystem has freeze command

• Volumes are fragile in transit!– Unmounting can leave data in flight– Mounting mistake will be destructive

• Use snapshots for safety!– Always snapshot after unmount– Create fresh volume from snapshot,

mount that, retry in case of problem

Page 12: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

12

Running MySQL with EBS

1.Snapshot master2.Create slave volume3.Attach slave volume4.Start replicating

Page 13: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

13

Database Fail-Over

MySQLmaster

MySQLslave

AppServer 1

AppServer 2

AppServer 3

AmazonS3

snapshots& exports

replication

EBSvol

EBSvol

Page 14: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

14

Database Fail-Over

MySQLmaster

MySQLslave

AppServer 1

AppServer 2

AppServer 3

MySQLslavereplicationmaster

1.Promote slave to master

2.Fail-over app servers

3.Launch new slave

4.Init from snapshot

5.Start replication

Always roll forward!AmazonS3

snapshots& exports

EBSvol

EBSvol

EBSvol

create fromsnapshot

Page 15: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

15

Zone 2Zone 1

Multi-Zone Deployment

MySQLmaster

MySQLslave

App Srvr

AmazonS3

LB1 LB2

App Srvr App Srvr

IP1 IP2

EBS EBS

Page 16: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

16

Customer 3Customer 2Customer 1

Virtual Appliances enabled by EBS

• Server + volume per customer• “Step and repeat”• Flexibility in sizing• RightScale “sub-accounts” to entitle,

manage, support and aggregate

Srvr 1

data

Srvr 2

data

Srvr 3(XL)

data

Customer 4

Srvr 2

data

Page 17: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

17

Clouds surpass traditional hosting• Multiple server sizes: ½ core to 8

cores• Disk Volumes with snapshots• Reassign IPs / VIPs• Multiple failure zones• Soon: multiple geographies

• Automation tying it all together

Page 18: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

18

RightScale Support for EBS• EBS management via the RightScale

Dashboard• Volumes, snapshots, nickname, history,

audit entries …• Auto-mount volume at boot time• Lineage of volumes and related snapshots• Server templates & scripts using EBS• Scheduled snapshots w/o AWS credentials

Page 19: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

19

Read Thorsten’s blog at:Blog.RightScale.com

Sign up for a free developer account (includes support for EBS): RightScale.com/FreeTrial

Follow one of our EBS TutorialsWiki.RightScale.com

Contact a RightScale representative for a live demonstration or to request presentation slides at: [email protected] (866) 720 – 0208

Q&A - Getting Started

Thank you for listening!

Page 20: Leveraging Amazon's Elastic Block Store

© 2007 RightScale Inc.—All rights reserved. RightScale Company Confidential

20

Thank you for listening!