autoscaler: AWS: Can't scale up from 0

Possibly related: #1754

I recently added three new node groups to my cluster using AWS spot instances. I initially set the minSize on each of the three new groups to 0, but CA was refusing to scale them up from 0. If I go into the EC2 console and manually force the ASG minSize up to 1 then CA gets unstuck and will continue scaling the group up as new requests come in.

Iโ€™m attaching the following files:

  • ca_logs.txt :: At this point I had forced one of my ASGs to have a minSize of 1 and maxSize of 4. That group filled up so CA was unable to scale it up any further. At this point it should have been scaling up the other two node groups, but they still had minSize=0 and thus CA refused to scale them up.
  • ca_logs_after_setting_min.txt :: This is after manually forcing the two other ASGs to have minSize=1. At this point CA starts scaling them up as expected.
  • ca_pod.txt :: Full get pod -o yaml of my CA

Is it not supported to have minSize=0 on AWS?

Iโ€™m running CA v1.14.5.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 32 (16 by maintainers)

Commits related to this issue

Most upvoted comments

@mgalgs thanks for documenting the solution to this. I just ran into this and you saved my day! ๐Ÿ’–

@mgalgs The difference between two is

  1. scale from 0 - CA build template from ASG LaunchTemplate or LaunchConfiguration, it wonโ€™t know some of the kubernetes node labels. In order to properly build it, we need to add ASG tags and CA will convert tags to labels to construct the node template.
  2. scale from 1 - Since node is already there, CA will use real node as a template.

Do you have tag in your ASG? check here https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler/cloudprovider/aws#scaling-a-node-group-to-0

If you still have the issues, I will try to see anything wrong in 1.14.

@faheem-cliqz I probably already fix the issue you meet. Please check this 58f3f23#diff-ade7b95627ea0dd6b6f4deee7f24fa7eR323-R331

We will have a release next week

Cool will get back to you with updates once you guys releases ๐Ÿ˜ƒ

Okay so I am on CA v1.14.5 and I finally got it working - I had to upgrade eksctl from v0.5.2 to 0.6.0 - it scales from 0 now!