$30 off During Our Annual Pro Sale. View Details »

Auto Scaling with Amazon Web Services

JeDDieChuang
September 12, 2015

Auto Scaling with Amazon Web Services

A 5 minutes introduction of how we build auto scaling with Amazon Web Services, and integrating it with deployment flow.

JeDDieChuang

September 12, 2015
Tweet

More Decks by JeDDieChuang

Other Decks in Technology

Transcript

  1. Auto Scaling
    with
    Amazon Web Services

    View Slide

  2. Hello!
    I am JeDDie
    A software engineer; a Rails developer.

    View Slide

  3. We are
    LIVE streaming video platform in Taiwan

    View Slide

  4. We have the needs
    1

    View Slide

  5. > for?
    ◎ A robust service
    ◉ Traffic peak
    ◎ Dynamic service base
    ◉ Reasonable costs

    View Slide

  6. How do we do it?
    2

    View Slide

  7. > Investigate
    ◎ Monitor traffic
    ◎ Analyze data
    ◎ Choose the scaling strategy
    ◉ Metrics
    ◉ Threshold

    View Slide

  8. > Take Actions
    ◎ Autoscaler
    ◉ Ruby robot
    ◎ Amazon web services
    ◉ Elastic Compute Cloud (EC2)
    ◉ Elastic Load Balancing (ELB)
    ◉ Command Line Interface (CLI)
    ◉ ElastiCache
    ◎ Jenkins

    View Slide

  9. Auto Scaling Flow
    autoscaler
    service (EC2)
    load balancing

    View Slide

  10. Auto scale Deploy flow
    3

    View Slide

  11. start
    deploy
    launch
    instance
    Don’t miss the target!

    View Slide

  12. Communicable
    Talk to me, autoscaler!
    Icon is made by Masanobu Imai from jenkins-ci.org, licensed under CC BY-SA 3.0

    View Slide

  13. EC2
    service
    Amazon Web Services
    Load Balancing
    monitor
    ElastiCache
    info exchange

    View Slide

  14. release scale up
    Simple, clear, but not messy.

    View Slide

  15. Thanks!
    Any questions?

    View Slide

  16. AWS CLI (API)
    ◎ ec2
    ◉ run-instances
    ◉ allocate-address
    ◉ associate-address
    ◉ disassociate-address
    ◉ release-address
    ◉ terminate-instances
    ◎ elb
    ◉ register/deregister

    View Slide

  17. AWS CLI (API)
    ◎ ec2
    ◉ deployment
    ○ describe-instance
    ○ create-image

    View Slide

  18. Credits
    Special thanks to all the people
    who made and released these
    awesome resources for free:
    ◎ Presentation template by
    SlidesCarnival
    ◎ Photographs by Unsplash

    View Slide