-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support setting minMember
when creating workloads
#3970
Comments
Hi, this is a great idea. Besides setting the minMember manually, can we also read the StatefulSet or ReplicaSet in the ownerReferences to obtain the minMember automatically? |
This is probably not a good idea since many deployment functions don't want to be affected by the gang. |
got it. |
I think we can support read an annotation key from the workload, and users can set an expected value, or else the minmember is still 1. |
|
|
Another question is: The annotation should be set at pod level or workload level, though its more reasonable setting at workload level, the current queue and podgroup annotations are both set at pod level, so it's better to keep consistent. |
I think it's more reasonable to set at the workload level. |
It seems a little confused... |
It is more reasonable setting at workload level. |
We also should consider Ref: #4000 |
/assign @sceneryback |
@Monokaix: GitHub didn't allow me to assign the following users: sceneryback. Note that only volcano-sh members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In 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. |
@hwdef @Monokaix @lowang-bh @JesseStutler Thanks for all your suggestions, have implemented this feature in #4000 and volcano-sh/apis#154, please have a look |
There is also a question when setting at workload level, there will be an extra API request to get the workload's annotations, which may cause performance at scale. |
A workaround is that we cache annotations of rs/sts, etc. and get annotations from cache, which not only solve the current problem but also |
What is the problem you're trying to solve
Currently, the default value of minMember is 1, which is inappropriate in some scenarios.
volcano/pkg/controllers/podgroup/pg_controller_handler.go
Line 215 in 68fba2c
I hope that
minMember
can be set when creating a deployment or other non-vcjob workloads.Describe the solution you'd like
When creating a podgroup, we can read an annotation, such as
scheduling.volcano.sh/minMember: 10
Set minMember based on this value
Additional context
No response
The text was updated successfully, but these errors were encountered: