Scale New Business Peaks With Amazon Auto Scaling

Embed Size (px)

Citation preview

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    1/13

    AWS Cloud Tour 2011 India,New Delhi

    Scale New Business Peaks withAmazon AutoScaling

    Harish Ganesan

    CTO and Co-Founder8KMiles

    [email protected]

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    2/13

    Compute

    Weekly

    E-commerce1

    Compute

    Weekly

    Online Ticketing

    2

    Comp

    ute

    Online Travel3

    Comp

    ute

    During Campaigns

    4

    Yearly Yearly

    Load Patterns of Business

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    3/13

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    4/13

    Align no. of instances

    with demand Flexible capacities and

    scaling sizes

    Save costs

    Fixed capacity

    Under utilization ofresources

    Lost Customers

    Traditional Scaling

    Amazon Auto Scaling

    Lost customers

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    5/13

    Handle all the variety of load bursts andpatterns

    Scale out Amazon EC2 instances

    seamlessly and automatically when demandincreases

    Scale down unwanted Amazon EC2

    instances automatically and save moneywhen demand subsides

    Decide the scaling based on AWS

    CloudWatch metrics

    Amazon AutoScaling

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    6/13

    Auto Scaling

    Group

    EC2 Instance

    EC2 Instance

    Elastic LoadBalancer

    Amazon CloudWatch

    Scale UpRule

    Scale

    DownRule

    Scale Down

    Scale Up

    PredefinedScalingActivity

    Scale Up

    Scale Down

    Amazon AutoScaling Architecture

    Key Concepts :

    Launch Configuration

    Auto Scaling Group

    Trigger

    Policy

    Alarm

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    7/13

    Compute

    Time

    Configure On demand AutoScaling policy

    Create policies for bothScaling out and Scalingdown scenarios

    Auto Scaling will respond to

    changing conditionsdynamically

    Un Predictable Bursts2

    %as-create-auto-scaling-groupas-group --availability-zones us-east-1c

    launch-configurationmy-lconfig --max-size 24 --min-size 4 --cooldown

    180 --load-balancers my-load-balancer

    Auto Scaling : Unpredictable Burst

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    8/13

    Compute

    Time

    Configure Time based AutoScaling plan

    PutScheduledUpdateGroupAction - specify the date andtime of execution, minimum,

    maximum, and desiredInstance size of capacity

    Predictable Bursts1

    % as-put-scheduled-update-group-action my-groupname My-scale-

    up -- time 2011-11-12T02:00:00Z -min 10 -max 50

    Auto Scaling : Predictable Burst

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    9/13

    Web Tier Application Tier

    Caching Tier

    Load Balancing Tier

    Other Stateless Tiers

    Candidates for Auto Scaling

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    10/13

    Compute

    Time

    1

    Compute

    Time

    2

    Comp

    ute

    Time

    Auto Scaling Benefits : Cost Savings

    30 % savings

    35 % savings

    35 % savings

    30 % savings

    3

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    11/13

    Benefits of AutoScaling work inprogress

    Source: AWS

    We can closely align our Infrastructurewith our load requirements and savecosts

    Happier DevOps !!!

    Auto Scaling Benefits : No Lost

    customers

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    12/13

    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 hugepossibilities

    Evaluate Traditional Monitoring

  • 8/3/2019 Scale New Business Peaks With Amazon Auto Scaling

    13/13

    Thank You

    For more details on how we can help yourbusiness , contact

    [email protected] us at cloud.8KMiles.com