-
Notifications
You must be signed in to change notification settings - Fork 52
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
Do not create Jobs and the service when JobSet is suspended #535
Comments
I think this could be particularly wasteful when the jobs are rather small, but have a big replication number. |
/kind feature |
I know that when I did this, I figured I would just use I can see why maybe we would want to go a different route. I tagged this as a feature. |
Is it a big deal to have the service created? |
Maybe not a "big" deal, but Kueue is typically used to hold long queues of suspended Jobs(or JobSets), say 50k, so would be nice to do not create them. I imagine it would be fine to keep a once created service for a JobSet that got suspended (it was running, but got preempted). There should not be too many preemptions, and we could save on recreation in case the JobSet is quickly re-admitted. |
I think the main tricky point would be support for startup policy and suspend. Our implementation with suspend and startup policy was to resume the replicated jobs in order of their listing. I guess this could clean this up as we would only create the jobs if they were resumed. But it may be a bit tricky to implement... |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
I don't quite follow why this is required for #625. Can you explain? |
Consider the following chain of states: suspend - resume 1 - suspend - resume.2. Here resume 1 and 2 may use different Pod templates (updated during suspend), so we need to recreate the Jobs at some point. Deleting the in the suspend phase seems simplest. The Job controller also deletes pods on suspend |
I see. So Jobs delete pods on a resume/suspend but JobSet was keeping the Jobs around? |
Correct, The alternative could be to try to update the Jobs by JobSet but this is rather complex. First due to mutability constraints in Jobs. It would require multiple requests similarly as we do in Kueue. Second the update of new Pod template would revert changes to Jobs done by some potential create webhooks which users may have. |
@mimowo what is the current status of this issue, can we close it? We relaxed pod template mutability constraints in JobSet in order to allow for this integration with Kueue, does this not solve the issue described in your comment above? |
Yeah, it solves 98% (guesstimation) of problems. Let me summarize the remaining motivation to still do it (maybe as an extra option not to break the default flow):
Having said that I'm ok to close it for now, because the remaining issues haven't yet been a problem for any user I know of, so it is not a high priority to solve them proactively. |
IIUC it could also be helpful for lazy quota reservation for Execution Policy (see comment), but maybe the KEP will go another way, so not sure. |
To reproduce just create a simple JobSet with
spec.suspend=true
. In that case Jobs and the service are created.This is wasteful in case of Jobs which are queued by Kueue, and may stay in the queue for a long time, potentially.
The text was updated successfully, but these errors were encountered: