amazon web services for application hosting | sugarcon 2011
DESCRIPTION
In this presentation, Jeff Barr will introduce the principal Amazon Web Services from a business and technical point of view. Jeff will review the economics of cloud-based solutions, and will discuss the Elastic Compute Cloud (EC2), the Simple Storage Service (S3), and the Relational Database Service (RDS). Jeff will also discuss the ins and outs of hosting complex applications on AWS. Presented by Jeff Barr, Senior Web Services Evangelist, Amazon Web Services, at SugarCon 2011.TRANSCRIPT
![Page 1: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/1.jpg)
Amazon Web ServicesJeff Barr, Senior Evangelist@jeffbarr
![Page 2: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/2.jpg)
My Background
Based in Seattle, WA
Education: BS in Computer Science, The American University, 1985 Graduate student in Digital Media, University of Washington, 2010
Background: Microsoft Visual Studio team Consulting to startups and VC’s Amazon employee since 2002
Author, “Host Your Web Site in the Cloud”
Email: [email protected]: @jeffbarr
AWS – Confidential - Copyright © 2011, Amazon Web Services LLC or its affiliates. All rights reserved.
![Page 3: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/3.jpg)
The Cloud is Suddenly Everywhere
![Page 4: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/4.jpg)
What is Cloud Computing?An analogy: think of electricity services…
Power is a utility service - available to you on-demand and you pay only for what you use.
You simply plug into a vast electrical grid managed by experts to get a low cost, reliable power supply – available to you with much greater efficiency than you could generate on your own.
![Page 5: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/5.jpg)
What is Cloud Computing?
Cloud Computing is also a utility service - giving you access to technology resources managed by experts and available on-demand.
You simply access these services over the internet, with no up-front costs and you pay only for the resources you use.
![Page 6: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/6.jpg)
Attributes of Cloud Computing
No capital expenditure
Pay as you go and pay only for what you use
True elastic capacity; Scale up and down
Improves time to market
You get to focus your engineering resources on what differentiates you vs. managing the undifferentiated infrastructure resources
![Page 7: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/7.jpg)
What is Amazon Web Services?
Amazon Web Services is a cloud computing platform that provides flexible, scalable, and cost-effective technology infrastructure for businesses of all sizes around the world…
…utilizing the knowledge, expertise, and tools used to run Amazon.com’s global web properties for over a decade.
![Page 8: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/8.jpg)
AWS Global Reach
US East (Northern Virginia)
US West (Northern California)
Europe (Dublin)
Asia Pacific (Singapore)
Asia Pacific (Tokyo)
AWS Regions
US East (Northern Virginia)
Availability Zone A
Availability Zone B
Availability Zone C
Availability Zone D
![Page 9: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/9.jpg)
WHY ARE PEOPLE SO EXCITED?
![Page 10: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/10.jpg)
The Dirty Little Secret
On-PremiseInfrastructure
YourBusiness
Managing All of the “Undifferentiated Heavy Lifting”
30% 70%
![Page 11: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/11.jpg)
AWS Goal: Flip This Equation
AWSCloud-BasedInfrastructure
YourBusiness
More Time to Focus onYour Business
Configuring Your Cloud
Assets
70%
30%70%
On-PremiseInfrastructure
30%
Managing All of the “Undifferentiated Heavy Lifting”
![Page 12: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/12.jpg)
Predicting Infrastructure UsageC
ompu
te P
ower
Time
Predicted Usage
Actual Usage
Waste
CustomerDissatisfaction
![Page 13: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/13.jpg)
Example: Wall Street App on Amazon EC2
3000 CPU’s for one firm’s risk management processes
Num
ber
of E
C2
Inst
ance
s
300 CPU’s on weekends
Thursday4/23/2009
Friday4/24/2009
Sunday4/26/2009
Monday4/27/2009
Tuesday4/28/2009
Saturday4/25/2009
Wednesday4/22/2009
3000 -
300 -
![Page 14: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/14.jpg)
Example: Video App on Amazon EC2N
um
be
r of
EC
2 In
sta
nce
s
4/12/2008
Launch of Facebook modification
Scaled to peak of 5,000 instances in 3 days
4/14/2008 4/15/2008 4/16/2008 4/18/2008 4/19/2008 4/20/20084/17/20084/13/2008
![Page 15: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/15.jpg)
• Web site hosting
• Application hosting/SaaS hosting
• Internal IT application hosting
• Content delivery and media distribution
• High performance computing, batch data processing, and large scale analytics
• Storage, backup, and disaster recovery
• Development and test environments
Common Use Cases
![Page 16: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/16.jpg)
Amazon Web Services
ComputeAmazon Elastic Compute Cloud (EC2)
StorageAmazon Simple Storage Service
(S3)
Cloud-Powered Applications
Content DeliveryAmazon CloudFront
MessagingAmazon Simple Queue Service (SQS)
Amazon Simple Notification Service (SNS)Amazon Simple Email Service (SES)
Parallel Processing
Amazon Elastic MapReduce
MonitoringAmazon CloudWatch
DatabaseAmazon RDS
Amazon SimpleDBThird-Party Offerings
ManagementAWS Management Console
AWS Elastic Beanstalk
ToolsAWS Toolkit for Eclipse
Java, PHP, Ruby, Python, .Net Developer
Centers
NetworkVirtual Private Cloud
Route 53
Metering and Billing
Identity and Access Management
![Page 17: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/17.jpg)
AWS IN DETAIL!
![Page 18: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/18.jpg)
Amazon Elastic Compute Cloud
Amazon EC2: on-demand compute power Obtain and boot new server instances in minutes Quickly scale capacity up or down Eleven instance types Hourly billing
Key features: Support for Windows, Linux, FreeBSD, and OpenSolaris Supports all major web and application platforms Deploy across Availability Zones for reliability
![Page 19: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/19.jpg)
Region
Availability Zone
Amazon EC2 Architecture
EC2 Instance
Elastic IP Address
Security Group(s)
Load Balancing
Elastic Block
StorageCloudWatch
Auto Scaling
Ephemeral Storage
Amazon S3
EBS Snapshot
EBS Snapshot
Amazon Machine
Image (AMI)
![Page 20: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/20.jpg)
Amazon EC2 Pricing Options
On-DemandInstances
Pay as you go for compute power
Pay only for what you use, no up-front commitments or long-term contracts
Unix/Linux instances start at $0.02/hour USD in the US East Region
ReservedInstances
Pay a low up-front fee and receive a significant discount on the hourly pricing for that instance
1- or 3-year terms
Helps ensure that compute capacity is available when it is needed
SpotInstances
Enables you to bid on unused Amazon EC2 capacity
Spot Price is based on supply/demand and is determined automatically
If the Spot Price is below your bid, your instances will start
If the Spot Price rises above your bid, your instances will stop
![Page 21: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/21.jpg)
Amazon EC2 Instance Specs
Standard High-CPU High-Memory Cluster
Micro Small Large Extra Large
Medium Extra Large
Extra Large
Double Extra Large
Quadruple Extra Large
Cluster Compute Quadruple Extra
Large
Cluster GPU Quadruple Extra
Large
Bits 32 32 64 64 32 64 64 64 64 64 64
RAM 613 MB
1.7 GB
7.5 GB
15 GB 1.7 GB 7 GB 17.1 GB
34.2 GB 68.4 GB 23 22
Local Disk
0 160 GB
850 GB
1690 GB
350 GB 1690 GB 420 GB
850 GB 1690 GB 1690 GB 1690 GB
EC2 Compute Units
Burst to 2
1 4 8 5 20 6.5 13 26 33.5 33.5
Cores 1 1 2 4 2 8 2 4 8 8(Dual Processor)
8(Dual Processor)
GPU 2 x Nvidia Tesla "Fermi" M2050
Firewall Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Linux Per Hour
$0.02 $0.085
$0.34 $0.68 $0.17 $0.68 $0.50 $1.20 $2.40 $1.60 $2.10
Windows Per Hour
$0.03 $0.12 $0.48 $0.96 $0.29 $1.16 $0.62 $1.44 $2.88 N/A N/A
All prices subject to change
![Page 22: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/22.jpg)
Amazon Relational Database Service
Provision a new relational database in seconds MySQL (5.1 and 5.5) - Now Oracle (11G) - Soon
Offload common administrative tasks to AWS OS upgrades DB upgrades and patches Scaling CPU and storage Backups & Restores
Use your existing code and toolsPay only for what you use, no up-front commitmentsSingle and Multi-AZRead Replicas
![Page 23: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/23.jpg)
RDS in Action
![Page 24: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/24.jpg)
RDS in Action
![Page 25: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/25.jpg)
HOSTING APPLICATIONS ON AWS
![Page 26: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/26.jpg)
https://aws.amazon.com/console
AWS Management Console
![Page 27: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/27.jpg)
AWS CloudFormation Stack Creation
AMAZON CONFIDENTIAL
Define a JSON template of AWS Resources to provision (EC2 instances, AZ lists, AMIs, EIP, RDS, etc)
Parameterization supported
Use CLI, API, or Management Console to register and create an AWS stack
Service automatically determines interdependencies
AWS resources get created across tiers and AZs forming a CloudFormation Stack
![Page 28: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/28.jpg)
JSON Template
![Page 29: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/29.jpg)
Amazon Virtual Private Cloud - VPC
Create an isolated set of EC2 instances in the AWS cloud
Divide your IP address range into one or more public or private subnets
Control inbound and outbound access to and from individual subnets using stateless Network Access Control Lists
Protect your Instances with stateful filters for inbound and outbound traffic using Security Groups
Bridge your VPC and your onsite IT infrastructure with an encrypted VPN connection
Use Network Addess Translation (NAT)
![Page 30: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/30.jpg)
![Page 31: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/31.jpg)
![Page 32: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/32.jpg)
![Page 33: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/33.jpg)
Other Cloud Hosting Ideas
Easy scaling: Geographies CPU power RAM Bandwidth Storage
Servers on Demand: Development Test Servers Demo / Trial Use
Backup: Snapshot EC2 Snapshot RDS Data to S3
Disaster Recovery: Hot Spare Geographic Redundancy
![Page 34: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/34.jpg)
For More Information
AWS Web Site: http://aws.amazon.com
AWS Blog: http://aws.typepad.com
Email: [email protected]
Twitter: @jeffbarr
![Page 35: Amazon Web Services for Application Hosting | SugarCon 2011](https://reader035.vdocuments.site/reader035/viewer/2022081518/54b67b964a79591b3c8b457f/html5/thumbnails/35.jpg)
THANK YOU!