latjug amazon web services

37
Amazon Web Services: Deploying to the Cloud

Upload: dmitry-buzdin

Post on 13-Jan-2015

642 views

Category:

Documents


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: LatJUG Amazon Web Services

Amazon Web Services: Deploying to

the Cloud

Page 2: LatJUG Amazon Web Services

Cloud computing

• On Demand• Pas-as-you-

go• Virtually

infinite

Page 3: LatJUG Amazon Web Services

Platform as a Service providers

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

Page 4: LatJUG Amazon Web Services

Amazon Web Services (AWS)

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

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

Billing• Workforce

Page 5: LatJUG Amazon Web Services

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeDatabaseStorage

Define architectureBoot & configure instancesDeploy application...Profit

Page 6: LatJUG Amazon Web Services

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeDatabaseStorage

Define architectureBoot & configure instancesDeploy application...Profit

Page 7: LatJUG Amazon Web Services

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

Page 8: LatJUG Amazon Web Services

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeDatabaseStorage

Define architectureBoot & configure instancesDeploy application...Profit

Page 9: LatJUG Amazon Web Services

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

Page 10: LatJUG Amazon Web Services

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

Page 11: LatJUG Amazon Web Services

EC2 supplemental services

• CloudWatch• Elastic IP• Elastic Load balancer• AutoScaling

Page 12: LatJUG Amazon Web Services

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Page 13: LatJUG Amazon Web Services

Data Storage

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

Page 14: LatJUG Amazon Web Services

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

Page 15: LatJUG Amazon Web Services

S3 features

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

Page 16: LatJUG Amazon Web Services

S3 + CloudFront

• Reliable content delivery• Different delivery methods

– Download– Stream

Page 17: LatJUG Amazon Web Services

Elastic Block Store (EBS)

• Network based block storage device

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

Page 18: LatJUG Amazon Web Services

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.

Page 19: LatJUG Amazon Web Services

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Page 20: LatJUG Amazon Web Services

Database services

• SimpleDB• Relational Database Service• Instance DB

Page 21: LatJUG Amazon Web Services

Relational Database Service (RDS)

• Managed MySQL database

• Replication with 3 clicks

Page 22: LatJUG Amazon Web Services

RDS vs Instance DB

+ Configuration+ No worries about

backups- Price- Maintenance window

+ Speed+ Flexibility

RDS Instance DB

Page 23: LatJUG Amazon Web Services

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Page 24: LatJUG Amazon Web Services

Single AZ Deployment

Page 25: LatJUG Amazon Web Services

Multi AZ Deployment

Page 26: LatJUG Amazon Web Services

Instance DB

Page 27: LatJUG Amazon Web Services

RDS

Page 28: LatJUG Amazon Web Services

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Page 29: LatJUG Amazon Web Services

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

Page 30: LatJUG Amazon Web Services

Chef

• Configuration management engine– Ruby DSL– Different work modes

• Client-server• Solo

Page 31: LatJUG Amazon Web Services

Chef at cooking

• Nodes• Roles• Cookbooks

– Recipe

• Data bags• Client

Page 32: LatJUG Amazon Web Services

Chef example: redis recipe

Page 33: LatJUG Amazon Web Services

Deploy to AWSChoose region and availability zoneChoose the right technology

ComputeStorageDatabase

Define architectureBoot & configure instancesDeploy application...Profit

Page 34: LatJUG Amazon Web Services

Deployment

• Chef deployment• Capistrano• Whatever you use

Page 35: LatJUG Amazon Web Services

Good things about AWS

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

Page 36: LatJUG Amazon Web Services

Bad things about AWS

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

Page 37: LatJUG Amazon Web Services

Questions?