SlideShare a Scribd company logo
All You Need to Know About Auto Scaling
(based on CMP 201 from re:Invent 2015)
Julien Simon
Principal Technical Evangelist
Amazon Web Services
julsimon@amazon.fr
@julsimon
Auto Scaling – Why it’s needed
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Typical weekly traffic to Amazon.com
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Typical weekly traffic to Amazon.com
Provisioned capacity
November
November traffic to Amazon.com
Provisioned capacity
November
November traffic to Amazon.com
November traffic to Amazon.com
76%
24%
Provisioned capacity
November
November traffic to Amazon.com
November
Auto Scaling – The Basics
Auto Scaling Concepts
Launch Configuration
•  Auto Scaling groups
use a launch
configuration to launch
EC2 instances.
•  Provides information
about the AMI and
EC2 instance types/
size
Scaling Policy
•  A scaling policy tells
Auto Scaling when and
how to scale.
•  Create a scaling
policybased on the
occurrence of
specified conditions
(dynamic scaling) or
create a policy based
on a specific schedule.
Auto Scaling Groups
•  EC2 instances are
managed by Auto
Scaling groups.
•  Create Auto Scaling
groups by defining the
minimum, maximum,
and, optionally, the
desired number of
running EC2
instances.
Auto Scaling Groups
-  Always keep minimum number of instances running
-  Launch or terminate instances to meet desired capacity
-  Never start more than maximum number of instances
-  Keeps capacity balanced across AZs
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 4
Availability Zone b
Availability Zone a
Elastic Load
Balancing
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 6
Availability Zone b
Availability Zone a
Elastic Load
Balancing
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 6
instance
instance
Availability Zone b
Availability Zone a
Elastic Load
Balancing
Launch Configurations
Determine what is going to be launched:
-  EC2 instance type & size
-  Amazon Machine Image (AMI)
-  Security groups, SSH keys, IAM instance profile
-  User data
…
Bootstrapping
Installation & setup needs to be fully automated:
-  Use Amazon Machine Image (AMI) with all required
configuration & software (“golden image”)
-  Base AMI + install code & configuration as needed
-  Via Userdata
-  Via Chef/Puppet/Ansible/…
-  Using AWS CodeDeploy
…
Bootstrapping
#!/bin/bash
yum –y update;
yum install –y ruby; yum install –y aws-cli;
cd /home/ec2-user;
aws s3 cp s3://aws-codedeploy-us-east-1/latest/  install . --
region us-east-1;
chmod +x ./install;
./install auto;
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 6
instance
instance
Availability Zone b
Availability Zone a
Elastic Load
Balancing
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 5
instance
instance
Availability Zone b
Availability Zone a
Elastic Load
Balancing
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 5
instance
Availability Zone b
Availability Zone a
Elastic Load
Balancing
Termination Policies
Determine which instances are terminated first:
-  Longest running
-  Oldest launch configuration
-  Closest to full billing hour
But: rebalancing of capacity across AZs takes precedence!
Scaling Policies
Determine when the Auto Scaling group will scale in or out:
desired capacity > current capacity: launch instances
desired capacity < current capacity: terminate instances
Scaling Policies
-  Default: ensure current capacity of healthy instances
remains within boundaries (never less than minimum)
-  ‘Manual scaling’: modify desired capacity (via API,
console, CLI) to trigger a scaling event
-  Scheduled: scale in / out based on timed events
-  Dynamic scaling: scale on Amazon CloudWatch metrics
Integration with
Amazon Elastic Load Balancing
Load Balance your Auto Scaling Group
-  Distribute incoming web traffic automatically.
-  Single point of entry for your application.
-  Sends data about your load balancers and EC2 instances to
Amazon CloudWatch.
-  Use Elastic Load Balancing metrics to scale your application.
-  Use connection draining to wait for the in-flight requests to
complete.
Elastic Load
Balancing
Load Balance your Auto Scaling Group
-  Configure your Auto Scaling Group to work with one or more
Elastic Load Balancers
-  Automatically registers new instances,
deregisters on termination
-  Use ELB health checks in your Auto Scaling Group
-  Use Elastic Load Balancing metrics in scaling policies
Elastic Load
Balancing
Benefits of Auto Scaling
Elasticity:
Automatically adapt
capacity to demand
Availability & Reliability
Health Checks
-  Performed periodically
-  Instances are marked as unhealthy or healthy
-  Unhealthy instances are terminated and replaced
(if new number of instances < minimum or < desired capacity)
Health Checks
-  EC2 instance status:
Instance is unhealthy when instance state != ‘running’
or system health check == ‘impaired’
-  ELB health checks:
instance is unhealthy when ELB health check results in
“OutOfService” (or EC2 health check failed)
-  Manual: mark individual instances as ‘unhealthy’
Instance unhealthy when marked as such or EC2 health check
failed. Use to integrate with external monitoring systems.
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 6
instance
instance
Availability Zone b
Availability Zone a
Elastic Load
Balancing
Unhealthy Instances Get Replaced…
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 6
instance
instance
Availability Zone b
Availability Zone a
Elastic Load
Balancing
Unhealthy Instances Get Replaced…
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 6
instance
instance
Availability Zone b
Availability Zone a
Elastic Load
Balancing
Unhealthy Instances Get Replaced…
instance
 instance
instance
 instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 6
instance
instance
Availability Zone b
Availability Zone a
Elastic Load
Balancing
…In a Different AZ if Necessary
instance
instance
 instance
instance
Auto Scaling group
Minimum = 2 Maximum = 10
Desired # of instances = 6
instance
Availability Zone b
Availability Zone a
instance
Elastic Load
Balancing
Benefits of Auto Scaling
Elastic:
Automatically adapt
capacity to demand
Reliable:
Counteract failures
of instances or AZs
Scaling Policies
Scaling Policies
Can change capacity of the group in 3 different ways:
-  Set fixed capacity, e.g., desired capacity = 4 instances
-  Add / remove fixed number of instances, e.g., + 2
-  Add / remove percentage of existing capacity, e.g. +20%
Can be either manual, scheduled or dynamic
Scheduled Policies Elastic Load
Balancing
Auto Scaling group
Scaling event
cron-like syntax for
recurring scaling
events
Schedule
individual events
(up to 125 events
per month
per group)
Set min / max / desired capacity
Elastic Load
Balancing
Dynamic Scaling Policies
Trigger scaling events based on demand:
-  Demand is measured based on metrics
-  Changes in metrics can be mapped to scaling policies
Amazon CloudWatch
Amazon CloudWatch: A web service that enables you to monitor and
manage various metrics, and configure alarm actions based on data
from those metrics.
A metric is a variable that you want to monitor, e.g., CPU usage or
incoming network traffic.
A CloudWatch alarm is an object that monitors a single metric over a
specific period.
The alarm changes its state when the value of the metric breaches a
defined range and maintains the change for a specified number of
periods.
CloudWatch
Auto Scaling group
Collect metrics
Alarm fires when
threshold is crossed
Amazon CloudWatch can aggregate metrics across pre-defined dimensions, e.g.,
aggregate average CPU utilization of all EC2 instances in an Auto Scaling group.
Auto Scaling
Alarm is
connected to
Auto Scaling
policy
Scaling event is triggered
How Alarms Work
Elastic Load
Balancing
0
20
40
60
80
100
CPU Utilization
CPU Utilization
Evaluation Period(s)Scale Out Cooldown
Alarm Fires
No additional alarms or scaling
actions during this time!
0
20
40
60
80
100
CPU Utilization
CPU Utilization
Alarm Fires (too late?)
Step Scaling Policies
Define multiple steps in the same policy.
The appropriate scaling step is selected based on the value of
the metric that triggered the alarm, i.e., based on the magnitude
of the breach.
Step scaling policies are evaluated continuously.
No locking – alarms keep getting evaluated even while scaling.
Step Scaling Policies
Define multiple steps in the same policy.
The appropriate scaling step is selected based on the value of
the metric, i.e. based on the magnitude of the breach.
Step scaling policies are evaluated continuously.
0
20
40
60
80
100
CPU Utilization
CPU Utilization
Alarm Fires
Simple scaling policies
-  Reaction always the same,
independent of size of breach
-  Locks the Auto Scaling group
when a scaling action is run,
i.e., single event at a time
-  Evaluates metric only when no
scaling action ongoing
-  Cooldown takes effect after
scaling action is complete
Pros & Cons
Step scaling policies
-  Continuously evaluates metrics
-  “Instant” reaction
-  Does not ‘lock’ the Auto
Scaling group while action is
evaluated
-  Cooldown not supported (use
‘warmup’ period instead)
Lifecycle hooks
Why? – Common Use Cases
•  Assign Elastic IP address on launch
•  Register new instances with DNS, message queues,…
•  Pull down log files before instance is terminated
•  Investigate issues with an instance before terminating it
•  …
•  Scaling containers on ECS cluster
Instance lifecycle
Lifecycle hooks
-  Executed before taking a new
instance into service /
terminating it
-  Put instances into a WAIT
state
Lifecycle hook vs notification
Auto Scaling SNS notifications
-  Notifications get sent after an
instance has entered
“InService” or “Terminated”
state, respectively
Lifecycle hooks with SQS / SNS
1.  Create a notification target– either an Amazon SQS
queue, an Amazon SNS topic
2.  Create an IAM role that allows Auto Scaling to access
the notification queue / topic.
3.  Associate the lifecycle hook with the Auto Scaling
group, role and notification target.
4.  Code the lifecycle hook’s action
Benefits of Auto Scaling
Elastic:
Automatically adapt
capacity to demand
Reliable:
Counteract failures
of instances or AZs
Customizable:
With bootstrapping
& lifecycle hooks
DEMODemo gods, I’m your humble servant,
please be good to me
Let’s look at a new way to implement hooks,
launched in January 2016 : CloudWatch Events
Write a Lambda function printing lifecycle events
Create a CloudWatch event rule
Connect it to the Lamba function
Trigger Auto Scaling activity
Fetch events from CloudWatch Logs
…and learn some CLI on the way ;)
Lifecycle hooks with CloudWatch Events (1)
Write a Lambda function
console.log('Loading function');
exports.handler = function(event, context {
console.log("AutoScalingEvent");
console.log("Event data:n" + JSON.stringify(event, null, 4));
context.succeed("...");
};
Lifecycle hooks with CloudWatch Events (2)
In CloudWatch Events, create a rule to route auto scaling
events to your Lambda function
•  Select event types
•  Select auto scaling groups
Events will be logged to the CloudWatch log group of your
Lambda function (created automatically when the function
is invoked)
Event rule
{
"source": [
"aws.autoscaling"
],
"detail-type": [
"EC2 Instance Launch Successful",
"EC2 Instance Terminate Successful",
"EC2 Instance Launch Unsuccessful",
"EC2 Instance Terminate Unsuccessful",
"EC2 Instance-launch Lifecycle Action",
"EC2 Instance-terminate Lifecycle Action"
]
}
Putting it all together
% aws lambda get-function --function-name autoscalingFunction
--query "Configuration.FunctionArn”
% aws events put-rule --name autoscalingRule --event-pattern file://autoscalingRule.json
--state ENABLED
% aws events put-targets --rule autoscalingRule --targets Id=1,Arn=FUNCTION_ARN
% aws lambda add-permission --function-name autoscalingFunction --statement-id 1
--action 'lambda:InvokeFunction' --principal events.amazonaws.com --source-arn RULE_ARN
<Start some Auto Scaling activity>
% aws logs describe-log-streams --log-group-name /aws/lambda/autoscalingFunction
--query "logStreams[].logStreamName”
% aws logs get-log-events --log-stream-name LOG_STREAM_NAME
--log-group-name /aws/lambda/autoscalingFunction
Julien Simon
Principal Technical Evangelist, AWS
julsimon@amazon.fr
@julsimon

More Related Content

What's hot

Introducing AWS Fargate
Introducing AWS FargateIntroducing AWS Fargate
Introducing AWS Fargate
Amazon Web Services
 
Introduction to AWS Organizations
Introduction to AWS OrganizationsIntroduction to AWS Organizations
Introduction to AWS Organizations
Amazon Web Services
 
다양한 배포 기법과 AWS에서 구축하는 CI/CD 파이프라인 l 안효빈 솔루션즈 아키텍트
다양한 배포 기법과 AWS에서 구축하는 CI/CD 파이프라인 l 안효빈 솔루션즈 아키텍트다양한 배포 기법과 AWS에서 구축하는 CI/CD 파이프라인 l 안효빈 솔루션즈 아키텍트
다양한 배포 기법과 AWS에서 구축하는 CI/CD 파이프라인 l 안효빈 솔루션즈 아키텍트
Amazon Web Services Korea
 
Aws organizations
Aws organizationsAws organizations
Aws organizations
Olaf Conijn
 
Introduction to AWS Step Functions:
Introduction to AWS Step Functions: Introduction to AWS Step Functions:
Introduction to AWS Step Functions:
Amazon Web Services
 
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
Amazon Web Services Korea
 
AWS Security Best Practices and Design Patterns
AWS Security Best Practices and Design PatternsAWS Security Best Practices and Design Patterns
AWS Security Best Practices and Design Patterns
Amazon Web Services
 
Intro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesIntro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute Services
Amazon Web Services
 
An introduction to AWS CloudFormation - Pop-up Loft Tel Aviv
An introduction to AWS CloudFormation - Pop-up Loft Tel AvivAn introduction to AWS CloudFormation - Pop-up Loft Tel Aviv
An introduction to AWS CloudFormation - Pop-up Loft Tel Aviv
Amazon Web Services
 
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
Amazon Web Services Korea
 
고급 클라우드 아키텍처 방법론- 양승도 솔루션즈 아키텍트:: AWS Cloud Track 2 Advanced
고급 클라우드 아키텍처 방법론- 양승도 솔루션즈 아키텍트:: AWS Cloud Track 2 Advanced고급 클라우드 아키텍처 방법론- 양승도 솔루션즈 아키텍트:: AWS Cloud Track 2 Advanced
고급 클라우드 아키텍처 방법론- 양승도 솔루션즈 아키텍트:: AWS Cloud Track 2 Advanced
Amazon Web Services Korea
 
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingCloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Amazon Web Services Korea
 
Deploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerDeploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control Tower
Amazon Web Services
 
Secure Virtual Private Cloud(VPC)를 활용한 보안성 강화와 비용절감 - 안경진 부장, 포티넷 코리아 :: AWS ...
Secure Virtual Private Cloud(VPC)를 활용한 보안성 강화와 비용절감 - 안경진 부장, 포티넷 코리아 :: AWS ...Secure Virtual Private Cloud(VPC)를 활용한 보안성 강화와 비용절감 - 안경진 부장, 포티넷 코리아 :: AWS ...
Secure Virtual Private Cloud(VPC)를 활용한 보안성 강화와 비용절감 - 안경진 부장, 포티넷 코리아 :: AWS ...
Amazon Web Services Korea
 
대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션 - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션  - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션  - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션 - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
Amazon Web Services Korea
 
Introducing AWS Elastic Beanstalk
Introducing AWS Elastic BeanstalkIntroducing AWS Elastic Beanstalk
Introducing AWS Elastic Beanstalk
Amazon Web Services
 
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
Amazon Web Services
 
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Amazon Web Services
 
KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...
KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...
KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...
Amazon Web Services Korea
 
AWS Black Belt Online Seminar 2017 AWS X-Ray
AWS Black Belt Online Seminar 2017 AWS X-RayAWS Black Belt Online Seminar 2017 AWS X-Ray
AWS Black Belt Online Seminar 2017 AWS X-Ray
Amazon Web Services Japan
 

What's hot (20)

Introducing AWS Fargate
Introducing AWS FargateIntroducing AWS Fargate
Introducing AWS Fargate
 
Introduction to AWS Organizations
Introduction to AWS OrganizationsIntroduction to AWS Organizations
Introduction to AWS Organizations
 
다양한 배포 기법과 AWS에서 구축하는 CI/CD 파이프라인 l 안효빈 솔루션즈 아키텍트
다양한 배포 기법과 AWS에서 구축하는 CI/CD 파이프라인 l 안효빈 솔루션즈 아키텍트다양한 배포 기법과 AWS에서 구축하는 CI/CD 파이프라인 l 안효빈 솔루션즈 아키텍트
다양한 배포 기법과 AWS에서 구축하는 CI/CD 파이프라인 l 안효빈 솔루션즈 아키텍트
 
Aws organizations
Aws organizationsAws organizations
Aws organizations
 
Introduction to AWS Step Functions:
Introduction to AWS Step Functions: Introduction to AWS Step Functions:
Introduction to AWS Step Functions:
 
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
 
AWS Security Best Practices and Design Patterns
AWS Security Best Practices and Design PatternsAWS Security Best Practices and Design Patterns
AWS Security Best Practices and Design Patterns
 
Intro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesIntro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute Services
 
An introduction to AWS CloudFormation - Pop-up Loft Tel Aviv
An introduction to AWS CloudFormation - Pop-up Loft Tel AvivAn introduction to AWS CloudFormation - Pop-up Loft Tel Aviv
An introduction to AWS CloudFormation - Pop-up Loft Tel Aviv
 
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
 
고급 클라우드 아키텍처 방법론- 양승도 솔루션즈 아키텍트:: AWS Cloud Track 2 Advanced
고급 클라우드 아키텍처 방법론- 양승도 솔루션즈 아키텍트:: AWS Cloud Track 2 Advanced고급 클라우드 아키텍처 방법론- 양승도 솔루션즈 아키텍트:: AWS Cloud Track 2 Advanced
고급 클라우드 아키텍처 방법론- 양승도 솔루션즈 아키텍트:: AWS Cloud Track 2 Advanced
 
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingCloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
 
Deploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerDeploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control Tower
 
Secure Virtual Private Cloud(VPC)를 활용한 보안성 강화와 비용절감 - 안경진 부장, 포티넷 코리아 :: AWS ...
Secure Virtual Private Cloud(VPC)를 활용한 보안성 강화와 비용절감 - 안경진 부장, 포티넷 코리아 :: AWS ...Secure Virtual Private Cloud(VPC)를 활용한 보안성 강화와 비용절감 - 안경진 부장, 포티넷 코리아 :: AWS ...
Secure Virtual Private Cloud(VPC)를 활용한 보안성 강화와 비용절감 - 안경진 부장, 포티넷 코리아 :: AWS ...
 
대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션 - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션  - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션  - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션 - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
 
Introducing AWS Elastic Beanstalk
Introducing AWS Elastic BeanstalkIntroducing AWS Elastic Beanstalk
Introducing AWS Elastic Beanstalk
 
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
 
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
 
KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...
KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...
KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...
 
AWS Black Belt Online Seminar 2017 AWS X-Ray
AWS Black Belt Online Seminar 2017 AWS X-RayAWS Black Belt Online Seminar 2017 AWS X-Ray
AWS Black Belt Online Seminar 2017 AWS X-Ray
 

Viewers also liked

How I learned to stop worrying and love the cloud
How I learned to stop worrying and love the cloudHow I learned to stop worrying and love the cloud
How I learned to stop worrying and love the cloud
Shlomo Swidler
 
Analytics on AWS:Structured, Unstructured and Streaming
Analytics on AWS:Structured, Unstructured and StreamingAnalytics on AWS:Structured, Unstructured and Streaming
Analytics on AWS:Structured, Unstructured and Streaming
Amazon Web Services
 
Highly secure content delivery at global scale with amazon cloudfront
Highly secure content delivery at global scale with amazon cloudfrontHighly secure content delivery at global scale with amazon cloudfront
Highly secure content delivery at global scale with amazon cloudfront
Amazon Web Services
 
February 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration ServiceFebruary 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration Service
Amazon Web Services
 
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
Amazon Web Services
 
Amazon RDS Deep Dive
Amazon RDS Deep DiveAmazon RDS Deep Dive
Amazon RDS Deep Dive
Amazon Web Services
 
DDoS Resiliency
DDoS ResiliencyDDoS Resiliency
DDoS Resiliency
Amazon Web Services
 
Best Practices in PHP Application Deployment
Best Practices in PHP Application DeploymentBest Practices in PHP Application Deployment
Best Practices in PHP Application Deployment
Shahar Evron
 
Architecting a 24x7 Live Linear Broadcast for Availability on AWS
Architecting a 24x7 Live Linear Broadcast for Availability on AWSArchitecting a 24x7 Live Linear Broadcast for Availability on AWS
Architecting a 24x7 Live Linear Broadcast for Availability on AWS
Amazon Web Services
 
(SOV202) Choosing Among AWS Managed Database Services | AWS re:Invent 2014
(SOV202) Choosing Among AWS Managed Database Services | AWS re:Invent 2014(SOV202) Choosing Among AWS Managed Database Services | AWS re:Invent 2014
(SOV202) Choosing Among AWS Managed Database Services | AWS re:Invent 2014
Amazon Web Services
 
AWS Tech Summit - Berlin 2011 - Choosing and Running Databases on AWS
AWS Tech Summit - Berlin 2011 - Choosing and Running Databases on AWSAWS Tech Summit - Berlin 2011 - Choosing and Running Databases on AWS
AWS Tech Summit - Berlin 2011 - Choosing and Running Databases on AWS
Amazon Web Services
 
AWS Summit 2011: Data Storage Solutions in the AWS Cloud
AWS Summit 2011: Data Storage Solutions in the AWS CloudAWS Summit 2011: Data Storage Solutions in the AWS Cloud
AWS Summit 2011: Data Storage Solutions in the AWS Cloud
Amazon Web Services
 
(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWS(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWS
Amazon Web Services
 
Towards True Elasticity of Spark-(Michael Le and Min Li, IBM)
Towards True Elasticity of Spark-(Michael Le and Min Li, IBM)Towards True Elasticity of Spark-(Michael Le and Min Li, IBM)
Towards True Elasticity of Spark-(Michael Le and Min Li, IBM)
Spark Summit
 
Auto Scaling Systems With Elastic Spark Streaming: Spark Summit East talk by ...
Auto Scaling Systems With Elastic Spark Streaming: Spark Summit East talk by ...Auto Scaling Systems With Elastic Spark Streaming: Spark Summit East talk by ...
Auto Scaling Systems With Elastic Spark Streaming: Spark Summit East talk by ...
Spark Summit
 
Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to process Aut...
Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to process Aut...Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to process Aut...
Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to process Aut...
Amazon Web Services
 
Jump Start your First Hour with AWS
Jump Start your First Hour with AWSJump Start your First Hour with AWS
Jump Start your First Hour with AWS
Amazon Web Services
 
AWS Future Building Blocks - Werner Vogels - berlin 2010
AWS Future Building Blocks - Werner Vogels - berlin 2010AWS Future Building Blocks - Werner Vogels - berlin 2010
AWS Future Building Blocks - Werner Vogels - berlin 2010Amazon Web Services
 
Globus Genomics: How Science-as-a-Service is Accelerating Discovery (BDT310) ...
Globus Genomics: How Science-as-a-Service is Accelerating Discovery (BDT310) ...Globus Genomics: How Science-as-a-Service is Accelerating Discovery (BDT310) ...
Globus Genomics: How Science-as-a-Service is Accelerating Discovery (BDT310) ...
Amazon Web Services
 
What's New
What's NewWhat's New

Viewers also liked (20)

How I learned to stop worrying and love the cloud
How I learned to stop worrying and love the cloudHow I learned to stop worrying and love the cloud
How I learned to stop worrying and love the cloud
 
Analytics on AWS:Structured, Unstructured and Streaming
Analytics on AWS:Structured, Unstructured and StreamingAnalytics on AWS:Structured, Unstructured and Streaming
Analytics on AWS:Structured, Unstructured and Streaming
 
Highly secure content delivery at global scale with amazon cloudfront
Highly secure content delivery at global scale with amazon cloudfrontHighly secure content delivery at global scale with amazon cloudfront
Highly secure content delivery at global scale with amazon cloudfront
 
February 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration ServiceFebruary 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration Service
 
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
 
Amazon RDS Deep Dive
Amazon RDS Deep DiveAmazon RDS Deep Dive
Amazon RDS Deep Dive
 
DDoS Resiliency
DDoS ResiliencyDDoS Resiliency
DDoS Resiliency
 
Best Practices in PHP Application Deployment
Best Practices in PHP Application DeploymentBest Practices in PHP Application Deployment
Best Practices in PHP Application Deployment
 
Architecting a 24x7 Live Linear Broadcast for Availability on AWS
Architecting a 24x7 Live Linear Broadcast for Availability on AWSArchitecting a 24x7 Live Linear Broadcast for Availability on AWS
Architecting a 24x7 Live Linear Broadcast for Availability on AWS
 
(SOV202) Choosing Among AWS Managed Database Services | AWS re:Invent 2014
(SOV202) Choosing Among AWS Managed Database Services | AWS re:Invent 2014(SOV202) Choosing Among AWS Managed Database Services | AWS re:Invent 2014
(SOV202) Choosing Among AWS Managed Database Services | AWS re:Invent 2014
 
AWS Tech Summit - Berlin 2011 - Choosing and Running Databases on AWS
AWS Tech Summit - Berlin 2011 - Choosing and Running Databases on AWSAWS Tech Summit - Berlin 2011 - Choosing and Running Databases on AWS
AWS Tech Summit - Berlin 2011 - Choosing and Running Databases on AWS
 
AWS Summit 2011: Data Storage Solutions in the AWS Cloud
AWS Summit 2011: Data Storage Solutions in the AWS CloudAWS Summit 2011: Data Storage Solutions in the AWS Cloud
AWS Summit 2011: Data Storage Solutions in the AWS Cloud
 
(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWS(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWS
 
Towards True Elasticity of Spark-(Michael Le and Min Li, IBM)
Towards True Elasticity of Spark-(Michael Le and Min Li, IBM)Towards True Elasticity of Spark-(Michael Le and Min Li, IBM)
Towards True Elasticity of Spark-(Michael Le and Min Li, IBM)
 
Auto Scaling Systems With Elastic Spark Streaming: Spark Summit East talk by ...
Auto Scaling Systems With Elastic Spark Streaming: Spark Summit East talk by ...Auto Scaling Systems With Elastic Spark Streaming: Spark Summit East talk by ...
Auto Scaling Systems With Elastic Spark Streaming: Spark Summit East talk by ...
 
Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to process Aut...
Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to process Aut...Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to process Aut...
Using Amazon CloudWatch Events, AWS Lambda and Spark Streaming to process Aut...
 
Jump Start your First Hour with AWS
Jump Start your First Hour with AWSJump Start your First Hour with AWS
Jump Start your First Hour with AWS
 
AWS Future Building Blocks - Werner Vogels - berlin 2010
AWS Future Building Blocks - Werner Vogels - berlin 2010AWS Future Building Blocks - Werner Vogels - berlin 2010
AWS Future Building Blocks - Werner Vogels - berlin 2010
 
Globus Genomics: How Science-as-a-Service is Accelerating Discovery (BDT310) ...
Globus Genomics: How Science-as-a-Service is Accelerating Discovery (BDT310) ...Globus Genomics: How Science-as-a-Service is Accelerating Discovery (BDT310) ...
Globus Genomics: How Science-as-a-Service is Accelerating Discovery (BDT310) ...
 
What's New
What's NewWhat's New
What's New
 

Similar to All you need to know about Auto scaling - Pop-up Loft

Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Amazon Web Services
 
AWS AutoScaling
AWS AutoScalingAWS AutoScaling
AWS AutoScaling
Mahesh Raj
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
Amazon Web Services
 
Using AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial Infrastructure
Using AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial InfrastructureUsing AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial Infrastructure
Using AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial Infrastructure
Christopher Drumgoole
 
How Does Amazon EC2 Auto Scaling Work
How Does Amazon EC2 Auto Scaling WorkHow Does Amazon EC2 Auto Scaling Work
How Does Amazon EC2 Auto Scaling Work
Intelligentia IT Systems Pvt. Ltd.
 
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
Amazon Web Services Korea
 
Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency
Amazon Web Services
 
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
Amazon Web Services
 
Leveraging elastic web scale computing with AWS
 Leveraging elastic web scale computing with AWS Leveraging elastic web scale computing with AWS
Leveraging elastic web scale computing with AWS
Shiva Narayanaswamy
 
AWS Public Sector Symposium 2014 Canberra | Managing Seasonal Workloads on AWS
AWS Public Sector Symposium 2014 Canberra | Managing Seasonal Workloads on AWS AWS Public Sector Symposium 2014 Canberra | Managing Seasonal Workloads on AWS
AWS Public Sector Symposium 2014 Canberra | Managing Seasonal Workloads on AWS
Amazon Web Services
 
Automate Best Practices and Operational Health for your AWS resources
Automate Best Practices and Operational Health for your AWS resourcesAutomate Best Practices and Operational Health for your AWS resources
Automate Best Practices and Operational Health for your AWS resources
Amazon Web Services
 
Cost Optimisation at Scale - Business
Cost Optimisation at Scale - BusinessCost Optimisation at Scale - Business
Cost Optimisation at Scale - Business
Amazon Web Services
 
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
Amazon Web Services
 
Cloud Economics
Cloud EconomicsCloud Economics
Cloud Economics
Amazon Web Services
 
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
Amazon Web Services
 
Black Belt Dojo - Daniel Hand - AWS Summit 2012 Australia
Black Belt Dojo - Daniel Hand - AWS Summit 2012 Australia Black Belt Dojo - Daniel Hand - AWS Summit 2012 Australia
Black Belt Dojo - Daniel Hand - AWS Summit 2012 Australia
Amazon Web Services
 
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Amazon Web Services
 
AutoScaling and Drupal
AutoScaling and DrupalAutoScaling and Drupal
AutoScaling and Drupal
Promet Source
 
Tech Talk: Autoscaling with Amazon Web Services
Tech Talk: Autoscaling with Amazon Web ServicesTech Talk: Autoscaling with Amazon Web Services
Tech Talk: Autoscaling with Amazon Web Services
Ideyatech
 
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
Simplilearn
 

Similar to All you need to know about Auto scaling - Pop-up Loft (20)

Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
 
AWS AutoScaling
AWS AutoScalingAWS AutoScaling
AWS AutoScaling
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
 
Using AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial Infrastructure
Using AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial InfrastructureUsing AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial Infrastructure
Using AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial Infrastructure
 
How Does Amazon EC2 Auto Scaling Work
How Does Amazon EC2 Auto Scaling WorkHow Does Amazon EC2 Auto Scaling Work
How Does Amazon EC2 Auto Scaling Work
 
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
 
Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency
 
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
 
Leveraging elastic web scale computing with AWS
 Leveraging elastic web scale computing with AWS Leveraging elastic web scale computing with AWS
Leveraging elastic web scale computing with AWS
 
AWS Public Sector Symposium 2014 Canberra | Managing Seasonal Workloads on AWS
AWS Public Sector Symposium 2014 Canberra | Managing Seasonal Workloads on AWS AWS Public Sector Symposium 2014 Canberra | Managing Seasonal Workloads on AWS
AWS Public Sector Symposium 2014 Canberra | Managing Seasonal Workloads on AWS
 
Automate Best Practices and Operational Health for your AWS resources
Automate Best Practices and Operational Health for your AWS resourcesAutomate Best Practices and Operational Health for your AWS resources
Automate Best Practices and Operational Health for your AWS resources
 
Cost Optimisation at Scale - Business
Cost Optimisation at Scale - BusinessCost Optimisation at Scale - Business
Cost Optimisation at Scale - Business
 
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
 
Cloud Economics
Cloud EconomicsCloud Economics
Cloud Economics
 
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
 
Black Belt Dojo - Daniel Hand - AWS Summit 2012 Australia
Black Belt Dojo - Daniel Hand - AWS Summit 2012 Australia Black Belt Dojo - Daniel Hand - AWS Summit 2012 Australia
Black Belt Dojo - Daniel Hand - AWS Summit 2012 Australia
 
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
 
AutoScaling and Drupal
AutoScaling and DrupalAutoScaling and Drupal
AutoScaling and Drupal
 
Tech Talk: Autoscaling with Amazon Web Services
Tech Talk: Autoscaling with Amazon Web ServicesTech Talk: Autoscaling with Amazon Web Services
Tech Talk: Autoscaling with Amazon Web Services
 
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
Amazon Web Services
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
Amazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Amazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
Amazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Amazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Recently uploaded

Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
Data Hops
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 

Recently uploaded (20)

Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 

All you need to know about Auto scaling - Pop-up Loft

  • 1. All You Need to Know About Auto Scaling (based on CMP 201 from re:Invent 2015) Julien Simon Principal Technical Evangelist Amazon Web Services julsimon@amazon.fr @julsimon
  • 2. Auto Scaling – Why it’s needed
  • 3. Sunday Monday Tuesday Wednesday Thursday Friday Saturday Typical weekly traffic to Amazon.com
  • 4. Sunday Monday Tuesday Wednesday Thursday Friday Saturday Typical weekly traffic to Amazon.com Provisioned capacity
  • 7. November traffic to Amazon.com 76% 24% Provisioned capacity November
  • 8. November traffic to Amazon.com November
  • 9. Auto Scaling – The Basics
  • 10. Auto Scaling Concepts Launch Configuration •  Auto Scaling groups use a launch configuration to launch EC2 instances. •  Provides information about the AMI and EC2 instance types/ size Scaling Policy •  A scaling policy tells Auto Scaling when and how to scale. •  Create a scaling policybased on the occurrence of specified conditions (dynamic scaling) or create a policy based on a specific schedule. Auto Scaling Groups •  EC2 instances are managed by Auto Scaling groups. •  Create Auto Scaling groups by defining the minimum, maximum, and, optionally, the desired number of running EC2 instances.
  • 11. Auto Scaling Groups -  Always keep minimum number of instances running -  Launch or terminate instances to meet desired capacity -  Never start more than maximum number of instances -  Keeps capacity balanced across AZs
  • 12. instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 4 Availability Zone b Availability Zone a Elastic Load Balancing
  • 13. instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 6 Availability Zone b Availability Zone a Elastic Load Balancing
  • 14. instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 6 instance instance Availability Zone b Availability Zone a Elastic Load Balancing
  • 15. Launch Configurations Determine what is going to be launched: -  EC2 instance type & size -  Amazon Machine Image (AMI) -  Security groups, SSH keys, IAM instance profile -  User data …
  • 16. Bootstrapping Installation & setup needs to be fully automated: -  Use Amazon Machine Image (AMI) with all required configuration & software (“golden image”) -  Base AMI + install code & configuration as needed -  Via Userdata -  Via Chef/Puppet/Ansible/… -  Using AWS CodeDeploy …
  • 17. Bootstrapping #!/bin/bash yum –y update; yum install –y ruby; yum install –y aws-cli; cd /home/ec2-user; aws s3 cp s3://aws-codedeploy-us-east-1/latest/ install . -- region us-east-1; chmod +x ./install; ./install auto;
  • 18. instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 6 instance instance Availability Zone b Availability Zone a Elastic Load Balancing
  • 19. instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 5 instance instance Availability Zone b Availability Zone a Elastic Load Balancing
  • 20. instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 5 instance Availability Zone b Availability Zone a Elastic Load Balancing
  • 21. Termination Policies Determine which instances are terminated first: -  Longest running -  Oldest launch configuration -  Closest to full billing hour But: rebalancing of capacity across AZs takes precedence!
  • 22. Scaling Policies Determine when the Auto Scaling group will scale in or out: desired capacity > current capacity: launch instances desired capacity < current capacity: terminate instances
  • 23. Scaling Policies -  Default: ensure current capacity of healthy instances remains within boundaries (never less than minimum) -  ‘Manual scaling’: modify desired capacity (via API, console, CLI) to trigger a scaling event -  Scheduled: scale in / out based on timed events -  Dynamic scaling: scale on Amazon CloudWatch metrics
  • 25. Load Balance your Auto Scaling Group -  Distribute incoming web traffic automatically. -  Single point of entry for your application. -  Sends data about your load balancers and EC2 instances to Amazon CloudWatch. -  Use Elastic Load Balancing metrics to scale your application. -  Use connection draining to wait for the in-flight requests to complete. Elastic Load Balancing
  • 26. Load Balance your Auto Scaling Group -  Configure your Auto Scaling Group to work with one or more Elastic Load Balancers -  Automatically registers new instances, deregisters on termination -  Use ELB health checks in your Auto Scaling Group -  Use Elastic Load Balancing metrics in scaling policies Elastic Load Balancing
  • 27. Benefits of Auto Scaling Elasticity: Automatically adapt capacity to demand
  • 29. Health Checks -  Performed periodically -  Instances are marked as unhealthy or healthy -  Unhealthy instances are terminated and replaced (if new number of instances < minimum or < desired capacity)
  • 30. Health Checks -  EC2 instance status: Instance is unhealthy when instance state != ‘running’ or system health check == ‘impaired’ -  ELB health checks: instance is unhealthy when ELB health check results in “OutOfService” (or EC2 health check failed) -  Manual: mark individual instances as ‘unhealthy’ Instance unhealthy when marked as such or EC2 health check failed. Use to integrate with external monitoring systems.
  • 31. instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 6 instance instance Availability Zone b Availability Zone a Elastic Load Balancing
  • 32. Unhealthy Instances Get Replaced… instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 6 instance instance Availability Zone b Availability Zone a Elastic Load Balancing
  • 33. Unhealthy Instances Get Replaced… instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 6 instance instance Availability Zone b Availability Zone a Elastic Load Balancing
  • 34. Unhealthy Instances Get Replaced… instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 6 instance instance Availability Zone b Availability Zone a Elastic Load Balancing
  • 35. …In a Different AZ if Necessary instance instance instance instance Auto Scaling group Minimum = 2 Maximum = 10 Desired # of instances = 6 instance Availability Zone b Availability Zone a instance Elastic Load Balancing
  • 36. Benefits of Auto Scaling Elastic: Automatically adapt capacity to demand Reliable: Counteract failures of instances or AZs
  • 38. Scaling Policies Can change capacity of the group in 3 different ways: -  Set fixed capacity, e.g., desired capacity = 4 instances -  Add / remove fixed number of instances, e.g., + 2 -  Add / remove percentage of existing capacity, e.g. +20% Can be either manual, scheduled or dynamic
  • 39. Scheduled Policies Elastic Load Balancing Auto Scaling group Scaling event cron-like syntax for recurring scaling events Schedule individual events (up to 125 events per month per group) Set min / max / desired capacity Elastic Load Balancing
  • 40. Dynamic Scaling Policies Trigger scaling events based on demand: -  Demand is measured based on metrics -  Changes in metrics can be mapped to scaling policies
  • 41. Amazon CloudWatch Amazon CloudWatch: A web service that enables you to monitor and manage various metrics, and configure alarm actions based on data from those metrics. A metric is a variable that you want to monitor, e.g., CPU usage or incoming network traffic. A CloudWatch alarm is an object that monitors a single metric over a specific period. The alarm changes its state when the value of the metric breaches a defined range and maintains the change for a specified number of periods. CloudWatch
  • 42. Auto Scaling group Collect metrics Alarm fires when threshold is crossed Amazon CloudWatch can aggregate metrics across pre-defined dimensions, e.g., aggregate average CPU utilization of all EC2 instances in an Auto Scaling group. Auto Scaling Alarm is connected to Auto Scaling policy Scaling event is triggered How Alarms Work Elastic Load Balancing
  • 43. 0 20 40 60 80 100 CPU Utilization CPU Utilization Evaluation Period(s)Scale Out Cooldown Alarm Fires No additional alarms or scaling actions during this time!
  • 45. Step Scaling Policies Define multiple steps in the same policy. The appropriate scaling step is selected based on the value of the metric that triggered the alarm, i.e., based on the magnitude of the breach. Step scaling policies are evaluated continuously. No locking – alarms keep getting evaluated even while scaling.
  • 46. Step Scaling Policies Define multiple steps in the same policy. The appropriate scaling step is selected based on the value of the metric, i.e. based on the magnitude of the breach. Step scaling policies are evaluated continuously.
  • 48. Simple scaling policies -  Reaction always the same, independent of size of breach -  Locks the Auto Scaling group when a scaling action is run, i.e., single event at a time -  Evaluates metric only when no scaling action ongoing -  Cooldown takes effect after scaling action is complete Pros & Cons Step scaling policies -  Continuously evaluates metrics -  “Instant” reaction -  Does not ‘lock’ the Auto Scaling group while action is evaluated -  Cooldown not supported (use ‘warmup’ period instead)
  • 50. Why? – Common Use Cases •  Assign Elastic IP address on launch •  Register new instances with DNS, message queues,… •  Pull down log files before instance is terminated •  Investigate issues with an instance before terminating it •  … •  Scaling containers on ECS cluster
  • 52. Lifecycle hooks -  Executed before taking a new instance into service / terminating it -  Put instances into a WAIT state Lifecycle hook vs notification Auto Scaling SNS notifications -  Notifications get sent after an instance has entered “InService” or “Terminated” state, respectively
  • 53. Lifecycle hooks with SQS / SNS 1.  Create a notification target– either an Amazon SQS queue, an Amazon SNS topic 2.  Create an IAM role that allows Auto Scaling to access the notification queue / topic. 3.  Associate the lifecycle hook with the Auto Scaling group, role and notification target. 4.  Code the lifecycle hook’s action
  • 54. Benefits of Auto Scaling Elastic: Automatically adapt capacity to demand Reliable: Counteract failures of instances or AZs Customizable: With bootstrapping & lifecycle hooks
  • 55. DEMODemo gods, I’m your humble servant, please be good to me Let’s look at a new way to implement hooks, launched in January 2016 : CloudWatch Events Write a Lambda function printing lifecycle events Create a CloudWatch event rule Connect it to the Lamba function Trigger Auto Scaling activity Fetch events from CloudWatch Logs …and learn some CLI on the way ;)
  • 56. Lifecycle hooks with CloudWatch Events (1) Write a Lambda function console.log('Loading function'); exports.handler = function(event, context { console.log("AutoScalingEvent"); console.log("Event data:n" + JSON.stringify(event, null, 4)); context.succeed("..."); };
  • 57. Lifecycle hooks with CloudWatch Events (2) In CloudWatch Events, create a rule to route auto scaling events to your Lambda function •  Select event types •  Select auto scaling groups Events will be logged to the CloudWatch log group of your Lambda function (created automatically when the function is invoked)
  • 58. Event rule { "source": [ "aws.autoscaling" ], "detail-type": [ "EC2 Instance Launch Successful", "EC2 Instance Terminate Successful", "EC2 Instance Launch Unsuccessful", "EC2 Instance Terminate Unsuccessful", "EC2 Instance-launch Lifecycle Action", "EC2 Instance-terminate Lifecycle Action" ] }
  • 59. Putting it all together % aws lambda get-function --function-name autoscalingFunction --query "Configuration.FunctionArn” % aws events put-rule --name autoscalingRule --event-pattern file://autoscalingRule.json --state ENABLED % aws events put-targets --rule autoscalingRule --targets Id=1,Arn=FUNCTION_ARN % aws lambda add-permission --function-name autoscalingFunction --statement-id 1 --action 'lambda:InvokeFunction' --principal events.amazonaws.com --source-arn RULE_ARN <Start some Auto Scaling activity> % aws logs describe-log-streams --log-group-name /aws/lambda/autoscalingFunction --query "logStreams[].logStreamName” % aws logs get-log-events --log-stream-name LOG_STREAM_NAME --log-group-name /aws/lambda/autoscalingFunction
  • 60. Julien Simon Principal Technical Evangelist, AWS julsimon@amazon.fr @julsimon