-
Notifications
You must be signed in to change notification settings - Fork 471
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
[feat][kubectl-plugin] support setting ray start params #3046
base: master
Are you sure you want to change the base?
Conversation
headRayStartParams := map[string]string{ | ||
"dashboard-host": "0.0.0.0", | ||
} | ||
workerRayStartParams := map[string]string{ | ||
"metrics-export-port": "8080", | ||
} | ||
maps.Copy(headRayStartParams, rayClusterSpecObject.HeadRayStartParams) | ||
maps.Copy(workerRayStartParams, rayClusterSpecObject.WorkerRayStartParams) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For backwards compatibility. Lmk if it's better to remove these defaults and address the TODO comment above.
Should we also support this for |
Yes that makes sense. I’ll update this PR later if no objections. |
bbb7a6e
to
08b119a
Compare
updated |
08b119a
to
e21ae1f
Compare
e21ae1f
to
f560437
Compare
rebased to fix conflicts |
b0a76ec
to
b785c3e
Compare
rebased again to resolve conflicts :) |
in `kubectl ray create cluster` and `kubectl ray create workergroup` commands with new `--head-ray-start-params` and `--worker-ray-start-params` flags. Example ```console $ kubectl ray create cluster dxia-test --dry-run \ --head-ray-start-params dashboard-host=0.0.0.0,disable-usage-stats=true,num-cpus=0 \ --worker-ray-start-params disable-usage-stats=true | grep -A 3 'rayStartParams:' rayStartParams: dashboard-host: 0.0.0.0 disable-usage-stats: "true" num-cpus: "0" -- rayStartParams: disable-usage-stats: "true" metrics-export-port: "8080" replicas: 1 ``` Signed-off-by: David Xia <[email protected]>
b785c3e
to
c13ebb1
Compare
in
kubectl ray create cluster
andkubectl ray create workergroup
commandswith new
--head-ray-start-params
and--worker-ray-start-params
flags.Example
This idea was originally described in this doc.
Checks