Skip to content

Conversation

@justinyeh1995
Copy link
Contributor

Why are these changes needed?

The submitter sidecar may exit during transient head‑node spikes.

For Kubernetes versions under 1.34, this change makes SidecarMode treat the Ray dashboard job status as the source of truth and avoids failing a RayJob just because the submitter sidecar exits. It defers failure decisions until after GetJobInfo to prevent premature termination during transient head‑node spikes, while still tracking the submitter’s finished time for a final fallback.

For Kubernetes v1.34+, we can restart the submitter. This part is still under construction.

Related issue number

Closes #4285

Checks

  • Testing Strategy
    • Unit tests
    • Manual tests

Signed-off-by: justinyeh1995 <justinyeh1995@gmail.com>
@justinyeh1995 justinyeh1995 changed the title [WIP][Fix][RayJob SidecarMode] prevent premature job termination during transient head node spikes [WIP][Fix][RayJob SidecarMode] Prevent premature job termination during transient head node spikes Jan 15, 2026
Copy link
Member

@Future-Outlier Future-Outlier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. we should make sure this only be used when k8s version >= 1.34
  2. we should also have some mechanism to check user open the alpha feature via feature gate.

@justinyeh1995
Copy link
Contributor Author

  1. we should make sure this only be used when k8s version >= 1.34
  2. we should also have some mechanism to check user open the alpha feature via feature gate.

Appreciate the concrete suggestions.

I am wondering whether we should keep the current fix (checking dashboard before applying timeout) as a fallback for users with k8s version < 1.34.

Or should we simply focus on solving it for k8s version >= 1.34. My judgement is these two can co-exist.

@justinyeh1995
Copy link
Contributor Author

After discussing offline with @Future-Outlier, this pr will instead focus on implementing restarting submitter for k8s version 1.34+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Submission mode SidecarMode causes job termination when head node CPU spikes

2 participants