-
Notifications
You must be signed in to change notification settings - Fork 837
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
Weighted provisioners #2307
Weighted provisioners #2307
Conversation
✅ Deploy Preview for karpenter-docs-prod ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
6cdaf3e
to
10032ba
Compare
If there are 2 provisioner Provisioner 1
Provisioner 2
Now, if there is requirement to add a single pod for which even small instance size is enough, will it still create resource using provisioner 1 config because of higher weight? or it will use provisoner 2 config since karpenter also tries to create least size instance when possible. |
In this case, it would choose provisioner 1 regardless if the cost would be cheaper on provisioner 2. As long as the pod can be scheduled to that first provisioner, Karpenter will launch the node with the highest priority. The way to solve the issue you have described above is to make sure that you have enough flexibility in your instance types in your provisioners such that the scheduler is not forced into a situation like this |
10032ba
to
b0f5477
Compare
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.
LGTM. A few nits.
b0f5477
to
608d9a2
Compare
Hey @jonathan-innis, I have a question regarding the usability of these weighted provisioners. Suppose I have two provisioners -
then as per the code, since our provisioners are getting sorted with respect to their weights, there may arise a situation where only my Also, could we work upon changing this logic to something like a percentage based usage of provisioners? Eg. If my |
Fixes #2024
Description
.spec.weight
which will be used during schedulingHow was this change tested?
make test
Does this change impact docs?
Release Note
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.