Expose more helm config for agent - #4630
Conversation
Summary of ChangesHello @Monokaix, 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 enhances Volcano's colocation capabilities by introducing a time-based QoS policy for dynamic workload management and by extending the agent's configurability via Helm. Additionally, it refactors the nodegroup scheduler plugin to support hierarchical queues, allowing for more flexible and manageable node affinity configurations across different queue levels. These changes aim to provide greater control over resource utilization and scheduling behavior in complex Kubernetes environments. 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
|
b074350 to
decc26e
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces two significant features: time-based QoS policies for the Volcano agent and hierarchical queue affinity for the nodegroup scheduler plugin. The changes are extensive, including new design documents, implementation across agent and scheduler packages, and updates to Helm charts and tests. My review identifies a critical initialization bug in the new TimeBasedQoSHandle that could cause a runtime panic. I've also pointed out a logic issue in the nodegroup plugin's predicate function, inconsistencies in naming and documentation, and some stale TODO comments. Overall, the features are well-designed, but the identified issues, especially the critical bug, should be addressed before merging.
| colocation_enable: false | ||
| ignored_provisioners: ~ | ||
| agent_supported_features: ~ | ||
| agent_extend_resource_cpu_name: ~ |
There was a problem hiding this comment.
Please also add comments explaining the valid values
that can be configured for the following three fields:
# for example:
# agent_supported_features:
# - xxx
# - yyyy
# agent_extend_resource_cpu_name:
# - xxx
# - yyyy
# agent_extend_resource_memory_name:
# - xxx
# - yyyy
Signed-off-by: Monokaix <changxuzheng@huawei.com>
decc26e to
efbf43b
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu 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
/area colocation
What this PR does / why we need it:
Add more helm config
agent_supported_features,agent_extend_resource_cpu_name,agent_extend_resource_memory_name, and more importantly, user can use volcano user mode colocation and do not depend on specific OS.Based on #4409 and #4413
For example, user can use volcano agent colocation features without depending on specific OS with the following installation command:
helm install volcano . --create-namespace -n volcano-system --set custom.colocation_enable=true --set "custom.agent_supported_features=OverSubscription\,Eviction\,Resources" --set custom.agent_extend_resource_cpu_name=test.com/cpu --set custom.agent_extend_resource_memory_name=test.com/gpuWhich issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?