You are on page 1of 13

AWS Cloud Tour 2011 India, New Delhi Scale New Business Peaks with Amazon AutoScaling

Harish Ganesan
CTO and Co-Founder 8KMiles harish@8kmiles.com

Load Patterns of Business


Compute Compute 1 E-commerce 2 Online Ticketing

Weekly 3 Online Travel Compute Compute

Weekly 4 During Campaigns

Yearly

Yearly

Load Burst Types

1 Un Predictable Bursts
Compute Compute Time

2 Predictable Bursts

Time

Traditional Scaling
Lost customers

Fixed capacity Under utilization of resources Lost Customers Align no. of instances with demand Flexible capacities and scaling sizes Save costs

Amazon Auto Scaling

Amazon AutoScaling
Handle all the variety of load bursts and patterns Scale out Amazon EC2 instances seamlessly and automatically when demand increases Scale down unwanted Amazon EC2 instances automatically and save money when demand subsides Decide the scaling based on AWS CloudWatch metrics

Amazon AutoScaling Architecture


EC2 Instance
Elastic Load Balancer

Key Concepts : EC2 Instance Launch Configuration Auto Scaling Group Trigger Policy Alarm

Amazon CloudWatch
Scale Up

Scale Up Rule Scale Down Rule Predefined Scaling Activity

Scale Down

Scale Up

Auto Scaling Group

Scale Down

Auto Scaling : Unpredictable Burst


2 Un Predictable Bursts Compute

Time

Configure On demand Auto Scaling policy Create policies for both Scaling out and Scaling down scenarios 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 24 --min-size 4 --cooldown 180 --load-balancers my-load-balancer

Auto Scaling : Predictable Burst


1 Predictable Bursts Compute

Time

Configure Time based Auto Scaling plan PutScheduledUpdateGroup Action - specify the date and time of execution, minimum, maximum, and desired Instance size of capacity

% as-put-scheduled-update-group-action my-group name My-scaleup -- time 2011-11-12T02:00:00Z -min 10 -max 50

Candidates for Auto Scaling


Web Tier Application Tier Caching Tier Load Balancing Tier Other Stateless Tiers

Auto Scaling Benefits : Cost Savings


Compute Compute 1

35 % savings

30 % savings

Time

Time

30 % savings
Compute
3

35 % savings

Time

Auto Scaling Benefits : No Lost customers


We can closely align our Infrastructure with our load requirements and save costs Benefits of AutoScaling work in Happier DevOpsprogress !!!

Source: AWS

Key Points to Remember


Log Files , Data Files and Sessions Multiple AZs inside a Region EBS Backed AMIs are faster to launch Multiple Instances Types in an Auto Scaling group Combining Custom CloudWatch Metrics opens huge possibilities Evaluate Traditional Monitoring

Thank You
For more details on how we can help your business , contact cloud@8KMiles.com Visit us at cloud.8KMiles.com

You might also like