Home > OS >  Autoscaling policy not launching new instances
Autoscaling policy not launching new instances

Time:02-19

I have setup different types of dynamic scaling policies within my autoscaling group that uses a launch template to try and see autoscaling launch new instances when these are triggered, but it doesn't do it. I just set up the following tracking policy, and here are the results:

The tracking policy

Alarm is in-alarm stated, and action was "Successfully executed"

Autoscaling activity is not reporting anything

The alarm always logs that an autoscaling action was triggered, however autoscaling does not log any activity.

This autoscaling group is set up with min: 1, max:6, currently there is only 1 instance running.

Where or how can I find the error that is causing this? Is it perhaps something related to permissions? All instances are healthy/in-service

Spent the past couple of days going through threads on stackoverflow and other forums and haven't found anything that can help me find where the issue is.

Also, the timestamps differ in the screenshots as I had just done a re-deployment, but it is the same behavior all the same before I had done that, there is never activity on the autoscaling instance from the action launched within the alarm...

CodePudding user response:

I tried to replicate your scaling policy and environment:-

  • Created an ASG
  • assigned a tracking policy of 0.0001

My max capacity is 2, desired 1 and minimum 1.

The key point here is to wait for Cloudwatch ALarms to collect data from data points, for my scale-out activity it took around 5 minutes (the majority of the time is taken in warm up of instances too )

CodePudding user response:

I just found the reason of this issue, under the autoscaling group, go to Details, then to Advanced configurations and then to Suspended processes, nothing should be selected in this field, in my case alarms was set there along a few other actions, that is the reason autoscaling wasn't running on cloudwatch alarms.

Autoscaling group advanced configurations section

  • Related