Make Autoscaling scale-out more quickly for customMetric

0

I'm setting up an Autoscaling group and it's using TargetTrackingScaling that is tracking a custom metric that is being updated every minute (via a scheduled lambda that queries the inservice instances).

It's working fine, but I'd like the scale-out action to happen more quickly. The source of this looks to be due to the ASG Alarm that gets auto created. It's looking for 3 datapoints before triggering, this means it takes 3 minutes for the alarm to fire.

Is there a way I can configure the ASG/Scaling policy such that the alarm only needs 1 datapoint to fire? Or if not can I create a custom alarm and use that instead?

The metric is {Unit: 'Percent', Statistic: 'Average'}

profile picture
ede
已提问 2 年前694 查看次数
2 回答
1

Few cents --> Are you looking for this feature on 'TargetTrackingPolicy'? To my knowledge, the CloudWatch alarms for this policy are managed by AWS and is recommended not to edit. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html (refer Cosideration #1).

You could control the number of datapoints for 'Step' and 'Simple' scaling policies as you manage the CW alarm.

profile pictureAWS
已回答 2 年前
0

Yes I'm looking at TargetTrackingPolicy - will see if I can achieve what I want with Step or Simple policies.

profile picture
ede
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则