Article
Ray CLI
Ray exposes a command line interface to manage the cluster (and nodes).
This article explains the commands available, which are useful when working with Ray on Golem.
For more details check out the Ray Cluster Management CLI reference.
Commands Overview
While ray start
& ray stop
are for manual node setup there are also many cluster commands
ray up golem-cluster.yaml
starts up a cluster specified by the yamlray down golem-cluster.yaml
terminates the clusterray submit golem-cluster.yaml ray-app.py
executes an app on the clusterray exec golem-cluster.yaml 'ray status'
shows cluster statusray exec golem-cluster.yaml 'shell-command-line'
executes shell commands on the head noderay attach golem-cluster.yaml
gives you shell access to the head noderay dashboard golem-cluster.yaml
tunnels the Ray dashboard tohttp://localhost:8265
ray rsync_up golem-cluster.yaml /local/path /path/on/cluster
uploads files to the head noderay rsync_down golem-cluster.yaml /path/on/cluster /local/path
downloads files from the head node
Was this helpful?