Create an environment
To set up a Ray cluster, the user needs to first create two environments, one for the Ray cluster (base or worker environment) and one for the workspace/job execution (compute environment). To create a new base Ray cluster environment, follow the general environment creation steps with the followingenvironment_attributes:
-
Base Image
Select Custom Image and enter an image URI that points to a deployable Ray image.
Domino recommends that you use the latest release tag for your version of Ray from the options published at compute Environment catalog.
For example, for Domino 6.0 the following cluster images are available:
-
quay.io/domino/ray-cluster-environment:ray2.36.0-py3.10-domino6.0 -
quay.io/domino/ray-cluster-gpu-environment:ray2.36.0-py3.10-gpu-domino6.0
-
- Supported Clusters Select Domino managed Ray (Required). This ensures that the environment will be available for use when creating Ray clusters from workspaces and jobs.
- Visibility You can set this attribute the same way you would for any other compute environment based on your desired visibility.
- Dockerfile Instructions Leave blank to use the images as provided by Ray project. You can modify this section to include additional packages that might be necessary for your workloads and must be available on the Ray cluster nodes. See Manage dependencies to learn more.
- Pluggable Notebooks / Workspace Sessions Leave this section blank because the Ray base environments are not intended to include any workspace configuration.
Prepare your Ray execution compute environment
In addition to the base Ray cluster environment, you must connect your workspace to your cluster. Domino recommends that you use the Ray base image to create a compatible workspace. See compute Environment catalog. For example, for Domino 6.0, the available compute image is:quay.io/domino/domino-ray-environment:ubuntu22-py3.10-r4.4-ray2.36.0-domino6.0