Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between AWS ASG Cooldown Period and health check grace period?

AWS Autoscaling has 2 concepts:

  • Cooldown period: From AWS documentation: the cooldown period helps to ensure that your Auto Scaling group doesn't launch or terminate additional instances before the previous scaling activity takes effect. You can configure the length of time based on your instance warmup period or other application needs. Details are here.
  • Health check grace period: From AWS documentation: frequently, an Auto Scaling instance that has just come into service needs to warm up before it can pass the health check. Amazon EC2 Auto Scaling waits until the health check grace period ends before checking the health status of the instance. Details are here.

But I can't figure out the difference between them. Can somebody help?

Thanks in advance.

like image 263
krishna_mee2004 Avatar asked Mar 31 '19 15:03

krishna_mee2004


People also ask

What is cooldown period in ASG?

By default, this cooldown period is set to 300 seconds (5 minutes). If needed, you can update this after the group is created. To change the default cooldown period (console) After creating the Auto Scaling group, on the Details tab, choose Advanced configurations, Edit.

What is health Check grace period in AWS?

In the console, by default, the health check grace period is 300 seconds when you create an Auto Scaling group. Its default value is 0 seconds when you create an Auto Scaling group using the AWS CLI or an SDK.

What is Auto Scaling cooldown?

Cooldown period: From AWS documentation: the cooldown period helps to ensure that your Auto Scaling group doesn't launch or terminate additional instances before the previous scaling activity takes effect. You can configure the length of time based on your instance warmup period or other application needs.

What is cooldown period?

A cooldown period specifies how long any alarm-triggered scaling action will be disallowed after a previous scaling action is complete. This cooldown period does not work for scheduled or periodic scaling actions.


1 Answers

A few differences to consider:

The cooldown period is scoped to an auto-scaling action; if that action launches 3 instances, the cooldown period starts when the last instance is ready. Health check grace periods are scoped to an individual instance.

Auto-scaling cooldowns can be applied to many different auto-scaling policies, such as policies for when things scale in. You can delay the termination of additional instances for a set period time. Health check grace periods are only for scaling out.

Cooldowns will be ignored if a health check fails and causes another auto-scaling event. Grace periods will always be in place for the defined amount of time.

like image 126
bwest Avatar answered Sep 28 '22 08:09

bwest