Search before asking
KubeRay Component
ray-operator
What happened + What you expected to happen
When using K8sJob submitter mode, when the RayCluster head pod is evicted the behavior is something like:
- Ray head pod is evicted
- Submitter pod fails to watch the job submission, so it also fails
- Kuberay marks the RayJob failed and performs any cleanup the user has configured (e.g. deleting the RayCluster, etc.)
However, the behavior when using the HTTP submitter mode is different:
- Ray head pod is evicted
- The RayCluster operator creates a new head pod
- The pod becomes healthy
- The ray operator hits this case and resubmits the job to the new head
Imo this is a bug. The docs about submissionMode here imply that HTTPMode, K8sJobMode, and SidecarMode are mostly interchangeable, aside from some nuances around kubernetes networking.
Reproduction script
Make a rayjob script with this code
def entrypoint_fn() -> None:
time.sleep(1000)
and create a RayJob CRD with it. Replicate eviction behavior with kubectl delete pod <pod-name> --grace-period=0. Notice that a new head pod comes up and another ray job is submitted to it.
Anything else
I think it reproduces consistently with the repro steps I gave above.
Are you willing to submit a PR?
Search before asking
KubeRay Component
ray-operator
What happened + What you expected to happen
When using K8sJob submitter mode, when the RayCluster head pod is evicted the behavior is something like:
However, the behavior when using the HTTP submitter mode is different:
Imo this is a bug. The docs about
submissionModehere imply that HTTPMode, K8sJobMode, and SidecarMode are mostly interchangeable, aside from some nuances around kubernetes networking.Reproduction script
Make a rayjob script with this code
and create a
RayJobCRD with it. Replicate eviction behavior withkubectl delete pod <pod-name> --grace-period=0. Notice that a new head pod comes up and another ray job is submitted to it.Anything else
I think it reproduces consistently with the repro steps I gave above.
Are you willing to submit a PR?