Updated on 2026-11-06 GMT+08:00

Compute Resource Pool Overview

AI DataLake Compute Resource Pool Types

AI DataLake provides two types of compute resources: reserved resource pools and elastic resources. They meet compute requirements in different scenarios and can also be used together.

  • Reserved resource pools: You need to purchase compute resources in advance, including CPUs, NPUs, and GPUs. You can select the appropriate combination of compute resources based on your service load characteristics.

    Reserved resource pools provide dedicated resources for core services, ensuring exclusive user access and stable, predictable performance. They are ideal for batch processing tasks and AI computing scenarios that require long-term, stable operation.

  • Elastic resources: You do not need to purchase resources in advance. Instead, you pay only for what you use.
  • Hybrid resource allocation: This is not an independent compute resource type. Instead, it is an allocation mode (Hybrid) selected when you configure an endpoint. In this mode, the system schedules both reserved and elastic resources. Reserved resources handle baseline workloads, while elastic resources automatically scale out when reserved capacity is insufficient. This mode ensures stable service operation while optimizing resource costs.
Figure 1 AI DataLake compute resource types and hybrid resource allocation
Table 1 AI DataLake compute resource types and hybrid resource allocation

Resource Type

Billing Mode

Description

Advantage

Use Case

Reserved resource pool

Yearly/Monthly

You can pay in advance to lock in resource availability within a specific period. During this period, resources can be used at any time. After the period expires, the resources automatically become invalid and you must renew or purchase them again. This mode is suitable for scenarios where services are stable and loads are predictable.

The fixed yearly/monthly fee is more cost-effective than the pay-per-use rate. Reserved resources ensure sufficient computing power during peak hours.

Production projects: You are advised to use the yearly/monthly billing mode for production workloads. Jobs in these projects are debugged after development, which means they are relatively stable.

Reserved resource pool

Pay-per-use

You must purchase reserved instances in advance. After an instance is created, it is billed based on its actual running duration. It is ideal for stable requirements where resource capacity can be planned in advance.

Dedicated resources that can be provisioned or released at any time.

Production projects: These projects have stable requirements, resource capacity can be planned in advance, and dedicated resource pools are required.

Elastic resources

Pay-per-use

Elastic resources do not need to be purchased in advance. You can use resources first and pay for them based on the actual resource usage of your tasks. You do not need to reserve extra resources for peak hours, which effectively controls costs. These resources are suitable for scenarios with high service fluctuations or short-term, ad hoc tasks.

Pay based on actual usage, which is more flexible.

Development projects: This type of project is used for development and debugging. Jobs are highly unpredictable, and the data volume is small. Pay-per-use billing helps you effectively control costs by keeping resource consumption within a specific range.

Hybrid resource allocation (Reserved resource pool + Elastic resources)

-

Both reserved resource pools and elastic resources are used.

The system first checks whether the available capacity of the reserved resource pool can meet the requirements of new jobs.

Reserved resources ensure stable service running, while elastic resources meet fluctuating workload requirements.

This mode is suitable for long-term, planned service requirements. If the estimated usage is exceeded, the excess usage is billed on a pay-per-use basis.

AI DataLake Compute Resource Allocation

AI DataLake supports three resource allocation modes. You can select a mode when configuring an endpoint.

Table 2 AI DataLake compute resource allocation

Resource Allocation

Resource Type

Billing Mode

Resource Characteristic

Applicable Engine Endpoint

Use Case

Reserved

Reserved resource pool

Yearly/Monthly

You must purchase resources in advance and are billed based on your subscription period. Resources are dedicated to your exclusive use during this period.

  • AuraJob
  • AuraJobV2
  • RayCluster
  • RayJob
  • Ray Federation
  • SparkSQL
  • SparkJob
  • FlinkJob

This mode is suitable for stable, continuous workloads, such as production environments and critical tasks.

Pay-per-use

Stable resources and short durations. Compared with yearly/monthly billing, pay-per-use billing does not require a commitment on the usage duration and offers greater flexibility.

On-demand

Elastic resources

Pay-per-use

You do not need to purchase resources in advance. You are billed based on your actual usage.

  • RayJob
  • SparkSQL
  • SparkJob
  • FlinkJob

This mode is suitable for scenarios with unstable resource usage, such as occasional tests and verification,

burst workloads, development and testing environments, and service exploration.

Hybrid mode

Reserved resource pool + Elastic resources

-

In hybrid mode, the system first checks whether the reserved resource pool has sufficient capacity for new jobs. If reserved capacity is insufficient, the system automatically allocates elastic resources to run the jobs and bills you on a pay-per-use basis for the elastic resources consumed.

  • AuraJob
  • AuraJobV2
  • RayJob
  • SparkSQL
  • SparkJob
  • FlinkJob

This mode is ideal for workloads with stable baseline resource usage and occasional traffic spikes, where elastic resources handle peak loads.

Example: Scenarios with stable daily workloads and occasional traffic spikes

Resource Allocation: Reserved Resources

  • Introduction

    In reserved mode, dedicated compute resources are allocated to ensure stable performance for your services and offer a lower unit price.

    In this mode, you purchase a specific amount of compute resources in advance that remain dedicated exclusively to your workloads. This mode is suitable for workloads that run continuously and have stable resource demands, providing consistent performance and optimal cost-efficiency.

    Figure 2 Reserved resource allocation mode
  • Core features
    • Exclusive resources and stable performance: Reserved resources are dedicated to your workloads, eliminating resource contention and ensuring stable performance.
    • Optimal cost: Yearly/monthly billing is more cost-effective than pay-per-use for equivalent resource usage.
  • Use cases
    • Long-running, stable workloads: Resource usage remains steady, making this mode ideal for continuously running services and workloads with minimal daily processing volume fluctuations.
    • High-performance services: These applications have strict query latency requirements and depend on dedicated resources to ensure consistent response times. Dedicated resources ensure that your performance is unaffected by other concurrent workloads.
    • Cost optimization: For long-running production workloads, using reserved resource pools can lower resource expenses while maintaining high utilization rates.

Resource Allocation: On-demand Mode

  • Introduction

    On-demand mode dynamically allocates and releases compute resources as needed, billing you only for actual task execution time. This provides a flexible, efficient, and cost-effective approach to resource management.

    This mode is ideal for short-term or ad hoc workloads, such as development and testing, temporary tasks, or bursty workloads. This mode significantly reduces resource costs, improves resource utilization, and ensures efficient task execution.

    Figure 3 On-demand resource allocation mode
  • Core features
    • Automatic management: The system automatically allocates and releases resources, eliminating the need for manual intervention.
    • No reservation required: You do not need to reserve compute resources in advance, preventing resource idleness and waste.
  • Use cases
    • Short-term or ad hoc workloads: The system dynamically allocates resources based on actual task requirements and releases them after the tasks are complete, preventing resource waste.
    • Bursty or high-load services: The system quickly scales resources to meet burst demands, ensuring service stability and performance.

Resource Allocation: Hybrid Mode

  • Introduction

    Hybrid mode combines reserved and elastic resources. Reserved resources are used first. If reserved resources are insufficient during peak hours, elastic resources are allocated. Reserved resources ensure stable baseline performance, while automatically scheduled elastic resources enable the system to handle sudden burst loads.

    Figure 4 Hybrid resource allocation mode
  • Core features
    • Reserved resources, which are purchased in advance, serve as the baseline for your workloads and are continuously available, regardless of whether elastic resources are allocated.
    • When the service workload exceeds the capacity of reserved resources, the system automatically provisions elastic resources without requiring manual intervention. Elastic resources are billed based on actual usage, preventing resource waste and minimizing idle costs.
  • Resource allocation priority

    Figure 5 illustrates the hybrid resource allocation sequence. The system allocates compute resources based on the following order of priority:

    • Priority 1: Idle capacity within reserved resources.
    • Priority 2: Pay-as-you-go elastic resources.
    Figure 5 Principles of hybrid resource allocation

    In hybrid mode, the system preferentially uses resources from reserved resource pools for new jobs.

    • Only reserved resource pools will be used as long as they provide sufficient resources.
    • If reserved resource pools do not provide sufficient resources, the system automatically schedules elastic resources for jobs. In this case, you will be billed for the elastic resources on a pay-per-use basis.
  • Use cases

    Hybrid mode is suitable for the following scenarios:

    • Scenarios with predictable workload fluctuations:

      The workload changes periodically throughout the day, and the resource demand fluctuates regularly. For example, more resources are required during the day, and fewer resources are required at night.

    • Scenarios where both performance and cost-effectiveness are required:

      Reserved resources are used to ensure stable service operation and provide predictable baseline performance. In addition, the system ensures the capability to handle peak or unexpected workloads by automatically scaling resources without manual intervention.

    • Scenarios with unpredictable burst workloads:

      In scenarios where burst workloads may occur, resources must scale quickly to meet data analysis requirements. These requirements are usually temporary and short-term.