LatJUG Amazon Web Services

Preview:

DESCRIPTION

 

Citation preview

Amazon Web Services: Deploying to

the Cloud

Cloud computing

• On Demand• Pas-as-you-

go• Virtually

infinite

Platform as a Service providers

• Rackspace.com• GoGrid.com• Slicehost.com• Servepath.com• aws.amazon.com• ...

Amazon Web Services (AWS)

• Compute• Messaging• Storage• Content Delivery• Monitoring• Networking• Database

• Support• Web Traffic• E-Commerce• Payments &

Billing• Workforce

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeDatabaseStorage

Define architectureBoot & configure instancesDeploy application...Profit

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeDatabaseStorage

Define architectureBoot & configure instancesDeploy application...Profit

Regions and Availability Zones

Geographically dispersed locations

Currently four regions SLA 99.5% Available

• Part of region• Designed for high

Availability• No cost for

transferring data within a single zone

Regions Availability Zones

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeDatabaseStorage

Define architectureBoot & configure instancesDeploy application...Profit

Elastic Compute Cloud (EC2)

• Virtualized computing environment (XEN based)• Server instances managed through a web service

API• Different instance types

– Balanced

– High CPU

– High memory

– Video processing

– High Performance Computing

Before you launch EC2

• Amazon Machine Image (AMI)– Amazon AMIs– Community AMIs– Private AMIs

• Instance Types– On demand– Spot instance– Reserved instance

• SSH key pair• Security Group

EC2 supplemental services

• CloudWatch• Elastic IP• Elastic Load balancer• AutoScaling

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Data Storage

• Persistent cloud storage• Ephemeral instance storage• Elastic block storage

Simple Storage Service (S3)

• Cloud based persistent storage• Super durable (SLA 99.999999999%)• Not a file system

– Cannot mount– Buckets instead of folders– Object limit - 5Gb– Shared bucket name space

• Stores objects – not files• Independent of other AWS services

S3 features

• AWS Import/Export for large objects• Reduced redundancy (durability – 99.99%)• Permissions• Meta information• P2P protocol• Simple command line

S3 + CloudFront

• Reliable content delivery• Different delivery methods

– Download– Stream

Elastic Block Store (EBS)

• Network based block storage device

• 1Gb – 1Tb storage• Similar to SAN• Incremental snapshots• RAID for better performance

Comparison of EC2 data storage options

Amazon S3 Instance Block storage

Speed Low Unpredictable High

Reliability Medium High High

Durability Super high Super Low High

Flexibility Low Medium High

Cost Medium Low HighWeakness Operational data Non-transient data Lots of small I/O

* George Reese. Cloud Application Architectures.

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Database services

• SimpleDB• Relational Database Service• Instance DB

Relational Database Service (RDS)

• Managed MySQL database

• Replication with 3 clicks

RDS vs Instance DB

+ Configuration+ No worries about

backups- Price- Maintenance window

+ Speed+ Flexibility

RDS Instance DB

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Single AZ Deployment

Multi AZ Deployment

Instance DB

RDS

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Instance Bootstrap

• One instance for every server type

• All software preinstalled

• Fast boot

• One image to all servers

• Installs & configures during boot process to fit specified role

• Slower boot

Images Scripted

Chef

• Configuration management engine– Ruby DSL– Different work modes

• Client-server• Solo

Chef at cooking

• Nodes• Roles• Cookbooks

– Recipe

• Data bags• Client

Chef example: redis recipe

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Deployment

• Chef deployment• Capistrano• Whatever you use

Good things about AWS

• Community support• Flexible payments• Great API• Variety of choices• Management console• Continues innovation• Scalability

Bad things about AWS

• Email issues• Premium support only• I/O performance issues

Questions?

Recommended