SlideShare a Scribd company logo
AWS Auto Scaling
presented by BlueChipTek
web: bluechiptek.com
twitter: @bluechiptek
phone: 408-731-7700
Copyright 2015 Blue Chip Tek
Who am I?
 DevOps Engineer and occasional Programmer
What experience do I have?
 Lyft: ride-sharing startup in San Francisco
 NetShelter: multi-region ad-network
Certified?
 AWS Certified Solutions Architect, number 2564
 AWS Certified SysOps, number 224
Projects?
 Contributed some cool features to SaltStack project
Intro: Colin Johnson
Copyright 2015 Blue Chip Tek
 Understand use cases for Auto Scaling
 Understand benefits and drawbacks of Auto Scaling
 Determine if and where Auto Scaling a fit for existing
Infrastructure
 Implement Auto Scaling!
Objectives
Copyright 2015 Blue Chip Tek
A Quick AWS Introduction
(as is relevant to Auto Scaling)
Copyright 2015 Blue Chip Tek
 Regions:
 9 Available Regions (as of April, 2015)
 Costs are Different in Each Region (~50% difference between
lowest/most expensive EC2 instance)
 Use Regions to Meet Availability, Compliance or Performance
Requirements
 Availability Zones:
 Each Availability Zone is Isolated, typically 3-4 AZs per-region
 Meet Availability or Scalability Requirements
Regions and Availability Zones
Copyright 2015 Blue Chip Tek
AWS: Global Regions
Copyright 2015 Blue Chip Tek
Example: Multi-AZ Architecture
us-west-2
us-west-2bus-west-2a
Internet
Load Balancer
Multi-AZ
Auto Scaling Group
Multi-AZ
Database
Multi-AZ
wwwlb-prod01 www-prod01
www-prod01wwwlb-prod01 db-prod01
db-prod01
Mobile Client
Client
Copyright 2015 Blue Chip Tek
Example: Multi-AZ
Architecture during Failure
Copyright 2015 Blue Chip Tek
 March, 2006 – S3 Launched
 August, 2006 – EC2 Beta Launched
 October, 2007 – EC2 “Large and Extra Large” Instances
 March, 2008 – Availability Zones
 October, 2008 – EC2 Officially Released
 May, 2009 – AWS Console Launched
 May, 2009 – Auto Scaling Released
 December, 2013 – Auto Scaling added to AWS Console
AWS and Auto Scaling: Timeline
Copyright 2015 Blue Chip Tek
 Provides Elasticity and Scalability
 Respond to changes in demand by scaling in/out EC2 servers.
 Scale manually, automatically or on schedule
 Automatic scaling based on CloudWatch Metrics
 Provides Availability
 Spreads Instances across Availability Zones
 Eliminate outages as result of changes in demand
 Terminate and rebuild failed nodes automatically
 Cost: “pay for what you need” or utilize “Spot” instances
Auto Scaling: Benefits
Copyright 2015 Blue Chip Tek
 Dynamic infrastructure creates challenges:
 Monitoring Tools
 Log File Collection and Analysis
 Changing IP Addresses/Ranges
 Applications saving “State” on Terminated Servers
 Applications may require modification to work with
Auto Scaling
Auto Scaling: Challenges
Copyright 2015 Blue Chip Tek
AWS Auto Scaling
(the Details)
Copyright 2015 Blue Chip Tek
An Auto Scaling Group has the following attributes:
 Min Size
 Max Size
 Desired Capacity
 Health Check Type (EC2 or ELB)
 Associated Load Balancers
 LaunchConfiguration
 Provides Instance Type, AMI ID, User Data
Auto Scaling: Attributes
Copyright 2015 Blue Chip Tek
A Launch Configuration tells an Auto Scaling Group
About the Instance to Launch. Example attributes:
 ImageID (aka AMI)
 InstanceType
 KeyName
 SecurityGroups
 Spot Price
 User-Data
Auto Scaling: Launch Configuration
Copyright 2015 Blue Chip Tek
 Tags applied on an “Auto Scaling Group” are also
applied to instances
 Tag with “Application”, “Environment”, “Owner” to
enable reporting and easier AWS Administration
 Tags are “Eventually Consistent” for Instances
 Create an instance as part of “web-prod01” and the
instance may not get that tag immediately
Auto Scaling: Tags
Copyright 2015 Blue Chip Tek
 Auto Scaling is designed to be used with other AWS
Services:
 Elastic Load Balancing for routing Inbound requests
 SQS for dispatching messages/work to ephemeral EC2
Servers
 CloudWatch for controlling scale/up events
Auto Scaling: Typical Design
Copyright 2015 Blue Chip Tek
Auto Scaling and ELB
Copyright 2015 Blue Chip Tek
Auto Scaling and SQS
Copyright 2015 Blue Chip Tek
 Use CloudFormation to provision Auto Scaling Groups
 Auto Scaling Groups are challenging to build manually
 Auto Scaling Groups don’t support easy “Launch
Configuration” modifications*
 Auto Scaling is Integrated with or Used By:
 CodeDeploy (for getting code onto instances)
 Elastic Load Balancers? Sure seems like it…
 Elastic Beanstalk
 EC2 Container Service (optional, but recommended)
Integration with other AWS Services
Copyright 2015 Blue Chip Tek
AWS Auto Scaling
(Live Demo)
Copyright 2015 Blue Chip Tek
 Use all Availability Zones
 AWS may “deny” the ability to launch an instance in an AZ if
over capacity
 Ship all data off instances as quickly as possible
 Avoid use of Lifecycle Hooks if Possible
 Create groups of 1 Instance
 If errors arise, terminate instance and rebuild
 Over-provision by 1 node until Scaling policy well
understood
 Keep Auto Scaling Rules Simple
Auto Scaling: Best Practices
Copyright 2015 Blue Chip Tek

More Related Content

PDF
Auto scaling using Amazon Web Services ( AWS )
PDF
AWS ELB
PPT
Auto Scaling on AWS
PDF
Cloudwatch: Monitoring your AWS services with Metrics and Alarms
PDF
AWS AutoScaling
PDF
AWS EC2
PPTX
Joel Schuweiler_AWS IAM Identity Center (Single Sign On).pptx
PDF
Azure web apps
Auto scaling using Amazon Web Services ( AWS )
AWS ELB
Auto Scaling on AWS
Cloudwatch: Monitoring your AWS services with Metrics and Alarms
AWS AutoScaling
AWS EC2
Joel Schuweiler_AWS IAM Identity Center (Single Sign On).pptx
Azure web apps

What's hot (20)

PDF
AWS CLOUD 2017 - AWS Shield를 통한 DDoS 대비 복원성 강한 AWS 보안 아키텍처 구성 (임기성 솔루션즈 아키텍트)
PPTX
Azure App Service
PPTX
Microsoft Azure Networking Basics
PPTX
Migration to Aws Cloud
PDF
Azure 101
PDF
AWS Control Tower
PDF
AWS Tutorial | AWS Certified Solutions Architect | Amazon AWS | AWS Training ...
PPTX
Introduction to Amazon Web Services (AWS)
PDF
AZ-900 Azure Fundamentals.pdf
PDF
Introduction to Microsoft Azure Cloud
PPTX
Azure App Service Architecture. Web Apps.
PDF
Cloudwatch: Monitoring your Services with Metrics and Alarms
PPTX
Microsoft Azure Logic apps
PDF
AWS RDS
PPTX
AWS Elastic Compute Cloud (EC2)
PDF
AWS Security 솔루션 자세히 살펴보기 :: 신용녀 :: AWS Finance Seminar
PPTX
Aws overview (Amazon Web Services)
PDF
Introduction to Cloud | Cloud Computing Tutorial for Beginners | Cloud Certif...
PPTX
AWS API Gateway
AWS CLOUD 2017 - AWS Shield를 통한 DDoS 대비 복원성 강한 AWS 보안 아키텍처 구성 (임기성 솔루션즈 아키텍트)
Azure App Service
Microsoft Azure Networking Basics
Migration to Aws Cloud
Azure 101
AWS Control Tower
AWS Tutorial | AWS Certified Solutions Architect | Amazon AWS | AWS Training ...
Introduction to Amazon Web Services (AWS)
AZ-900 Azure Fundamentals.pdf
Introduction to Microsoft Azure Cloud
Azure App Service Architecture. Web Apps.
Cloudwatch: Monitoring your Services with Metrics and Alarms
Microsoft Azure Logic apps
AWS RDS
AWS Elastic Compute Cloud (EC2)
AWS Security 솔루션 자세히 살펴보기 :: 신용녀 :: AWS Finance Seminar
Aws overview (Amazon Web Services)
Introduction to Cloud | Cloud Computing Tutorial for Beginners | Cloud Certif...
AWS API Gateway
Ad

Viewers also liked (20)

PDF
How Does Amazon EC2 Auto Scaling Work
PDF
Icinga 2 and Puppet - Automate Monitoring
PPTX
(AWS) Auto Scaling : Evening Session by Amazon and IntelliGrape Software
PPTX
Docker Demo IBM Impact 2014
PPTX
Docker Ecosystem: Part IV - Swarm
PPTX
Docker Ecosystem - Part II - Compose
PPTX
Docker Ecosystem - Part I - Engine
PPTX
Docker Ecosystem: Part V - Docker Registry
PDF
Docker ecosystem
PPTX
Blue Chip Tek AWS Connect and Protect Presentation #2
PDF
Auto Scaling AWS
PDF
Autoscaling Best Practices
PDF
Building ContinuousIntegration with Virtuozzo DevOps
PDF
Curso Antena3 TV
DOC
China organosilicon industry market demand prospects and investment strategy ...
PPTX
PET scans
DOC
China dredging engineering industry development prospect and investment strat...
TXT
안나수이향수
DOC
China engineering consultation industry development prospects and investment ...
PDF
makkah
How Does Amazon EC2 Auto Scaling Work
Icinga 2 and Puppet - Automate Monitoring
(AWS) Auto Scaling : Evening Session by Amazon and IntelliGrape Software
Docker Demo IBM Impact 2014
Docker Ecosystem: Part IV - Swarm
Docker Ecosystem - Part II - Compose
Docker Ecosystem - Part I - Engine
Docker Ecosystem: Part V - Docker Registry
Docker ecosystem
Blue Chip Tek AWS Connect and Protect Presentation #2
Auto Scaling AWS
Autoscaling Best Practices
Building ContinuousIntegration with Virtuozzo DevOps
Curso Antena3 TV
China organosilicon industry market demand prospects and investment strategy ...
PET scans
China dredging engineering industry development prospect and investment strat...
안나수이향수
China engineering consultation industry development prospects and investment ...
makkah
Ad

Similar to Aws Autoscaling (20)

PDF
Dallas Breakfast Seminar
PDF
Microservices and elastic resource pools with Amazon EC2 Container Service
PDF
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
PPT
Create Secure Test and Dev Environments in the Cloud
PPTX
AWS User Group Hungary - re:Invent review
PDF
20141021 AWS Cloud Taekwon - Startup Best Practices on AWS
PPTX
analytic engine - a common big data computation service on the aws
PDF
AWS Elastic Beanstalk Tutorial | AWS Certification | AWS Tutorial | Edureka
PDF
Build an app on aws for your first 10 million users (2)
PDF
Dos and don'ts in AWS
PPTX
RAG Chatbot using AWS Bedrock and Streamlit Framework
PPSX
Cloud computing-Practical Example
PDF
AWS Interview Questions and Answers.pdf
PDF
AWS Interview Questions and Answers_2023.pdf
PPTX
Create Agile, Automated and Predictable IT Infrastructure in the Cloud
PPTX
NWCloud Cloud Track - Best Practices for Architecting in the Cloud
PPT
Scaling drupal horizontally and in cloud
PPTX
Serverless at Lifestage
PDF
E301 Elastic Beanstalk PaaS
PDF
Ingest, Transform & Visualize w Amazon Web Services
Dallas Breakfast Seminar
Microservices and elastic resource pools with Amazon EC2 Container Service
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
Create Secure Test and Dev Environments in the Cloud
AWS User Group Hungary - re:Invent review
20141021 AWS Cloud Taekwon - Startup Best Practices on AWS
analytic engine - a common big data computation service on the aws
AWS Elastic Beanstalk Tutorial | AWS Certification | AWS Tutorial | Edureka
Build an app on aws for your first 10 million users (2)
Dos and don'ts in AWS
RAG Chatbot using AWS Bedrock and Streamlit Framework
Cloud computing-Practical Example
AWS Interview Questions and Answers.pdf
AWS Interview Questions and Answers_2023.pdf
Create Agile, Automated and Predictable IT Infrastructure in the Cloud
NWCloud Cloud Track - Best Practices for Architecting in the Cloud
Scaling drupal horizontally and in cloud
Serverless at Lifestage
E301 Elastic Beanstalk PaaS
Ingest, Transform & Visualize w Amazon Web Services

More from Kimberly Macias (7)

PDF
Blue Chip Tek/ Rook Security - Cloud Security Connect and Protect
DOCX
AWS VPN with Juniper SRX- Lab Sheet
PPTX
Bct Aws-VPC-Training
PPTX
Vagrant to-aws-flow
PPTX
Blue Chip Tek Connect and Protect Presentation #1
PPTX
Blue Chip Tek Connect and Protect Presentation #3
PPTX
Contrail Basics
Blue Chip Tek/ Rook Security - Cloud Security Connect and Protect
AWS VPN with Juniper SRX- Lab Sheet
Bct Aws-VPC-Training
Vagrant to-aws-flow
Blue Chip Tek Connect and Protect Presentation #1
Blue Chip Tek Connect and Protect Presentation #3
Contrail Basics

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
cuic standard and advanced reporting.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Advanced IT Governance
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Machine learning based COVID-19 study performance prediction
PPT
Teaching material agriculture food technology
PDF
Modernizing your data center with Dell and AMD
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced Soft Computing BINUS July 2025.pdf
PPTX
Big Data Technologies - Introduction.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Dropbox Q2 2025 Financial Results & Investor Presentation
GamePlan Trading System Review: Professional Trader's Honest Take
Diabetes mellitus diagnosis method based random forest with bat algorithm
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
cuic standard and advanced reporting.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Advanced IT Governance
20250228 LYD VKU AI Blended-Learning.pptx
NewMind AI Monthly Chronicles - July 2025
Machine learning based COVID-19 study performance prediction
Teaching material agriculture food technology
Modernizing your data center with Dell and AMD
Chapter 3 Spatial Domain Image Processing.pdf
Advanced Soft Computing BINUS July 2025.pdf
Big Data Technologies - Introduction.pptx

Aws Autoscaling

  • 1. AWS Auto Scaling presented by BlueChipTek web: bluechiptek.com twitter: @bluechiptek phone: 408-731-7700 Copyright 2015 Blue Chip Tek
  • 2. Who am I?  DevOps Engineer and occasional Programmer What experience do I have?  Lyft: ride-sharing startup in San Francisco  NetShelter: multi-region ad-network Certified?  AWS Certified Solutions Architect, number 2564  AWS Certified SysOps, number 224 Projects?  Contributed some cool features to SaltStack project Intro: Colin Johnson Copyright 2015 Blue Chip Tek
  • 3.  Understand use cases for Auto Scaling  Understand benefits and drawbacks of Auto Scaling  Determine if and where Auto Scaling a fit for existing Infrastructure  Implement Auto Scaling! Objectives Copyright 2015 Blue Chip Tek
  • 4. A Quick AWS Introduction (as is relevant to Auto Scaling) Copyright 2015 Blue Chip Tek
  • 5.  Regions:  9 Available Regions (as of April, 2015)  Costs are Different in Each Region (~50% difference between lowest/most expensive EC2 instance)  Use Regions to Meet Availability, Compliance or Performance Requirements  Availability Zones:  Each Availability Zone is Isolated, typically 3-4 AZs per-region  Meet Availability or Scalability Requirements Regions and Availability Zones Copyright 2015 Blue Chip Tek
  • 6. AWS: Global Regions Copyright 2015 Blue Chip Tek
  • 7. Example: Multi-AZ Architecture us-west-2 us-west-2bus-west-2a Internet Load Balancer Multi-AZ Auto Scaling Group Multi-AZ Database Multi-AZ wwwlb-prod01 www-prod01 www-prod01wwwlb-prod01 db-prod01 db-prod01 Mobile Client Client Copyright 2015 Blue Chip Tek
  • 8. Example: Multi-AZ Architecture during Failure Copyright 2015 Blue Chip Tek
  • 9.  March, 2006 – S3 Launched  August, 2006 – EC2 Beta Launched  October, 2007 – EC2 “Large and Extra Large” Instances  March, 2008 – Availability Zones  October, 2008 – EC2 Officially Released  May, 2009 – AWS Console Launched  May, 2009 – Auto Scaling Released  December, 2013 – Auto Scaling added to AWS Console AWS and Auto Scaling: Timeline Copyright 2015 Blue Chip Tek
  • 10.  Provides Elasticity and Scalability  Respond to changes in demand by scaling in/out EC2 servers.  Scale manually, automatically or on schedule  Automatic scaling based on CloudWatch Metrics  Provides Availability  Spreads Instances across Availability Zones  Eliminate outages as result of changes in demand  Terminate and rebuild failed nodes automatically  Cost: “pay for what you need” or utilize “Spot” instances Auto Scaling: Benefits Copyright 2015 Blue Chip Tek
  • 11.  Dynamic infrastructure creates challenges:  Monitoring Tools  Log File Collection and Analysis  Changing IP Addresses/Ranges  Applications saving “State” on Terminated Servers  Applications may require modification to work with Auto Scaling Auto Scaling: Challenges Copyright 2015 Blue Chip Tek
  • 12. AWS Auto Scaling (the Details) Copyright 2015 Blue Chip Tek
  • 13. An Auto Scaling Group has the following attributes:  Min Size  Max Size  Desired Capacity  Health Check Type (EC2 or ELB)  Associated Load Balancers  LaunchConfiguration  Provides Instance Type, AMI ID, User Data Auto Scaling: Attributes Copyright 2015 Blue Chip Tek
  • 14. A Launch Configuration tells an Auto Scaling Group About the Instance to Launch. Example attributes:  ImageID (aka AMI)  InstanceType  KeyName  SecurityGroups  Spot Price  User-Data Auto Scaling: Launch Configuration Copyright 2015 Blue Chip Tek
  • 15.  Tags applied on an “Auto Scaling Group” are also applied to instances  Tag with “Application”, “Environment”, “Owner” to enable reporting and easier AWS Administration  Tags are “Eventually Consistent” for Instances  Create an instance as part of “web-prod01” and the instance may not get that tag immediately Auto Scaling: Tags Copyright 2015 Blue Chip Tek
  • 16.  Auto Scaling is designed to be used with other AWS Services:  Elastic Load Balancing for routing Inbound requests  SQS for dispatching messages/work to ephemeral EC2 Servers  CloudWatch for controlling scale/up events Auto Scaling: Typical Design Copyright 2015 Blue Chip Tek
  • 17. Auto Scaling and ELB Copyright 2015 Blue Chip Tek
  • 18. Auto Scaling and SQS Copyright 2015 Blue Chip Tek
  • 19.  Use CloudFormation to provision Auto Scaling Groups  Auto Scaling Groups are challenging to build manually  Auto Scaling Groups don’t support easy “Launch Configuration” modifications*  Auto Scaling is Integrated with or Used By:  CodeDeploy (for getting code onto instances)  Elastic Load Balancers? Sure seems like it…  Elastic Beanstalk  EC2 Container Service (optional, but recommended) Integration with other AWS Services Copyright 2015 Blue Chip Tek
  • 20. AWS Auto Scaling (Live Demo) Copyright 2015 Blue Chip Tek
  • 21.  Use all Availability Zones  AWS may “deny” the ability to launch an instance in an AZ if over capacity  Ship all data off instances as quickly as possible  Avoid use of Lifecycle Hooks if Possible  Create groups of 1 Instance  If errors arise, terminate instance and rebuild  Over-provision by 1 node until Scaling policy well understood  Keep Auto Scaling Rules Simple Auto Scaling: Best Practices Copyright 2015 Blue Chip Tek

Editor's Notes

  • #6: Regions: Costs: as of April 2015, difference between us-west-2 and sa-east-1 not all Services Available in All Regions: http://aws.amazon.com/about-aws/global-infrastructure/regional-product-services Availability Zones: Availability Zones aid in meeting availability requirements: A majority of AWS failures occur only in one AZ Availability Zones are Isolated from one another (http://aws.amazon.com/ec2/faqs/ - How isolated are Availability Zones from one another?)
  • #8: Slide is a representation of a highly available, multi-AZ architecture. The Load Balancer is run in both the us-west-2a and us-west-2b Availability Zones The Auto Scaling Group is also run in both the us-west-2a and us-west-2b Availability Zones. The Multi-AZ RDS Database runs in both us-west-2a and us-west-2b
  • #9: Slide is a representation of the result of a us-west-2a Failure: The ELB will most likely stop making the IP address(es) of the instances in the us-east-2a availability zone available, at which point clients will begin sending to alternative IP addresses (there are exceptions) The Auto Scaling Group will notice that the capacity of the Auto Scaling Group has dropped from 2 EC2 instances to 1 EC2 instance, and will respond by increasing the number of instances in the us-east-2b availability zone. The RDS instance will failover to the standby node in the us-west-2b availability zone.
  • #10: Reference: http://aws.amazon.com/autoscaling/
  • #11: Reference: http://aws.amazon.com/autoscaling/
  • #20: As far as I know, I built the first tool to do this.