Next steps
You now know how to use Anyscale Workspaces to launch a cluster and run workloads. From here, we recommend the following resources.
Bring your workload to production
While workspaces provide an excellent remote development environment, some users choose to develop in a local environment and run the workload remotely. For this approach, you can rely on Anyscale Jobs and Services. When paired with CI/CD and monitoring, they are also our recommended method for bringing your workloads to production.
Anyscale Jobs
Jobs provide features like automated failure handling, email alerting, and persisted outputs and logs. While Anyscale Jobs are similar to Ray Jobs, Anyscale Jobs do not require an active cluster for submission. Instead, each individual job will spin up its own cluster and execute your Python code (unless you are using a Job Queue, in which case Anyscale will reuse clusters).
The lifecycle of an Anyscale Job includes:
- Starting a cluster.
- Running your Python code.
- Restarting any failed nodes.
- Terminating the cluster.
To dive into Anyscale Jobs, read Get started with jobs.
Anyscale Services
Anyscale Services are designed to give you a scalable, fault-tolerant API endpoint for your online inference workloads. They support autoscaling, observability through Grafana dashboards, high-availability, and zero downtime upgrades.
The lifecycle of an Anyscale Service includes:
- Creating a cluster.
- Creating a load balancer (1 per Anyscale Cloud).
- Running your Ray Serve Python application.
- Dealing with any node failures (see here on how to set up HA for the head node).
- Rolling out new versions of your application.
- New versions will start a new cluster.
- Place the new cluster behind the load balancer.
- Once the new version is healthy, shift traffic over to the new version over a couple of minutes.
- Terminate the old version’s cluster.
Follow the guide in Get started with services to learn about services.
Create your own cluster configuration
Thus far, you have used a workspace with the default cluster configuration. Anyscale provides extensive capabilities to shape the cluster to your needs. To get started with container images and compute configurations, you can follow the documentation in Configuration overview. The configuration section also provides details on the different kinds of storage that clusters use.
Explore templates
On the homepage of the Anyscale console, you find many different templates to explore. With two clicks you can spin up a workspace with step-by-step instructions that show how to build different Ray applications.
➡️ Thinking in Ray and Anyscale - Learn about the high-level thought process of building a scalable Ray app on Anyscale.