-
Notifications
You must be signed in to change notification settings - Fork 111
feat: Enable certain features of the scheduler using annotations (#669) #670
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: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wangshulei098 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 |
Welcome @wangshulei098! |
Hi @wangshulei098. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
✅ Deploy Preview for kubernetes-sigs-lws canceled.
|
/ok-to-test |
/retest |
Created #673, I will take a look |
/retest |
How do you think about the change :-) |
pkg/utils/utils.go
Outdated
return totalResources | ||
} | ||
|
||
func InheritVolcanoAnnotations(lws *leaderworkerset.LeaderWorkerSet) map[string]string { |
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 feel this part of the code doesn't belong in "utils.go" because this "utils.go" provides some general utility functions. It might be more appropriate to place it in "volcano_provider.go".
Also,
Would it be better to have a testcase and a docs at https://github.com/kubernetes-sigs/lws/blob/main/docs/examples/sample/gang-scheduling/README.md ?
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.
Okay, I'll add test cases and usage documentation.
I think it's very useful, indeed because users can't directly configure podgroup, inherit from lws is the direct way |
3da42dd
to
3a95885
Compare
Co-authored-by: Abdullah Gharaibeh <[email protected]>
Thanks @wangshulei098 |
What type of PR is this?
feature
What this PR does / why we need it
When using LWS with Gang scheduling, sometime we need to configure certain annotations in the PodGroup that are used by the Volcano scheduler to control specific scheduling behaviors. I think this is a relatively common requirement. In some large-scale model training job orchestration frameworks, such as the PyTorch Operator, when creating a PyTorchJob custom resource, the PodGroup inherits certain annotations.
Which issue(s) this PR fixes
Fixes #669
Certain specific annotations can be passed through from LWS to flexibly control various features of the scheduler.
Special notes for your reviewer
Does this PR introduce a user-facing change?