The recommended way to run a Ray application on a Ray Cluster is to use Ray Jobs. Ray Jobs allow you to submit locally developed applications to a remote Ray Cluster for execution. It simplifies the experience of packaging, deploying, and managing a Ray application.
A Ray Job consists of:
An entrypoint command, like
A runtime environment, which specifies the application’s file and package dependencies.
A Ray Job can be submitted by a remote client that lives outside of the Ray Cluster. We will show this workflow in the following user guides.
After a Ray Job is submitted, it runs once to completion or failure, regardless of the original submitter’s connectivity. Retries or different runs with different parameters should be handled by the submitter. Jobs are bound to the lifetime of a Ray cluster, so if the cluster goes down, all running jobs on that cluster will be terminated.
To get started with Ray Jobs, check out the quickstart guide, which walks you through the CLI tools for submitting and interacting with a Ray Job. This is suitable for any client that can communicate over HTTP to the Ray Cluster. If needed, Ray Jobs also provides APIs for programmatic job submission and job submission using REST.
Finally, if you would like to run an application interactively and see the output in real time, you can use Ray Client. This tool can be useful during development.