Support network topology constrain with highestTierName - #4795
Conversation
|
@zhaoqi612: The label(s) DetailsIn 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. |
Summary of ChangesHello @zhaoqi612, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly improves the flexibility of network topology constraints within Volcano by introducing the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces the concept of tierName for network topology, allowing users to specify a symbolic name for a tier instead of a numerical highestTierAllowed. The changes involve adding a tierName field to HyperNodeInfo and related structures, updating utility functions to handle this new field, and modifying the job controller and scheduler to process highestTierName. Specifically, the scheduler now translates highestTierName to its corresponding numerical tier during allocation. Validation logic has been added to prevent simultaneous specification of highestTierAllowed and highestTierName in job and podgroup network topology configurations. Review comments highlighted a potential non-deterministic behavior in HyperNodeTierNameMap() if conflicting tierName to tier mappings exist, suggesting a warning log and consistent tier selection (e.g., minimum tier). Another comment pointed out that the job controller's createOrUpdatePodGroup function introduced a default HighestTierAllowed of 1 when networkTopology was specified without either HighestTierAllowed or HighestTierName, which could be a breaking change and was advised against for backward compatibility. Additionally, the error messages in validateNetworkTopology were improved for clarity and specificity.
065dcdf to
f4d66cc
Compare
Signed-off-by: zhaoqi <342622945@qq.com>
f4d66cc to
ad65b3d
Compare
|
/lgtm |
|
defer to @JesseStutler |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wangyang0616 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
When submitting a job and specifying the affinity tier, users can choose either of the two methods:
highestTierNameorhighestTierAllowed, which makes the operation more convenient.Which issue(s) this PR fixes:
Partial fixes for #4188
Special notes for your reviewer:
@JesseStutler @wangyang0616
Example YAML for vcJob after modification
Example YAML for podgroup after modification