Skip to content

[Feature] Expose generated ray start command for worker and head nodes. #1560

Closed
@kevingreer

Description

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

KubeRay generates a ray start command to that is executed to start the cluster head node and cluster worker nodes. In a RayService Kubernetes config when specifying the head and worker pod templates, you can add a command field, and that command will be prepended to the generated ray start command, like $CUSTOM_CMD && $GENERATED_CMD. The code for this functionality is here.

This issue requests a feature that allows $GENERATED_CMD to be exposed to the custom command specified in the k8s config. After this feature is implemented, a person would be able to use the KubeRay generated ray start command within their custom command specified in their pod templates.

Use case

I have a binary that wraps arbitrary shell commands. This binary provides some general functionality useful for all services at my company, such as piping logs to our various logging systems. It is run like so:

./wrapper-binary --command "$CMD"

where $CMD can be any arbitrary command. For the use case of this issue, I would like $CMD to be ray start command generated by KubeRay.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions