Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Scale to zero #39

Open
Y-Less opened this issue Oct 30, 2017 · 3 comments
Open

Scale to zero #39

Y-Less opened this issue Oct 30, 2017 · 3 comments

Comments

@Y-Less
Copy link

Y-Less commented Oct 30, 2017

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?

@hjacobs
Copy link
Owner

hjacobs commented Nov 1, 2017

@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 😏

@Y-Less
Copy link
Author

Y-Less commented Nov 1, 2017

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

@hjacobs
Copy link
Owner

hjacobs commented Nov 1, 2017

@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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants