kube-aws-autoscaler icon indicating copy to clipboard operation
kube-aws-autoscaler copied to clipboard

Scale to zero

Open Y-Less opened this issue 7 years ago • 3 comments

Is it possible to use this to scale the nodes down to 0, then back up again? I did some testing and got the cluster down to 0, but then it just stayed there, even when there were pods queued for scheduling. Am I doing something else wrong, or will this just not come up from 0?

Y-Less avatar Oct 30 '17 16:10 Y-Less

@Y-Less where do you run the autoscaler? If it runs as a normal pod on worker nodes it won't run when you scale to zero :smirk:

hjacobs avatar Nov 01 '17 21:11 hjacobs

I run the autoscaler on the controller node, but scale the workers only.

Y-Less avatar Nov 01 '17 21:11 Y-Less

@Y-Less you are right, the autoscaler only works if at least one node exists. Reason for this is that it iterates over all nodes and only considers these ASGs, i.e. if no node to iterate over => no ASG to set capacity. This could probably be fixed by changing the logic and getting the ASG name from some static configuration or similar (I would want to avoid that).

hjacobs avatar Nov 01 '17 21:11 hjacobs