Ray Engine Endpoint Overview
What Is an Endpoint?
In AI DataLake, an endpoint is the entry point for interacting with engines and compute resources. It associates compute engines with compute resources, so that submitted jobs can access the engines and use the compute resources of AI DataLake.
Advantages of endpoints:
- Automatic binding of engines and compute resource pools: When you create an endpoint, AI DataLake automatically binds engines to compute resource pools. When submitting jobs, you do not need to configure mappings between jobs, engines, and resources.
- Flexible configuration of compute resources allocated to endpoints: When creating an endpoint, you can configure compute specifications for the resource pool based on service requirements. You can set the minimum and maximum resource quotas allocated to the endpoint.
Figure 1 illustrates how AI DataLake endpoints work.
- Jobs interact exclusively with endpoints, hiding the complexity of underlying engines and resources.
- Each endpoint is automatically associated with a compute engine (Aura, Ray, Spark, or Flink) and compute resources (CPUs, GPUs, and NPUs).
- Compute resource specifications for endpoints can be flexibly configured without restarting or reconfiguring running jobs.
Ray Engine Endpoint Types
The Ray engine supports the following endpoint types, each tailored to distinct service requirements. You can select the optimal endpoint type based on your workload characteristics.
- RayCluster endpoint
RayCluster endpoints provide a persistent, reusable compute resource pool for running multiple Ray jobs. This endpoint type is ideal for repetitive tasks, interactive development, and scenarios that require multiple jobs to share a persistent environment.
- RayJob endpoint
RayJob endpoints provide on-demand task execution units that are destroyed after use. Resources are automatically released once tasks are completed to reduce costs. However, because the cluster must start up each time a task is submitted, you may experience a slight startup delay. This type of endpoint is ideal for one-off tasks where resources are automatically released upon completion.
- Ray Federation endpoint
Ray Federation endpoints enable unified management across multiple Ray clusters and streamline cross-cluster job scheduling, making them ideal for scaling compute capacity and improving service continuity.
Resource Allocation Modes for the Ray Engine
The Ray engine supports three resource allocation modes: reserved, hybrid, and on-demand. You can select the optimal mode based on your workload characteristics to optimize costs and balance resource performance.
| Endpoint Type | Resource Allocation | Description | Reference |
|---|---|---|---|
| RayCluster | Reserved | Provides exclusive performance and optimal cost-effectiveness. Reserved resources with the lowest unit prices ensure stable baseline performance. This mode is best for steady workloads. | |
| RayJob | Reserved | Provides exclusive performance and optimal cost-effectiveness. Reserved resources with the lowest unit prices ensure stable baseline performance. This mode is best for steady workloads. | |
| Hybrid | Provides baseline stability and automatic scaling. Reserved resources are used first, and auto scaling is triggered automatically during peak hours. This mode is best for workloads with predictable fluctuations. | ||
| On-demand | Charges you based on the actual time taken to execute each task. No costs are incurred when no tasks are running. This mode is well-suited for short-term or ad-hoc tasks, including development, testing, and temporary projects. | ||
| Ray Federation | Reserved | Provides exclusive performance and optimal cost-effectiveness. Reserved resources with the lowest unit prices ensure stable baseline performance. This mode is best for steady workloads. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
