-
Notifications
You must be signed in to change notification settings - Fork 40k
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
scheduler volumebinding: leverage PreFilterResult for Bound local PersistentVolumes #109876
Comments
@yibozhuang: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/sig scheduling |
/assign |
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 |
The Kubernetes project currently lacks enough active 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 rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@yibozhuang: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What would you like to be added?
Similar to #109475
Today, in the scheduler volumebinding plugin, the bound PV node affinity check is done during
Filter
stage which means that all nodes are considered.For the case of bound local PV, the PV node affinity spec looks like
Today, if the node which the local PV with affinity tied to is tainted and/or out of cpu/memory, etc. we still run through Filter and consider all possible nodes which for a large cluster of n nodes, (n-1)/n nodes are irrelevant.
So, under such case, we see something along the lines of
because all nodes are considered so it is difficult for the user to identify which node is the one which the local PV node affinity matches that was not schedulable as the message here is mixed with all the irrelevant nodes that the pod cannot land on anyways due to PV node affinity mismatch.
I propose we leverage the new
PreFilterResult
added in #108648 to reduce list of nodes down to only eligible ones based on nodes that satisfy bound claim affinity check for local PVs.Why is this needed?
This will ensure that scheduling stages beyond
PreFilter
for pod having bound claims to local PVs would only consider eligible nodes so less number of nodes need to be considered in subsequent scheduling stages.This will also make the message clear to the user when scheduling fails that the errors are for only eligible nodes rather than user having to figure out which nodes are relevant and which are not.
The text was updated successfully, but these errors were encountered: