Added activeDeadlineSeconds for Kubernetes Job Resource Management Description: #943
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.
@DonggeLiu
This pull request addresses an issue in the pr-exp.yaml file, where the second Kubernetes job was missing the activeDeadlineSeconds field. The absence of this field could have caused the job to run indefinitely, consuming excessive resources and leading to unpredictable behavior. This fix ensures that both jobs have the same resource management strategy.
Changes:
Added activeDeadlineSeconds: 43200 (12 hours) to the second Kubernetes job configuration. This prevents the job from running indefinitely and reduces resource consumption.
Fix:
By adding this field, we align the second job’s configuration with the first job, which already has a similar field, ensuring consistent resource management across both jobs.
Additional Notes:
The change aims to prevent excessive resource consumption by limiting the runtime of the job to 12 hours. This is a more reasonable timeframe compared to the original 7 days, ensuring better resource allocation for quicker jobs.
#931