Professional Documents
Culture Documents
Harish Ganesan
Co founder & CTO
8KMiles
www.twitter.com/harish11g
http://www.linkedin.com/in/harishganesan
Introduction
Source: AWS
Actual Demand vs Fixed Capacity
Source: AWS
Problem 1: Wasted Capacity
Source: AWS
Problem 2 : Lost Customers
Source: AWS
Need for Auto Scaling
Source: Internet
What is AWS Auto Scaling ?
Source: AWS
Load Volatility Scenarios
Candidates for Auto Scaling (1)
Key pair / Security Name your launch Amazon Machine Amazon EC2
group settings for the configuration image(AMI) to be Instance Size
Amazon EC2 instances launched during
scaling
Step 3: Create an AWS Auto Scale Group
1 Predictable Bursts
• Configure Time based Auto
Scaling plan
Compute
• PutScheduledUpdateGroup
Action - specify the date
and time of execution,
Time minimum, maximum, and
desired Instance size of
capacity
% as-put-scheduled-update-group-action my-group –name “My-scale-
up” -- time “2011-04-05T02:00:00Z” -min 10 -max 50
Auto Scaling Policy : Un predictable Bursts
Scaling policy
• Create policies for both
Scaling out and Scaling
down scenarios
Time
• Auto Scaling will respond to
changing conditions
dynamically
%as-create-auto-scaling-group as-group --availability-zones us-east-1c –
launch-configuration my-lconfig --max-size 20 --min-size 2 --cooldown
180 --load-balancers my-load-balancer
Auto Scaling Policy : Constantly Growing
3
EC2 Instances 4 AWS Auto Scaling launches the new
Amazon EC2 instances from the S3
backed AMI’s
4
EBS Backed AMI’s for Auto Scaling
1 1 Web requests are sent to the
Amazon ELB
3
EC2 Instances 4 AWS Auto Scaling launches the new
Amazon EC2 instances from the EBS
backed AMI’s
EBS
EBS
EBS
4
Amazon Auto Scaling and AMI’s
C C
L L
Amazon EC2
O Amazon EC2
O
instances U instances U
D D
W W
Amazon Auto Scaling A Amazon Auto Scaling A
T T
S3
S3 C Backed
C
Backed H AMI H
AMI
Design 2: Amazon Auto Scaling across AWS Regions
Architecture Not Possible
C C
L L
Amazon EC2
O Amazon EC2
O
instances U instances U
D D
W W
Amazon Auto Scaling A Amazon Auto Scaling A
T T
S3
S3 C Backed
C
Backed H AMI H
AMI
Amazon Auto Scaling ,AWS Regions and AZ’s
3
EC2 Instances 4 AWS Auto Scaling launches the new
Amazon EC2 instances
Amazon EC2
instances are auto
scaled
programmatically
S3 backed AMI depending upon
SQS Load
Amazon Auto Scaling and Amazon ELB
“All you need is an idea and the cloud will execute it for you.” (Structure 2010 event)
- Dr Werner Vogels , CTO of Amazon on 8KMiles
cloud@8kmiles.com
http://cloud.8kmiles.com
http://cloudblog.8kmiles.com
http://www.8kmiles.com