Interactive Jobs w/ Ray Client

Ray client allows you to run a Ray driver on your laptop and connect to a remote Ray cluster. You can seamlessly connect to Ray clusters running on Anyscale without any code changes. All you need to do is change the Ray address to point at Anyscale.
You can change the address either in your code or on the command line (both have the same effect):
# Ray in open source:
ray.init("ray://<ip_address>:<port>")
# Ray on Anyscale:
ray.init("anyscale://my_cluster")
# Ray in open source:
RAY_ADDRESS=111.222.101.202 python your_script.py
# Ray on Anyscale:
RAY_ADDRESS=anyscale://my_cluster python your_script.py
When you run interactive jobs using Ray client, they will be recorded in the Anyscale UI. There, you can see a history of your runs as well as logs and details about the cluster as the job is running.
For more details on how to configure and use Ray client with Anyscale, see the Ray client reference.
Last updated
Was this helpful?