Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
KEP: Introduce a new timeout to WaitForPodsReady config #2737
base: main
Are you sure you want to change the base?
KEP: Introduce a new timeout to WaitForPodsReady config #2737
Changes from 11 commits
4da9c19
6373884
0276927
337db77
e664d23
57e1efc
c3b44c5
9ff2a63
ce5b174
5806272
1878638
3d6bb18
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Does this indicate
kueue/pkg/controller/jobs/job/job_controller.go
Lines 313 to 316 in 6ac33de
In that case, what if other jobs except batch/v1 Jobs?
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.
Does this improve the existing waitForPodsReady feature even if we do not introduce the recoveryTimeout?
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.
Yes
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.
That makes sense.
In that case, are there any improvements related to the flickering issue for other Jobs like RayJob MPIJob?
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.
In case of other types of jobs (including RayJob and MPIJob) we don't rely on counting active pods, but on the job's status:
https://github.com/kubernetes-sigs/kueue/tree/main/pkg/controller/jobs/mpijob#L191-L198
https://github.com/kubernetes-sigs/kueue/blob/main/pkg/controller/jobs/rayjob/rayjob_controller.go#L229-L231
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 know that other job types do not use the active pod count.
My question was, is there any solution to mitigate the flickering of the
PodsReady
condition in other Job types?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.
What if the Job is re-failed after the Job gets ready after the recovery?
I meant, what if the Job falls down the below loop?
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.
We allow multiple (infinite) recoveries if they fit within the timeout
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'm worried about falling into the infinite loop, and then the Pods accidentally dominate the resources.
Should we introduce the mitigations for the loop?
We probably want to have a comprehensive timeout separate from
RecoveryTimeout
so that we can evict the infinity loop Pods. Is there any idea instead of a comprehensive timeout?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.
How can existing users migrate the previous "PodsReady" reason to the new reason?
Is there any migration plans?