-
Notifications
You must be signed in to change notification settings - Fork 402
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
[Feature][Docs] Explain how to specify container command for head pod #651
Comments
@kevin85421 I wonder if this could be added in a more explicit way. The current behavior of Maybe there's room for something alongside the |
There's some discussion about how to get something approximating the desired behavior with a post-start hook: |
I totally agreed with your arguments. In addition, I found a post-start hook (commands execute when the RayCluster is READY) is very important recently. The hook can combine both RayCluster creation and other commands as an atomic operation, and thus make KubeRay more idempotent. One of the use cases is to avoid #756. |
Add this issue to v0.5.0 release. |
Yeah, moving the job submission into the entry point makes sense to me. I don't really see the point of decoupling cluster creation and job submission... |
Related discussion: https://ray-distributed.slack.com/archives/C02GFQ82JPM/p1675378764037199 |
Related discussion: https://ray-distributed.slack.com/archives/C02GFQ82JPM/p1676506490994229 Upgrade the priority to P0. |
Search before asking
Description
Some users want to run additional commands when RayClusters are started. For example, a user wants to run
ray start && python3 something.py
when the cluster is started.Users can use
headGroupSpec.template.spec.command
to set the command running in the head pod. However, there is a tricky behavior that may cause users to be confused. IfheadGroupSpec.template.spec.command
does not contain the substringray start
, KubeRay will replace the command specified by users. See the following code snippet for more details.kuberay/ray-operator/controllers/ray/common/pod.go
Lines 307 to 325 in e77b095
This software design will introduce more "unknown unknowns" for users, and thus we need:
(1) Update the document (this issue)
(2) Discuss whether remove this behavior and find its replacement.
Use case
No response
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: