Files
2759c6d841 Cherry pick master fixes to release-0.3 (#478)
* Update helm chart version to 0.3.0 (#461)

* helm-charts/ray-cluster: Allow extra workers (#451)

* helm-charts/ray-cluster: Allow extra workers

We can not set additional workers with the current helm chart.
There are some PRs that aim to fix this but they appear to be stale
https://github.com/ray-project/kuberay/pull/266

We wanted to keep untouched the default worker that is already
included in the helm chart but allow the addition of new workers.

The changes are adding the following logic:
- Allow to disable the default worker group, if needed, via worker.disabled = true
- Allow to set additional workers by using the extraWorkers map

The extraWorkers map has a different structure compared to the default worker because we
wanted to add additional flexibility. Due to that, some variables in the extraWorkers
have different naming (which matches the name of the related CRD attributed)

Note: PR was done to support additional workers in the infrastructure of Metrika.co

* Sync up helm chart's role (#472)

Co-authored-by: chenyu.jiang <[email protected]>

* Document the raycluster status (#473)

Co-authored-by: chenyu.jiang <[email protected]>

Co-authored-by: Christos Kotsis <[email protected]>
Co-authored-by: Chenyu Jiang <[email protected]>
Co-authored-by: chenyu.jiang <[email protected]>
2022-08-16 11:44:43 -07:00
..
2021-12-21 10:02:23 +08:00
2022-03-23 16:50:38 +08:00

Ray Cluster

Make sure ray-operator has been deployed.

Ray is an open source framework that provides a simple, universal API for building distributed applications. Ray is packaged with RLlib, a scalable reinforcement learning library, and Tune, a scalable hyperparameter tuning library.

Helm

$ helm version
version.BuildInfo{Version:"v3.6.2", GitCommit:"ee407bdf364942bcb8e8c665f82e15aa28009b71", GitTreeState:"dirty", GoVersion:"go1.16.5"}

TL;DR;

$ helm install ray-cluster --namespace ray-system --create-namespace https://github.com/ray-project/kuberay/releases/download/v0.3.0/helm-chart-ray-cluster-0.1.0.tgz

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release --namespace ray-system --create-namespace https://github.com/ray-project/kuberay/releases/download/v0.3.0/helm-chart-ray-cluster-0.1.0.tgz

note: The chart will submit a RayCluster.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release -n ray-system

The command removes nearly all the Kubernetes components associated with the chart and deletes the release.

Check Cluster status

Get Service

$ kubectl get svc -l ray.io/cluster=ray-cluster
NAME                       TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)                       AGE
ray-cluster-head-svc   ClusterIP   10.103.36.68   <none>        10001/TCP,6379/TCP,8265/TCP   9m24s

Forward to dashboard

$ kubectl get pod -o wide
NAME                                       READY   STATUS    RESTARTS   AGE    IP            NODE             NOMINATED NODE   READINESS GATES
ray-cluster-head-sd77l                 1/1     Running   0          8h     10.1.61.208   docker-desktop   <none>           <none>
ray-cluster-worker-workergroup-czxd6   1/1     Running   0          8h     10.1.61.207   docker-desktop   <none>           <none>
kuberay-operator-687785b964-jgfhv          1/1     Running   6          3d4h   10.1.61.196   docker-desktop   <none>           <none>

$ kubectl port-forward ray-cluster-head-sd77l 8265
Forwarding from 127.0.0.1:8265 -> 8265
Forwarding from [::1]:8265 -> 8265