Professional Documents
Culture Documents
SLIIT - 2019 - 05 - Cloud - Auto Scaling
SLIIT - 2019 - 05 - Cloud - Auto Scaling
Keep this group at its initial size: This policy ensures that our
group maintains a number of healthy instances equal to the
initial size: as an instance fail checks it will be replaced.
Use scaling policies to adjust the capacity of this group: This
policy let us choose on which CloudWatch metrics/alarms
increase or decrease our Group size:
We can set the minimum and the maximum number of
instances composing our AS group. CloudWatch alarms can
be easily added after but we’ll add now the one to permit our
group to increase its size as shown below:
Once added the alarm our Increase Group Size policy will
look like this:
We’ll add the scale down policy later, now it’s time to
configure the notifications relative to our group:
The last tab allow us to review and eventually edit our
configuration:
After pressing the Create Auto Scaling Group button we’re
taken to a status screen showing the creation of our
resources. If something fails you’re prompted to retry the
single resource creation.
Once the Auto Scaling group is successfully created we can
select it, go to the Scaling Policies tab and edit the Decrease
Group Size policy to fit our needs:
In our example we’re requesting a scale down when the group
average CPU utilization decreases below the 20% and to
avoid spikes, we consider 3 consecutive periods of 1 minute.
After creating the alarm and saving the changes our Decrease
Group Size policy will look as in the image below:
Our Auto Scaling Group is ready and fully working: It can
scale between 2 and 12 instances using average CPU load.
All traffic passes through an Elastic Load Balancer allowing us
to monitor the global application health too.
● https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGrou
p.html
● https://aws.amazon.com/elasticloadbalancing/
● https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-bala
ncer-types.html
● http://docs.aws.amazon.com/autoscaling/latest/userguide/GettingStartedTu
torial.html
● https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-create
-https-ssl-load-balancer.html