-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(resource-strategy-fit): add per-Pod scoring strategy #4641
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
feat(resource-strategy-fit): add per-Pod scoring strategy #4641
Conversation
Summary of ChangesHello @kingeasternsun, 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 upgrades 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a valuable feature by enabling per-Pod level scoring configurations in the resource-strategy-fit plugin. This allows for more granular control over scheduling, catering to heterogeneous workloads. The implementation is sound, maintaining backward compatibility with the global configuration. The test suite has been significantly improved with the addition of helper functions and comprehensive test cases for the new functionality, which is a great enhancement for maintainability. I have one suggestion to improve the error handling for misconfigurations to make it more user-friendly.
852d46f to
d69cf67
Compare
|
LGTM I have a small suggestion(maybe in another PR): could we add some fields for Volcano Job, Benefits:
|
Signed-off-by: wangdongyang1 <[email protected]>
d69cf67 to
ecd2bee
Compare
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Monokaix 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.
I think the user guide of how to use resource strategy fit plugin should also contain the sra and proportional strategy: #4454
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.
@XbaoWu Could you help add sra and propotional user guide to this doc? We can merge this pr first. Or if we already have user guide in design doc, we can add a ref link
JesseStutler
left a comment
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.
/lgtm
Thanks!
But it does not support jobs like Deployments, we could add these fields for Volcano Job, and volcano controller add these annotations to pod according these job fields. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Currently, the
resource-strategy-fitplugin only supports a globalscoring-typeconfiguration, which is insufficient for heterogeneous workloads.This PR adds support for per-Pod level scoring configuration, so that different types of workloads can be scored according to their primary resource requirements:
This enhancement improves scheduling accuracy and resource utilization, making the plugin more suitable for real-world mixed workloads.
Which issue(s) this PR fixes:
Fixes #4640
Special notes for your reviewer:
scoring-typeis still applied.Does this PR introduce a user-facing change?