-
Notifications
You must be signed in to change notification settings - Fork 264
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
Add FlavorAssignmentStrategy or flavor priorities to ClusterQueue #312
Comments
/kind api-change |
It seems like it's part of #171, I'd like to take a look so we can release 0.2.0 soon. |
Sorry, it actually should be #328, but I can also take a look of this. |
This is not part of #328. Yes, it will need to be validated, but we don't have this field yet. |
I thought about it a little, I think Besides, rather than prioritize the flavors by the slice order, maybe we should a new field I don't know whether we should introduce policies like binpack/spread/balanced to FlavorAssignmentStrategy(or FlavorManageStrategy), if we do, it seems we reinvent the wheels in scheduling. I think we can let this fly for a while until community users really need it. |
cc @alculquicondor for thoughts |
We can only change the default behavior if we introduce a new API version. We can probably do it as we launch v1beta1.
I don't think that adds much value. Going in order is a clear API.
As long as there is a valid use case, we can consider it. Otherwise, I would start with the obvious ones: InOrder, MinimizeBorrowing. |
They can't express the meaning that two flavors are of the same priority. This is useful when we want to apply more policies on flavors, like minimizeBorrowing by priority. But as you say, let's wait to see if we really need them. |
but if you use |
I think priority should be the first decision factor, then we apply other policies. |
I see what you mean. You want to do minimizeBorrowing within a group of flavors. Then, if it doesn't fit, go to the next group of flavors which have lower priority. To keep some level of "backwards compatibility", we can add a validation rule that priorities can only be decreasing in the list. |
So the conclusion is:
Right? |
Maybe worth a design doc after all? It doesn't have to be long. |
Yes, I'll write a simplify KEP for this. |
FYI: I'm already working on this, but considering the k/k KEP deadline is approaching and I'll have a holiday in Oct., let me focus on k/k first, and turn back ASAP. |
yup, k/k deadlines are tight FYI #401 |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/lifecycle frozen |
Hi, any eta for this? I'd really like to use preemption and as far as I see, this is the only blocker left for v0.3! 🚀 |
This might be after #532, and the design may also be changed(TBD) since we changed the API, so likely this will not be included in v0.3(preemption is already big enough), but I'll try my best, Let's see. I'm working on another feature now. |
just to confirm: preemption will be included in v0.3 regardless of this feature? That'll be great :) |
It's not great, it's my bad... :( |
Yes, preemption is independent of this feature. |
What would you like to be added:
A field in ClusterQueueSpec to influence how flavors are selected when there is already some quota in use.
Why is this needed:
Currently, we strictly go in the order determined by the ClusterQueue resource. But cluster administrators might need different optimization criteria, for example:
InOrder
: current behavior. It could be used to minimize cost. Cheaper resources can be listed first.MinimizeBorrowing
: Choose the flavor that minimizes borrowing. Since a flavor could involve multiple resources, they borrowing can be expressed as percentage of the total request. This can be used to minimize disruptions once preemption is supported.Completion requirements:
This enhancement requires the following artifacts:
The artifacts should be linked in subsequent comments.
The text was updated successfully, but these errors were encountered: