Ben Chuanlong Du's Blog

It is never too late to learn.

Deploy Apache Ray

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='' --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= when starting Ray on the head node.

Private Cluster

  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.




Deploying on Kubernetes

Ray with Spark