56
Cloud Computing Changes Everything Hank Lin Sr. Engineer, TCloud Computing http://hanklin.com/

Cloud changes everything

Embed Size (px)

DESCRIPTION

How cloud computing and AWS change everything

Citation preview

Page 1: Cloud changes everything

Cloud Computing Changes Everything

Hank Lin

Sr. Engineer, TCloud Computing

http://hanklin.com/

Page 2: Cloud changes everything

You Call This Cloud?

http://www.flickr.com/photos/lennysan/4403695791/ http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en

Page 3: Cloud changes everything

I Say This Is Cloud

http://www.flickr.com/photos/7969902@N07/510672745/

Page 4: Cloud changes everything

Hype or Hope

http://www.flickr.com/photos/horiavarlan/5047507694/ http://creativecommons.org/licenses/by/2.0/deed.en

Page 5: Cloud changes everything

Earth at Night

http://apod.nasa.gov/apod/ap081005.html

Page 6: Cloud changes everything

Facebook Visualization

http://www.facebook.com/notes/facebook-engineering/visualizing-friendships/469716398919

Page 7: Cloud changes everything

Broadband, Anywhere, Anytime

http://www.flickr.com/photos/myklroventine/3816273335/ http://creativecommons.org/licenses/by/2.0/deed.en

Page 8: Cloud changes everything

Everything Is Online

• app -> web app

• mail -> Gmail

• game -> online game

• storage -> online storage

• machine -> VPS

http://hanklin.com/

Page 9: Cloud changes everything

Everything Is a Service

• Software as a Service

• Platform as a Service

• Infrastructure as a Service

• * as a Service

http://hanklin.com/

Page 10: Cloud changes everything

Nothing New

http://en.wikipedia.org/wiki/File:The_Earth_seen_from_Apollo_17.jpg

Page 11: Cloud changes everything

Nothing New

• Internet

• Virtualization, VPS

• Platform

• ASP

• Browser, RIA

• NoSQL

• Scaling Out/Up

Page 12: Cloud changes everything

Everything Changes

http://en.wikipedia.org/wiki/File:Giantimpact.gif

Page 13: Cloud changes everything

Everything Changes

• APIs

• On-Demand

• Pay As You Go

• Infinite Capacity

• Lease Instead Of Provision

• Reallocate Instead Of Recover

• Scaling In/Down

Page 14: Cloud changes everything

Service Providers

• Amazon

• Google

• Microsoft

• Rackspace Cloud

• Salesforce

• Linode

Page 15: Cloud changes everything
Page 16: Cloud changes everything

AWS Products

http://www.flickr.com/photos/dunechaser/4785103816/ http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en

Page 17: Cloud changes everything

AWS Products

Function Products

Compute EC2 、 EMR 、 Auto Scaling

Storage S3 、 EBS 、 AWS Import/Export 、 Public Dataset

Database SimpleDB 、 RDS

Messaging SNS 、 SQS 、 SES

CDN CloudFront

Networking Route 53 、 VPC 、 ELB

Monitoring CloudWatch

Deployment Elastic Beanstalk 、 CloudFormation

Payments FPS 、 DevPay

Support Premium Support

E-Commerce FWS 、 Mechanical Turk

Web Traffic Alexa Top Sites 、 Alexa Web Information Service

Page 18: Cloud changes everything

EC2

http://opencompute.org/

Page 19: Cloud changes everything

EC2

Page 20: Cloud changes everything

AMI

Page 21: Cloud changes everything

32-bit

Type CPU RAM Storage Arch. IO Name

Small 1 ECU 1.7 GB 150 GB 32-bit Moderate m1.small

Micro Max 2 ECUs

613 MB EBS only 32-bit or 64-bit

Low t1.micro

High-CPU Medium

5 ECUs 1.7 GB 340 GB 32-bit Moderate c1.medium

*EC2 Compute Unit (ECU) – equivalent of a 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor.

Page 22: Cloud changes everything

64-bit

Type CPU RAM Storage Arch. IO Name

Large 4 ECUs 7.5 GB 840 GB 64-bit High m1.large

Extra Large 8 ECUs 15 GB 1680 GB 64-bit High m1.xlarge

High-CPU Extra Large

20 ECUs 7 GB 1680 GB 64-bit High c1.xlarge

High-Memory Extra Large

6.5 ECUs 17.1 GB 420 GB 64-bit Moderate m2.xlarge

High-Memory Double Extra Large

13 ECUs 34.2 GB 840 GB 64-bit High m2.2xlarge

High-Memory Quadruple Extra Large

26 ECUs 68.4 GB 1680 GB 64-bit High m2.4xlarge

Page 23: Cloud changes everything

High Performance ComputingType Processor RAM Storage Arch

.IO Name

Cluster Compute Quadruple Extra Large

33.5 ECUs(2 Intel Xeon X5570, quad-core Nehalem)

23 GB 1680 GB 64-bit Very high (10 Gbps Ethernet)

cc1.4xlarge

Cluster GPU Quadruple Extra Large 

33.5 ECUs (2 Intel Xeon X5570, quad-core Nehalem), 2 NVIDIA Tesla M2050 Fermi GPUs

22 +1 GB2 x 3 GB (on GPU ECC)

1680 GB 64-bit Very high (10 Gbps Ethernet)

cg1.4xlarge

*Tesla Fermi M2050 contains 448 cores and 3 GB of ECC RAM and are designed to deliver up to 515 gigaflops

Page 24: Cloud changes everything

NASA JPL

• Processing 3.2 Giga-pixel Images In 2 Hours, 30 Instances. Improved an order of magnitude.

• 20 Gigaflops -> 1.3 Teraflops

MATLAB team at MathWorks

Page 25: Cloud changes everything

Regions & Availability Zones

Page 26: Cloud changes everything

Pricing

• Type

• Region

• Platform

• On-Demand/Reserved/Spot

• Paid AMI

• Instance-hours

• EBS volumes/snapshots

Page 27: Cloud changes everything

Elasticity & Agility

• EBS

• EIP

• VPC

• EMR

• ELB

• Auto Scaling

• CloudWatch

• Beanstalk

Page 28: Cloud changes everything

EC2 Customers

• Zynga

• Playfish

• Reddit

• Myspace

• Netflix

• Justin.tv

• Animoto

• Heroku

Page 29: Cloud changes everything

TimesMachine

Page 30: Cloud changes everything

break;

Page 31: Cloud changes everything

S3

Save a picture OK

Save a DVD disc OK

Save a Bluray disc OK

Page 32: Cloud changes everything
Page 33: Cloud changes everything
Page 34: Cloud changes everything
Page 35: Cloud changes everything
Page 36: Cloud changes everything
Page 37: Cloud changes everything

Serving from own domainor CloudFront

Page 38: Cloud changes everything

Pricing

Storage us-east, eu-west, ap-se us-west ap-ne

Standard RRS Standard RRS Standard RRS

First 1 TB $0.140 $0.093 $0.154 $0.103 $0.150 $0.100

1~ 50 TB $0.125 $0.083 $0.139 $0.093 $0.135 $0.090

50 ~ 500 TB

$0.110 $0.073 $0.124 $0.083 $0.120 $0.080

500 ~ 1000 TB

$0.095 $0.063 $0.109 $0.073 $0.105 $0.070

1000 ~ 5000 TB

$0.080 $0.053 $0.095 $0.063 $0.090 $0.060

5000+ TB $0.055 $0.037 $0.070 $0.047 $0.065 $0.044

* Prices are calculated per GB** Requests and Bandwidth also incur charges

Page 39: Cloud changes everything

Simple & Reliable

• Buckets & Objects

• Capacity : ∞• High Scalability, Availability, Durability

• REST/SOAP/BT

• ACL/metadata/RRS

• Integrate with other AWS services

Page 40: Cloud changes everything

S3 Customers

• Amazon

• Dropbox

• Twitter

• Smugmug

• Yelp

• Ubuntu One

• Zmanda

• Tumblr

Page 41: Cloud changes everything

Distinction

• Amazon.com’s Experiences

• Real Developers’ Needs

• Full IaaS Products

• Enormous Developer Tools/Libraries

Page 42: Cloud changes everything

AWS Ecosystem

• End Users

• Web Sites

• ISVs

• System Integrators

Page 43: Cloud changes everything

Demo

Page 44: Cloud changes everything

Alestic AMIs

Page 45: Cloud changes everything

EC2 Instance Initialization[hank@t400 ~]$ ec2-run-instances ami-7c423c2e -k sg-web

-t m1.small -g www -z ap-southeast-1a...... i-fd1fd5a8 ami-7c423c2e pending sg-web

0......

[hank@t400 ~]$ ec2-describe-instances i-fd1fd5a8...... i-fd1fd5a8 ami-7c423c2e ec2-122-248-220-243.ap-

southeast-1.compute.amazonaws.com ......

[hank@t400 ~]$ ssh -i sg-web.pem [email protected]

[ubuntu@ip-10-130-93-73 ~]$ sudo apt-get -y update && apt-get -y install apache2 php5 php5-curl

Page 46: Cloud changes everything

EC2 Instance Initialization[hank@t400 ~]$ ec2-run-instances ami-7c423c2e -k sg-web

-t m1.small -g www -z ap-southeast-1a...... i-fd1fd5a8 ami-7c423c2e pending sg-web

0......

[hank@t400 ~]$ ec2-describe-instances i-fd1fd5a8...... i-fd1fd5a8 ami-7c423c2e ec2-122-248-220-243.ap-

southeast-1.compute.amazonaws.com ......

[hank@t400 ~]$ ssh -i sg-web.pem [email protected]

[ubuntu@ip-10-130-93-73 ~]$ sudo apt-get -y update && apt-get -y install apache2 php5 php5-curl

LAME! I Want Automatic Initialization

Page 47: Cloud changes everything

EC2 Instance Initialization

#!/usr/bin/env bashset -exsudo apt-get -y updatesudo apt-get -y install apache2 php5 php5-curl# install AWS SDK# install application code# get public-ipv4 from EC2 instance metadatapublic_ipv4 = $(wget -qO-

169.254.169.254/latest/meta-data/public-ipv4)# do something useful with $public_ipv4# more initializations ...

"init-web.sh"

Page 48: Cloud changes everything

EC2 Instance Initialization[hank@t400 ~]$ ec2-run-instances ami-7c423c2e -k sg-web -t

m1.small -g www -z ap-southeast-1a -f init-web.sh...... i-c10fc594 ami-7c423c2e pending sg-web 0......

[hank@t400 ~]$ ec2-describe-instances i-c10fc594...... i-c10fc594 ami-7c423c2e ec2-122-248-221-187.ap-

southeast-1.compute.amazonaws.com ......

[hank@t400 ~]$ curl 122.248.221.187<!doctype html><html><head><meta http-equiv="content-type"

content="text/html; charset=UTF-8"><title>My Killer App</title>......

Page 49: Cloud changes everything

I Need More Computing Power, And I Need It NOW

[hank@t400 ~]$ ec2-run-instances ami-12423c40 -k sg-web -t c1.xlarge -g www -z ap-southeast-1a -f init-web.sh -n 10

...... i-320c424e ami-12423c40 pending sg-web 0......

Page 50: Cloud changes everything

More Work

• Scheduled Back Up

• Monitor And Alert

• Notify LB, Controller, etc

• Failover

• Multi-AZ, Multi-Region

• Automatically Scale In/Out

• Ceil, Floor, Cool down

Page 51: Cloud changes everything

AWS Judgment Day

Page 52: Cloud changes everything

When The Sky Is Falling

Page 53: Cloud changes everything

AWS Free Usage TierProduct Quota (for new users, expired in 1 year)

EC2 750 instance-hours. (t1.micro, Linux)

EBS 10GB , 1M I/Os. (snapshot: 10GB , 10K GETs, 1K PUTs)

ELB 750 LoadBalancer-hours, 15GB data processing

S3 5GB standard storage, 20K GETs, 2K PUTs

Network 15GB in and 15GB out. (except CloudFront)

Product Quota (for all AWS users, does not expire)

SimpleDB 25 Machine hours, 1GB storage

SQS 100K requests

SNS 100K requests. (notification: 100K HTTPs, 1K emails)

SES 2K emails/day call from EC2

CloudWatch 1M requests, 10 alarms, 10 metrics

Network 1GB in and 1GB out. (except CloudFront)

* Quota are calculated per month

Page 54: Cloud changes everything

If I have seen further it is by standing on the shoulders of giants

http://en.wikipedia.org/wiki/File:Orion_aveugle_cherchant_le_soleil.jpg

Page 55: Cloud changes everything

break;

Page 56: Cloud changes everything

My AWS Book ;)

• ISBN : 9789861992792