-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set min nodes to 0 for worker and user. #2168
Set min nodes to 0 for worker and user. #2168
Conversation
This needs further testing. As scaling up from 0 nodes required more than just setting min nodes to 0. |
…e groups to support scaling from zero.
I have now tested scaling up and down of user and worker nodes from and to 0. I did this by creating the following:
I had to move the user scheduler to general, though. This was needed because the user scheduler on the user node will always trigger the user node scale-up. |
…g to 03-kubernetes-initialize.
Just a couple of changes are needed.
|
I need to figure out why Local Integration Tests are falling:
I'm still trying to figure out what the root cause is. If anyone has suggestions, please let me know. |
UpdateAfter moving the tagging logic to the post_deploy stage of Phase 2, we were able to successfully get past the Next stepsI have set up an EC2 instance and installed the local cluster. I will attempt to log in to it by exploring the display through SSH. Please let me know if there is a better way. |
…uler back on user node to check local deployment is effected.
I have modified the code to make sure that only changes for AWS don't affect other deployments. With this, the tests are working as expected except for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me!
All checks pass(ed). If you are happy with the changes, please feel free to merge them @costrouc |
Reference Issues or PRs
#2154
What does this implement/fix?
Reduces cost of default deployment.
Change
An AWS Node group can be associated with several Auto Scaling groups, but in our case, it's just one. To scale from zero in AWS, you need to follow these steps:
dedicated=user
.dedicated=user
. This will help the service decide which node group to place the pod on.k8s.io/cluster-autoscaler/node-template/label/dedicated=user
.Put a
x
in the boxes that applyAs a part of this change, the user scheduler is moved to the General node. This is needed to ensure the user node scales down to zero when the user is not running notebooks or desk clusters.
Testing
Any other comments?