Skip to content
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

Boundary Condition Considerations in Gang Plugin's OnSessionClose #4011

Closed
Wang-Kai opened this issue Feb 14, 2025 · 1 comment · Fixed by #4012
Closed

Boundary Condition Considerations in Gang Plugin's OnSessionClose #4011

Wang-Kai opened this issue Feb 14, 2025 · 1 comment · Fixed by #4012
Labels
area/performance Issues or PRs related to performance kind/feature Categorizes issue or PR as related to a new feature.

Comments

@Wang-Kai
Copy link
Contributor

What is the problem you're trying to solve

The Gang Plugin's OnSessionClose updates the conditions of the PodGroup (PG) based on whether the current scheduling Job is Ready. In certain scenarios, I believe this behavior is unnecessary.

Scenario:
When a Volcano Job (VJ) is deleted, the PodGroup (PG) and Pods are cascadingly deleted. Since the Pod deletion event is observed earlier than the PG deletion event, vj.pg != nil while len(vj.tasks) == 0 at this point. This causes the Gang Plugin to unnecessarily update the PG conditions in this scenario.

Describe the solution you'd like

Proposed Improvement:
The fundamental premise of Gang scheduling is that there is at least one Pod to schedule. If vj.tasks is empty (i.e., no tasks require scheduling), the plugin should skip updating the PG conditions.

Additional context

No response

@Wang-Kai Wang-Kai added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 14, 2025
@JesseStutler
Copy link
Member

/area performance

@volcano-sh-bot volcano-sh-bot added the area/performance Issues or PRs related to performance label Feb 14, 2025
Wang-Kai added a commit to Wang-Kai/volcano that referenced this issue Feb 14, 2025
Wang-Kai added a commit to Wang-Kai/volcano that referenced this issue Feb 17, 2025
mahdikhashan added a commit to mahdikhashan/volcano that referenced this issue Feb 21, 2025
Signed-off-by: mahdikhashan <[email protected]>

skip unavailable jobs during the close session step volcano-sh#4011

Signed-off-by: 王凯 <[email protected]>
mahdikhashan pushed a commit to mahdikhashan/volcano that referenced this issue Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/performance Issues or PRs related to performance kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants