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
Skip check for all topology labels when using system default spreading #105046
Skip check for all topology labels when using system default spreading #105046
Conversation
/assign @Huang-Wei |
8d4c6f9
to
72afaf1
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Some nits. LGTM overall.
st.MakeNode().Name("node-a").Label(v1.LabelHostname, "node-a").Obj(), | ||
st.MakeNode().Name("node-b").Label(v1.LabelHostname, "node-b").Obj(), | ||
st.MakeNode().Name("node-c").Label(v1.LabelHostname, "node-c").Obj(), | ||
st.MakeNode().Name("node-d").Label(v1.LabelHostname, "node-d").Obj(), |
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.
For curiosity: in addition to zone label, should we consider the case that all or partial nodes don't carry standard host label?
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.
Is that even possible? It seems that kubelet takes care of it https://kubernetes.io/docs/reference/labels-annotations-taints/#kubernetesiohostname
Interestingly, given that we special-case hostname to do the count in Score
(instead of PreScore
), we could make it work. However, I don't think we need to support that.
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.
Is that even possible?
I was just curious. Personally I'm with you to believe it's sane defaults for every cluster.
Checking for all topology labels is not backwards compatible. Clusters were nodes don't have zone labels effectively have default spreading disabled. Change only applies to system defaults.
72afaf1
to
609306d
Compare
/retest |
/triage accepted |
…of-#105046-upstream-release-1.22 Automated cherry pick of #105046: Skip check for all topology labels when using system default
…of-#105046-upstream-release-1.20 Automated cherry pick of #105046: Skip check for all topology labels when using system default
…of-#105046-upstream-release-1.21 Automated cherry pick of #105046: Skip check for all topology labels when using system default
What type of PR is this?
/kind bug
What this PR does / why we need it:
Skip check for all topology labels when using system default spreading
Checking for all topology labels is not backwards compatible. Clusters were nodes don't have zone labels effectively have default spreading disabled.
Change only applies to system defaults.
/sig scheduling
Which issue(s) this PR fixes:
Fixes #102136
Special notes for your reviewer:
This replaces #102383 (the contributor abandoned).
One thing to note is the behavior when some nodes have zones. The scoring would favor nodes with no zone. We should consider this as undefined behavior.
Does this PR introduce a user-facing change?