-
Notifications
You must be signed in to change notification settings - Fork 548
bugfix(noderesourcetopology): reject non-single-numa-node policies in NodeResourceTopology plugin #886
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
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: googs1025 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 |
✅ Deploy Preview for kubernetes-sigs-scheduler-plugins canceled.
|
@@ -180,6 +180,11 @@ func singleNUMAPodLevelHandler(lh logr.Logger, pod *v1.Pod, zones topologyv1alph | |||
return nil | |||
} | |||
|
|||
func rejectNonSingleNUMANodeHandler(lh logr.Logger, _ *v1.Pod, _ topologyv1alpha2.ZoneList, nodeInfo *framework.NodeInfo) *framework.Status { |
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.
we add another handler to handle this case
c31aaeb
to
26f289a
Compare
… NodeResourceTopology plugin Signed-off-by: googs1025 <[email protected]>
26f289a
to
eace5f5
Compare
I'm not sure if my understanding is wrong. We have the following policy. // RestrictedTopologyManagerPolicy is a mode in which kubelet only allows
// pods with optimal NUMA node alignment for requested resources
RestrictedTopologyManagerPolicy = "restricted"
// BestEffortTopologyManagerPolicy is a mode in which kubelet will favour
// pods with NUMA alignment of CPU and device resources.
BestEffortTopologyManagerPolicy = "best-effort"
// NoneTopologyManagerPolicy is a mode in which kubelet has no knowledge
// of NUMA alignment of a pod's CPU and device resources.
NoneTopologyManagerPolicy = "none"
// SingleNumaNodeTopologyManagerPolicy is a mode in which kubelet only allows
// pods with a single NUMA alignment of CPU and device resources.
SingleNumaNodeTopologyManagerPolicy = "single-numa-node" Do we only have the |
@googs1025: 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. |
@ffromani friendly ping 😄 If you have some time, could you give me some advice? I don't know much about this plugin, but I'd love to learn more, and it would be great if I could help. |
Thanks for the fix. Codewise looks a good direction. The problem is designwise. We need to review the use cases and decide how do we want to treat these scenarios. There were reasons why the code currently auto-passes node without alignment requirements. We need to recover the past context, resume the conversation, re-evaluate and update the docs. |
@googs1025 what if we have cluster with mixed configuration and some nodes have |
this ^ mixed nodes was the contention point also back in time. Both approaches have pros and cons. Our (RH) experience is that users tend to have homogeneous cluster, but in the general case we support mixed clusters. |
From my experience, we sometimes have mixed configuration due to node configuration changes etc. but we still want max cluster utilization. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #885
Special notes for your reviewer:
Does this PR introduce a user-facing change?