Creating a Ray Engine Endpoint
Creating a Ray endpoint is the primary step for establishing a connection between you and the AI DataLake engine. With a Ray endpoint, you can perform various data processing and analysis tasks on the AI DataLake engine. This section describes how to create a Ray endpoint.
Prerequisites
- A workspace has been created. For details, see Creating a Workspace.
- Compute resources have been created. For details, see Purchasing a Reserved Resource Pool.
Creating an Endpoint
Select an endpoint type to create an endpoint tailored to your service requirements.
- RayCluster: 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: 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: Ray Federation endpoints enable unified management across multiple Ray clusters and streamline scheduling for RayJob workloads, maximizing compute efficiency and improving service continuity.
- Log in to the AI DataLake console.
- In the upper left corner of the page, select the target workspace.
- In the left navigation pane, choose Engine Endpoints > Ray. The Ray engine endpoint list appears.
- Click Create Endpoint in the upper right corner.
- Configure basic information.
Table 1 Basic information Parameter
Description
Endpoint Type
Set the endpoint type to RayCluster.
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.
Endpoint Name
Enter an endpoint name. It is a unique endpoint identifier. This name cannot match an existing endpoint and cannot be changed after creation.
- The name can contain only lowercase letters, digits, and hyphens (-), and must start with a letter and end with a letter or digit.
- The name can contain a maximum of 63 characters.
Endpoint Display Name
Enter an endpoint display name. This name can be changed after creation and appears on the console to help users identify the endpoint.
- The name can contain only letters, digits, and hyphens (-).
- The name can contain a maximum of 63 characters.
Add Description
Click Add Description to add a description for the endpoint. This parameter is optional.
You can enter a description to specify the purpose and background of the endpoint, helping other users understand its use cases.
Tags
Click Add Tag and enter a tag key and value to classify, identify, and manage your endpoints. Tags help you quickly filter and group resources.
For more information about tags, see Managing AI DataLake Tags.
- Configure resource settings.
Table 2 Resource configuration Parameter
Description
Resource Allocation
Select a resource allocation mode.
Reserved: Uses reserved resource pools to provide exclusive resources. This mode is ideal for stable, continuous workloads, such as production projects and critical tasks.
Compute Resource Pool
Select an existing compute resource pool from the drop-down list. If no compute resource pool is available, click Buy Compute Resource to purchase one. For details, see Purchasing a Reserved Resource Pool.
- Configure the cluster. When configuring an endpoint, you must configure the head node and worker groups of the compute cluster.
Table 3 Cluster configuration Parameter
Description
Head
The head node initializes the cluster and maintains the metadata of all worker nodes. It also monitors the resources (CPUs, GPUs, and memory) of the cluster in real time, makes intelligent scheduling decisions based on a global resource view, and assigns computing tasks to the most suitable worker nodes for execution. This achieves load balancing and improves resource utilization.
- Name: The name of the head node, which is fixed as head.
- Resource Specifications: Select the compute specifications for the head node from the drop-down list.
- Cards: Specify the number of GPUs or NPUs. This parameter is not applicable to CPU resources.
- vCPU and Memory: Specify the number of vCPUs and the amount of memory allocated to auxiliary worker processes running on the head node.
Worker Groups
Worker nodes receive and process tasks from the head node. These worker nodes break down large-scale computing tasks into subtasks that are processed in parallel. This significantly improves computing efficiency. You can configure the minimum and maximum number of worker nodes. This dynamically adjusts compute resources based on workload, which improves resource utilization.
- Name: The name of the worker group, for example, Workergroup01. You can add worker groups as needed.
- Resource Specifications: Select the compute resource specifications for the worker group.
- Cards per Worker: Specify the number of GPUs or NPUs. This parameter is not applicable to CPU resources.
- vCPU and Memory per Worker: Specify the number of vCPUs and the amount of memory (in GiB) allocated to each worker node for task execution.
- Worker Range (Min–Max): The minimum and maximum number of worker nodes allowed in the worker group. Auto scaling is supported. For example, 0–3 indicates that up to 3 worker nodes are allowed. It is ideal for on-demand scheduling.
- Add or delete worker groups: If you need multiple worker groups, click Add Worker Group. A maximum of 10 worker groups are supported for each endpoint. If a worker group is no longer needed, click Delete in the Operation column to remove it.
NOTE:After the specifications are configured, you can view the resource specifications, as well as the minimum and maximum resource quantities, in the Resource Quota area on the right side of the page.
- Configure image settings.
Table 4 Image settings Parameter
Description
Image Settings
Click
. On the Built-in Images or Custom Images tab, click an image name, select an image version, and then click OK.- Built-in images are classified into CPU-only images (whose versions end with .cpu) and converged images. For CPU-only images, omitting GPU/NPU dependencies reduces image size, accelerates image pulling and startup, and improves resource utilization and task deployment efficiency.
- Custom images allow you to modify the container runtime environment of jobs, thereby enhancing job functionality and performance. If the built-in images do not meet your service requirements, register a custom image by following the instructions in Custom Images, and then select it here.
- Configure storage settings. When a compute task accesses or generates a large volume of data that exceeds the capacity of the local compute node storage or the shared storage system, you can add external storage resources.
Table 5 Storage settings Parameter
Description
Ephemeral Storage
Storage space used to hold temporary data generated during job execution. This parameter cannot be modified after the endpoint is created.
Select an ephemeral storage resource from the drop-down list. If no ephemeral storage resource is available, click Buy Ephemeral Storage. For details, see Purchasing Storage Resources.
Storage Path
A physical subdirectory within the storage volume.
Share Path
An absolute path within the container.
Add Ephemeral Storage
To add multiple ephemeral storage resources, click Add Ephemeral Storage. You can configure a maximum of 10 ephemeral storage resources for each endpoint.
- Configure an agency.
Table 6 Agency settings Parameter
Description
Agency Settings
Agency-assigned endpoint permissions are automatically converted to credentials and updated in the Ray cluster during job runtime. You can use these credentials in the Ray cluster to access the required services.
You must enable Agency Settings, and then select an agency name. If no agency is available, click Create Agency. For details, see Creating a Custom Agency.
- Configure GCS high availability (HA). The Global Control Service (GCS) manages cluster metadata. Without HA, a GCS failure triggers a cluster-wide outage. Enabling HA allows the GCS to recover metadata via Redis, ensuring high availability and preventing cluster-level faults.
Table 7 GCS HA settings Parameter
Description
GCS High Availability
Determine whether to enable GCS HA based on your requirements.
- HA enabled: If the GCS fails, metadata can be restored using Redis to prevent cluster-level faults.
- HA disabled: If the GCS fails, the entire cluster may fail.
If you select this option, you must also configure DCS Redis Instance.
DCS Redis Instance
DCS Redis instances provide high-performance, high-availability distributed cache services suitable for a wide range of scenarios. Properly configuring and managing these instances can significantly enhance application performance and reliability.
Select a cache instance from the drop-down list. If no instance is available, click Create Cache Instance to create one. For details, see Buying a DCS Redis Instance.
After creating a DCS Redis instance, you must enable SSL. The procedure is as follows:
- Click the name of your DCS instance to go to the Basic Information page.
- In the left navigation pane, choose SSL. Toggle on
to enable SSL as prompted.
When selecting a DCS Redis instance, you must configure Account and DEW Secret Name for the instance.
Account
Select an account from the drop-down list. If no account is available, click Create to create one. For details, see Configuring DCS Redis ACL Users.
DEW Secret Name
Store your DCS instance password in a DEW secret. Set the key to password and the value to your DCS instance password.
Select a DEW secret from the drop-down list. If no DEW secret is available, click Create to create one. For details, see Creating a Secret.
VPC Endpoint
A VPC endpoint establishes a secure, private network channel for cross-tenant access to DCS Redis instances without traversing the public internet.
Select a VPC endpoint from the drop-down list. If none is available, click New to create one. For details, see Creating a VPC Endpoint Service.
NOTE:Once an endpoint is created, its associated VPC endpoint cannot be changed.
- Configure the History Server.
Table 8 History Server configuration Parameter
Description
History Server
Determine whether to enable the History Server as required. When this feature is enabled, you can view historical job execution details and logs to efficiently analyze job runs, troubleshoot errors, and optimize performance.
NOTE:- Enabling this feature consumes 4 vCPUs and 8 GiB of memory.
- After creating an endpoint, you can enable or disable this feature by editing the endpoint. For details, see Editing a Ray Engine Endpoint.
- For details about how to view historical job execution details and logs, see Viewing Historical Jobs Using the History Server.
Result Set Storage
Select an OBS parallel file system to store the result cache and log files generated during job execution. The OBS parallel file system cannot be changed after the endpoint is created.
If no OBS parallel file system is available, click Create OBS parallel file system to create one. For details, see Creating a Parallel File System.
NOTE:Result set storage is used to store result files generated during job execution. You can manually clear these files periodically based on your retention requirements, or configure a lifecycle rule in the OBS parallel file system to manage their storage duration automatically. For details, see Creating a Lifecycle Rule.
Agency
Select an agency for OBS storage from the drop-down list. If no agency is available, click Create Agency. For details, see Creating a Custom Agency.
- Configure the AOM monitoring integration as needed.
Table 9 Parameters for AOM monitoring integration Parameter
Description
Monitor AOM
Select Monitor AOM if needed.
When AOM monitoring is enabled, application metrics are reported to AOM for centralized management. AOM enables real-time metric collection, custom monitoring, alarm configuration, and O&M data visualization, providing complete visibility into service status. For details about monitoring metrics and their descriptions, see Resource, Job, and Native Metrics for Ray Endpoints.
Prometheus Instance
Select a Prometheus instance from the drop-down list. If no instance is available, click Create Instance. For details, see Creating a Prometheus Instance.
- Configure the LTS log ingestion as prompted.
Table 10 Parameters for ingesting logs to LTS Parameter
Description
Ingest Logs to LTS
Select Ingest Logs to LTS as required. If log ingestion to LTS is not enabled, you cannot view the logs of the corresponding job. For details about log ingestion, see Managing AI DataLake Job Logs Using LTS.
Configure log ingestion to deliver logs to LTS for easier management. You can use LTS to search for cloud service logs by keyword, analyze operations data, and monitor statuses and alarms.
If you enable this option, you must also configure the log group and log stream.
Log Group and Log Stream
A log group is the basic unit for LTS to manage logs. It comprises log streams and categorizes them. A log group does not store any log data. It only helps with log stream management.
LTS manages logs by log stream. Different types of collected logs are classified and stored in different log streams for easier management.
- If log groups and log streams already exist, you can select them from the drop-down lists.
- If no log group or log stream is available, create a log group first and then select it. The procedure is as follows: NOTE:
You can create a maximum of 100 log groups per account.
- Click Create Log Group.
- In the Create Log Group and Log Stream panel that appears, set the parameters.
Log Group Name: Enter a name for the log group.
Log Stream Name: Enter a name for the log stream.
Log Retention (Days): Set the log storage duration. Logs are stored for 30 days by default.
Enterprise Project: Select an enterprise project.
- Click OK.
- Click
to refresh the drop-down list, and then select a log group and log stream.
For details about the parameters, see Creating a Log Group and Creating a Log Stream.
- Configure basic information.
- Click Create Now. Once the endpoint is created, you can view its details in the endpoint list. After the status changes to Running, you can submit jobs to the endpoint.
- Log in to the AI DataLake console.
- In the upper left corner of the page, select the target workspace.
- In the left navigation pane, choose Engine Endpoints > Ray. The Ray engine endpoint list appears.
- Click Create Endpoint in the upper right corner of the page and configure the parameters.
- Configure basic information.
Table 11 Basic information Parameter
Description
Endpoint Type
Set the endpoint type to RayJob.
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.
Endpoint Name
Enter an endpoint name. It is a unique endpoint identifier. This name cannot match an existing endpoint and cannot be changed after creation.
- The name can contain only lowercase letters, digits, and hyphens (-), and must start with a letter and end with a letter or digit.
- The name can contain a maximum of 63 characters.
Endpoint Display Name
Enter an endpoint display name. This name can be changed after creation and appears on the console to help users identify the endpoint.
- The name can contain only letters, digits, and hyphens (-).
- The name can contain a maximum of 63 characters.
Add Description
Click Add Description to add a description for the endpoint. This parameter is optional.
You can enter a description to specify the purpose and background of the endpoint, helping other users understand its use cases.
Tags
Click Add Tag and enter a tag key and value to classify, identify, and manage your endpoints. Tags help you quickly filter and group resources.
For more information about tags, see Managing AI DataLake Tags.
- Configure resource settings.
Table 12 Resource configuration Parameter
Description
Resource Allocation
Select a resource allocation mode.
When the endpoint resource allocation mode is set to Hybrid or On-demand, the system triggers elastic resource scheduling. In this mode, you authorize AI DataLake to access your task and resource data to perform specific operations on your behalf.
- Reserved: Uses reserved resource pools to provide exclusive resources. This mode is ideal for stable, continuous workloads, such as production projects and critical tasks.
- Hybrid: Provides baseline stability and automatic scaling. Reserved resources are used first, and auto scaling is triggered automatically during peak hours. (Currently, only CPU resource scaling is supported.) 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. NOTE:
You can create only one on-demand job endpoint.
Compute Resource Pool
This parameter applies only when the resource allocation mode is set to Reserved or Hybrid.
Select an existing compute resource pool from the drop-down list. If no compute resource pool is available, click Buy Compute Resource to purchase one. For details, see Purchasing a Reserved Resource Pool.
Maximum Resource Quota
This parameter applies only when the resource allocation mode is set to On-demand.
Set the maximum vCPU limit for the endpoint to ensure stable resource allocation. This prevents abnormal tasks from exhausting cluster resources and helps reduce costs.
- Configure specifications. This parameter applies only when the resource allocation mode is set to Reserved or Hybrid.
Table 13 Specification configuration Parameter
Description
Resource Flavor
Select a flavor from the drop-down list. CPU, GPU, and NPU resources are supported.
Resource Quota (Min-Max)
Set the minimum and maximum resources that the resource pool allocates to this endpoint.
- The minimum value is grayed out by default and cannot be configured.
- The maximum value must be greater than 0 but cannot exceed the maximum capacity of the selected compute resource pool.
Add Flavor
You can click Add Flavor to add multiple flavors as required. A maximum of 10 flavors can be added.
If a flavor is no longer required, you can click Delete in the Operation column to remove it. However, at least one flavor configuration must be retained.
After the specifications are configured, you can view the resource specifications, as well as the minimum and maximum resource quantities, in the Resource Quota area on the right side of the page.
- Configure an agency.
Table 14 Agency settings Parameter
Description
Agency Settings
Agency-assigned endpoint permissions are automatically converted to credentials and updated in the Ray cluster during job runtime. You can use these credentials in the Ray cluster to access the required services.
You must enable Agency Settings, and then select an agency name. If no agency is available, click Create Agency. For details, see Creating a Custom Agency.
- Configure the History Server.
Table 15 History Server configuration Parameter
Description
History Server
Determine whether to enable the History Server as required. When this feature is enabled, you can view historical job execution details and logs to efficiently analyze job runs, troubleshoot errors, and optimize performance.
NOTE:- Enabling this feature consumes 4 vCPUs and 8 GiB of memory.
- After creating an endpoint, you can enable or disable this feature by editing the endpoint. For details, see Editing a Ray Engine Endpoint.
- For details about how to view historical job execution details and logs, see Viewing Historical Jobs Using the History Server.
Result Set Storage
Select an OBS parallel file system to store the result cache and log files generated during job execution. The OBS parallel file system cannot be changed after the endpoint is created.
If no OBS parallel file system is available, click Create OBS parallel file system to create one. For details, see Creating a Parallel File System.
NOTE:Result set storage is used to store result files generated during job execution. You can manually clear these files periodically based on your retention requirements, or configure a lifecycle rule in the OBS parallel file system to manage their storage duration automatically. For details, see Creating a Lifecycle Rule.
Agency
Select an agency for OBS storage from the drop-down list. If no agency is available, click Create Agency. For details, see Creating a Custom Agency.
- Configure the AOM monitoring integration as needed.
Table 16 Parameters for AOM monitoring integration Parameter
Description
Monitor AOM
Select Monitor AOM if needed.
When AOM monitoring is enabled, application metrics are reported to AOM for centralized management. AOM enables real-time metric collection, custom monitoring, alarm configuration, and O&M data visualization, providing complete visibility into service status. For details about monitoring metrics and their descriptions, see Resource, Job, and Native Metrics for Ray Endpoints.
Prometheus Instance
Select a Prometheus instance from the drop-down list. If no instance is available, click Create Instance. For details, see Creating a Prometheus Instance.
- Configure the LTS log ingestion as prompted.
Table 17 Parameters for ingesting logs to LTS Parameter
Description
Ingest Logs to LTS
Select Ingest Logs to LTS as required. If log ingestion to LTS is not enabled, you cannot view the logs of the corresponding job. For details about log ingestion, see Managing AI DataLake Job Logs Using LTS.
Configure log ingestion to deliver logs to LTS for easier management. You can use LTS to search for cloud service logs by keyword, analyze operations data, and monitor statuses and alarms.
If you enable this option, you must also configure the log group and log stream.
Log Group and Log Stream
A log group is the basic unit for LTS to manage logs. It comprises log streams and categorizes them. A log group does not store any log data. It only helps with log stream management.
LTS manages logs by log stream. Different types of collected logs are classified and stored in different log streams for easier management.
- If log groups and log streams already exist, you can select them from the drop-down lists.
- If no log group or log stream is available, create a log group first and then select it. The procedure is as follows: NOTE:
You can create a maximum of 100 log groups per account.
- Click Create Log Group.
- In the Create Log Group and Log Stream panel that appears, set the parameters.
Log Group Name: Enter a name for the log group.
Log Stream Name: Enter a name for the log stream.
Log Retention (Days): Set the log storage duration. Logs are stored for 30 days by default.
Enterprise Project: Select an enterprise project.
- Click OK.
- Click
to refresh the drop-down list, and then select a log group and log stream.
For details about the parameters, see Creating a Log Group and Creating a Log Stream.
- Configure basic information.
- Click Create Now. Once the endpoint is created, you can view its details in the endpoint list. After the status changes to Running, you can submit jobs to the endpoint.
When a single Ray cluster processes high-concurrency tasks, issues such as service unavailability from head node failures and performance degradation in large clusters can occur, making it difficult to meet peak service demands. By creating a Ray Federation endpoint, you can combine multiple RayCluster endpoints into a single entry point and intelligently schedule jobs based on the resource load of each RayCluster endpoint. This approach overcomes the performance bottlenecks of a single cluster and ensures service continuity.
- Log in to the AI DataLake console.
- In the upper left corner of the page, select the target workspace.
- In the left navigation pane, choose Engine Endpoints > Ray. The Ray engine endpoint list appears.
- Click Create Endpoint in the upper right corner of the page and configure the parameters.
Table 18 Parameter description Parameter
Description
Endpoint Type
Select Ray Federation.
Endpoint Name
Enter an endpoint name. It is a unique endpoint identifier. This name cannot match an existing endpoint and cannot be changed after creation.
- The name can contain only lowercase letters, digits, and hyphens (-), and must start with a letter and end with a letter or digit.
- The name can contain a maximum of 63 characters.
Endpoint Display Name
Enter an endpoint display name. This name can be changed after creation and appears on the console to help users identify the endpoint.
- The name can contain only letters, digits, and hyphens (-).
- The name can contain a maximum of 63 characters.
Add Description
Click Add Description to add a description for the endpoint. This parameter is optional.
You can enter a description to specify the purpose and background of the endpoint, helping other users understand its use cases.
Endpoints
Select RayCluster endpoints as required. You can select up to 50 endpoints.
After a job is submitted to a Ray Federation endpoint, the system automatically distributes it based on the resource load of each RayCluster endpoint.
NOTE:- Before using this function, create RayCluster endpoints. For details, see Creating a RayCluster Endpoint.
- Only RayCluster endpoints in the Running status are displayed. You can filter endpoints by entering a keyword in the search box.
- You can click
next to an endpoint name to view its head and worker group details.
- Click Create Now. If the status changes to Running, the Ray Federation endpoint has been successfully created.
Follow-up Operations
After creating a Ray endpoint, you can perform the following operations as needed:
- View, modify, and delete the endpoint. For details, see Managing a Ray Engine Endpoint.
- Connect to the endpoint and submit jobs. For details, see Connecting to a Ray Endpoint and Submitting Jobs.
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