Repository navigation
[cherry-pick][2.58.0][Docs][KubeRay] Use RayJob sample YAML for History Server docs (#65505) - #65531
Conversation
…roject#65505) ## Description Update the Ray History Server with KubeRay doc to use RayJob example, this is related to kuberay-project/kuberay#5150 ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: win5923 <[email protected]> Signed-off-by: Jun-Hao Wan <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Nary Yeh <[email protected]> (cherry picked from commit 23d0178) Signed-off-by: machichima <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the KubeRay History Server user guide to transition the example deployment from a RayCluster to a RayJob with a collector sidecar, updating all relevant commands, manifests, and endpoint examples. The review feedback suggests using ${NAMESPACE:-default} instead of ${NAMESPACE} in the kubectl commands to prevent potential syntax errors or failures if the environment variable is unset.
| export RAY_JOB=rayjob-historyserver-gcs | ||
|
|
||
| curl https://raw.githubusercontent.com/ray-project/kuberay/refs/heads/master/historyserver/config/raycluster-gcs.yaml | envsubst | kubectl apply -f - | ||
| curl https://raw.githubusercontent.com/ray-project/kuberay/refs/heads/master/historyserver/config/rayjob-gcs.yaml | envsubst | kubectl apply -n ${NAMESPACE} -f - |
There was a problem hiding this comment.
If the user runs this command in a new terminal session, the ${NAMESPACE} environment variable might be empty, which would cause kubectl apply -n -f - to fail with a syntax error. Using ${NAMESPACE:-default} provides a safe fallback to the default namespace.
| curl https://raw.githubusercontent.com/ray-project/kuberay/refs/heads/master/historyserver/config/rayjob-gcs.yaml | envsubst | kubectl apply -n ${NAMESPACE} -f - | |
| curl https://raw.githubusercontent.com/ray-project/kuberay/refs/heads/master/historyserver/config/rayjob-gcs.yaml | envsubst | kubectl apply -n ${NAMESPACE:-default} -f - |
| Check the RayJob status. The entrypoint script takes about a minute to finish: | ||
|
|
||
| ```sh | ||
| kubectl get rayjob ${RAY_JOB} |
|
|
||
| ```sh | ||
| kubectl delete raycluster ${RAY_CLUSTER} -n ${NAMESPACE} | ||
| kubectl delete rayjob ${RAY_JOB} -n ${NAMESPACE} |
There was a problem hiding this comment.
Using ${NAMESPACE:-default} instead of ${NAMESPACE} ensures that the command does not fail with a syntax error if the NAMESPACE environment variable is unset in the current terminal session.
| kubectl delete rayjob ${RAY_JOB} -n ${NAMESPACE} | |
| kubectl delete rayjob ${RAY_JOB} -n ${NAMESPACE:-default} |
chiayi
left a comment
There was a problem hiding this comment.
One thing I realized is that we don't have a variables and configurations chart for history server. So variables like session-cache-size and use-auth-token-mode aren't explained. We should maybe update the chart we already have or add another one?
## Description Follow up on: - #65531 (review) - #65531 (comment) Made following changes: - add variables and configurations chart - mention that "ALL" only works for 2.54+ versions ## Related issues ## Additional information docs: https://anyscale-ray--65580.com.readthedocs.build/en/65580/cluster/kubernetes/user-guides/kuberay-history-server.html --------- Signed-off-by: machichima <[email protected]> Signed-off-by: Nary Yeh <[email protected]> Co-authored-by: Douglas Strodtman <[email protected]> Co-authored-by: Rueian <[email protected]>
## Description Follow up on: - ray-project#65531 (review) - ray-project#65531 (comment) Made following changes: - add variables and configurations chart - mention that "ALL" only works for 2.54+ versions ## Related issues ## Additional information docs: https://anyscale-ray--65580.com.readthedocs.build/en/65580/cluster/kubernetes/user-guides/kuberay-history-server.html --------- Signed-off-by: machichima <[email protected]> Signed-off-by: Nary Yeh <[email protected]> Co-authored-by: Douglas Strodtman <[email protected]> Co-authored-by: Rueian <[email protected]>
Description
Update the Ray History Server with KubeRay doc to use RayJob example, this is related to kuberay-project/kuberay#5150
Related issues
Additional information
(cherry picked from commit 23d0178)
Description
Related issues
Additional information