Autoscaling scale in policy working

0

I have an autoscaling group that works with a target-tracking policy and scales out after my instance hits 75% CPU. But I wanna know how much will it take to scale in or terminate the instance made by the autoscaling group right now it's 25 min which is a lot and can I set a custom time for my instance to be deleted during scale in the process? Thanks

질문됨 일 년 전308회 조회
1개 답변
0

Some things to consider:

Since you have configured target tracking on CPU utilization, check the Cloudwatch Alarm TargetTracking-xxx-AlarmLow-<random_string> (or something similar) for the Condition defined. The alarm is not editable and the condition for me is defined as being < some threshold for 15 datapoints over 15 minutes.

Normally the LB deregistration delay is 300 seconds and is defined in target group attributes.

And often there is a slight delay for datapoints / metrics to be reflected in cloudwatch; somewhere around 2-3 minutes.

If you add add this up, it takes around 22-23 minutes for the instance to start shutting down. If the above values match your infra also, the 25 minutes you have reported is sort of normal. In this condition the only thing you can do to reduce the time to inititiate shutdown is to decrease the deregistration delay. But that might affect your inflight connections in the LB.

--Syd

profile picture
Syd
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠