Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Manual Cluster Setup

It is very easy to set up Apache Ray on a small cluster manually. The instructions at Manual Cluster Setup is very clear. Just one comment. You do not need to configure SSH keys for nodes in the cluster for manual configuration. When you start the master node manually (using the command ray start --head), it will print a command to add new nodes into the cluster. The command (e.g., ray start --address='10.148.186.18:12030' --redis-password='5241590000000000') includes the Redis password for authentication to join the cluster.

By default, the Ray dashboard is visitable only on the head node. To make it visitable by public IP, you can include the option --webui-host=0.0.0.0 when starting Ray on the head node.

Private Cluster

python/ray/autoscaler/local/example-full.yaml

  1. The Ray autoscaler installs Ray on the head and worker nodes by default. That is if you don’t set values for the fileds head_setup_commands and setup_commands, Ray is automatically installed/updated on the head and worker nodes. You can disable this behavior by set a dummy command (e.g., echo "Starting Ray ...") for the 2 fileds.

ray-project/ray#4902

ray-project/ray#4559

ray-project/ray#3408

ray-project/ray#4811

ray-project/ray#5326

ray-project/ray#5437

ray-project/ray#5442

ray-project/ray#3190

https://ray.readthedocs.io/en/latest/using-ray-on-a-cluster.html

https://ray.readthedocs.io/en/latest/autoscaling.html

https://ray.readthedocs.io/en/latest/autoscaling.html#quick-start-private-cluster

https://ray.readthedocs.io/en/latest/using-ray-on-a-cluster.html

GCP

ray-project/ray#2660

AWS

https://gist.github.com/edoakes/0f7f62b7d9aa5481482bca23be5f622a

Kubernetes

Deploying on Kubernetes

https://github.com/ray-project/ray/tree/master/doc/kubernetes

https://ray.readthedocs.io/en/latest/autoscaling.html#kubernetes

python/ray/autoscaler/kubernetes/example-full.yaml

Ray with Spark

References

ray-project/ray#7025