-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
volumezone: scheduler queueing hints: node #124998
Conversation
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-sigs/prow repository. |
/assign @sanposhiho |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Gekko0114 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@Gekko0114: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
/assign @msau42 |
// isSchedulableAfterNodeChange is invoked whenever a node added or updated. | ||
// It checks whether the change of Node has made a previously unschedulable pod schedulable. | ||
// If the node label related to pod's pv topology is changed, it could make the pod schedulable. | ||
func (pl *VolumeZone) isSchedulableAfterNodeChange(logger klog.Logger, pod *v1.Pod, oldObj, newObj interface{}) (framework.QueueingHint, error) { |
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.
ditto 🙏
As we talked in DM, can you refactor this QHint so that it doesn't fetch any other kind of resources? Then, if you think there's nothing we can do for StorageClass, please just update the comment in EventsToRegister. 🙏
https://github.com/kubernetes/kubernetes/pull/124996/files#r1621867140
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.
This PR doesn't depend on any other resources.
Node QHint only depends on nodes and the pod.
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.
Even though pvcLister is used within getPVbyPod
, getPVbyPod
is not a new function and I don't modify this function in this PR.
Therefore I thought using getPVbyPod
in isSchedulableAfterNodeChange
is fine.
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.
Whether getPVbyPod
is a new function introduced in this PR or not doesn't really matter.
If isSchedulableAfterNodeChange
calls getPVbyPod
and getPVbyPod
calls pl.pvcLister.PersistentVolumeClaims().Get()
, then isSchedulableAfterNodeChange
depends on PVC, doesn't it?
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.
You are right.
I thought the point is whether the QHint PR increases the complexity of the code.
This PR doesn't introduce getPVbyPod.
Therefore I thought it is OK.
Please let me know if I misunderstood.
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.
Whether getPVbyPod is a new function introduced in this PR or not doesn't really matter.
Sorry, I've missed this message. I will fix it. Thanks!
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.
I don't think we can implement isSchedulableAfterNodeChange
without getPVbyPod.
Therefore, I will close this PR.
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.
Yeah, the point is whether QHint would go thru a complicated implementation, that is, fetching another kind of resource(s), rather than how complex a PR is.
What type of PR is this?
/kind feature
What this PR does / why we need it:
Added scheduler queueing hints to volume zone plugin.
This PR covers node.
I divided #119373 into following 4 PRs.
#125000
#125001
#124996
#124998
Which issue(s) this PR fixes:
Part of #118893
Special notes for your reviewer:
Thank you so much for your review!
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: