Overview

Queue

Queues in DLI are computing resources, which are the basis for using DLI. All executed jobs require computing resources.

Currently, DLI provides two types of queues, For SQL and For general use. SQL queues are used to run SQL jobs. General-use queues are compatible with Spark queues of earlier versions and are used to run Spark and Flink jobs.

  • The SQL queue automatically restarts every 12 hours.
  • Queues of different types cannot be directly switched. If you need to change a queue, purchase a new queue.

Difference Between Computing and Storage Resources

Table 1 Difference between computing and storage resources

Resource

How to Obtain

Billing Mode

Function

Compute resource

Create queue on the DLI management console.

Billed based on the amount of data scanned or CUHs.

Used for executing queries.

Storage resource

DLI has a 5 GB quota.

Billed based on the amount of stored data.

Used for storing data in the database and DLI tables.

  • Storage resources are internal storage resources of DLI and represent the amount of data stored in DLI.
  • By default, DLI provides a 5 GB quota for storage resources. If you need over 5 GB storage resources, submit a service ticket to apply for more storage resources.
  • A queue named default is preset in DLI. DLI adopts the pay-per-use billing mode. If you are uncertain about the required queue capacity or have no available queue capacity to run queries, you can execute jobs using this queue.
  • The default queue is used only for user experience. It may be occupied by multiple users at a time. Therefore, it is possible that you fail to obtain the resource for related operations. You are advised to use a self-built queue to execute jobs.

Dedicated Queue

Resources of a dedicated queue are not released when the queue is idle. That is, resources are reserved regardless of whether the queue is used. Dedicated queues ensure that resources exist when jobs are submitted. When purchasing a pay-per-use queue, you can select a dedicated queue. Dedicated queues are billed for 24 hours regardless of whether they are used. Yearly/Monthly queues are dedicated queues.

Cross-AZ Queues

An AZ contains one or more physical data centers. Each AZ has independent cooling, fire extinguishing, moisture-proofing, and electricity facilities. Within an AZ, computing, network, storage, and other resources are logically divided into multiple clusters. AZs within a region are interconnected using high-speed optical fibers to allow you to build cross-AZ high-availability systems. For more information, see Regions and AZs.

DLI dual-AZ queues improve data availability by creating a duplicate queue in the second AZ. You can continuously use DLI when one AZ is unavailable. The dual-AZ mode suits those who require high availability.

A DLI dual-AZ queue is created with the same compute resources in two AZs. For example, if you require 1,400 CUs, you can select 1,400 CUs and select the dual-AZ option when creating a queue. Then, DLI creates 1,400 CUs dedicated compute resources in two AZs. When one AZ is unavailable, the other AZ can properly process your compute tasks.

  • Currently, only SQL queues are supported.
  • Currently, dual-AZ mode is supported only for yearly/monthly queues and pay-per-use dedicated queues. The default queue and the normal pay-per-use queues are not supported.
  • If you select Dual-AZ when purchasing a queue, the billing is twice as that in single-AZ mode.

AI-enhanced Queue

AI-enhanced queues support SQL jobs specific to AI analysis. DLI uses AI images to integrate a series of common AI algorithm packages based on the original Spark images. Spark and AI capabilities can be combined, helping you run machine learning jobs. For details about the installation packages on which the AI image depends, see Dependencies for AI Image Installation. When creating a queue, select AI-enhanced for Queue Type.

Queue Specifications Change

After purchasing a queue, queue resources may be insufficient or wasted as the service scenario changes.

DLI allows you to change queue specifications (elastic scaling). There are two adjustment modes: manual and scheduled adjustment.

Scaling can be performed for a newly created queue only when jobs are running on this queue.

Automatic Queue Scaling

Flink jobs use pay-per-use queues. DLI can automatically trigger scaling for jobs based on the job size.

Scaling can be performed for a newly created queue only when there are jobs running on this queue.

Queue Management Page

Queue Management provides the following functions:

To receive notifications when a DLI job fails, SMN Administrator permissions are required.

The queue list displays all queues created by you and the default queue. You can view information about queues, such as the queue capacity, billing mode, and more. Queues are listed in chronological order by default in the queue list, with the most recently created queues displayed at the top.

Table 2 Parameter description

Parameter

Description

Name

Name of a queue.

Type

Queue type.

  • For SQL
  • For general purpose
  • Spark queue (compatible with earlier versions)

CPU Architecture

  • x86
  • Kunpeng

Specifications

Queue size. Unit: CU

CU is the pricing unit of queues. A CU consists of 1 vCPU and 4-GB memory. The computing capabilities of queues vary with queue specifications. The higher the specifications, the stronger the computing capability.

Elastic Scaling

Target CU value for scheduled scaling, or the maximum and minimum CU values of the current specifications.

Billing Mode

SQL jobs are billed in either of the following ways:

  • Pay-per-use

    You are billed for the executed SQL jobs based on either of the following methods:

    • Pay-per-use/By CUH: The compute usage is billed based on the CUH used. It is recommended that you select CUH as the package type.
    • Pay-per-use/By SQL computations: You are billed based on the amount of data scanned of each job. It is recommended that you select Scanned data volume as the package type.
      NOTE:

      Only the default queue is billed based on the amount of data scanned. All user-defined queues are billed based on the CUH used.

    • In dedicated resource mode of pay-per-use queues, you will be billed by calendar hour since the queue is created. In this mode, you can create enhanced datasource connections.
  • Yearly/Monthly:
    • Yearly
    • Monthly

Owner

Queue owner.

Created

Time when the queue is created.

Description

Description of a queue specified during queue creation. If no description is provided, -- is displayed.

Project

Displays the enterprise project to which the created queue belongs. If the project is not an enterprise project, -- is displayed.

An enterprise project facilitates project-level management and grouping of cloud resources and users. For details about how to set enterprise projects, see Enterprise Management User Guide.

NOTE:

This parameter is displayed only for users who have enabled the Enterprise Management Service.

Operation

  • Details: Allow you to view the permission information of the queue and assign queue permissions to users.
  • Restart: Forcibly restart a queue.
    NOTE:

    Only the SQL queue has the Restart operation.

  • Modify Enterprise Project: Modify the enterprise project to which the selected queue belongs.
    NOTE:

    This parameter is displayed only for users who have enabled the Enterprise Management Service. For details about how to set enterprise projects, see Enterprise Management User Guide.

  • Delete: Allow you to delete the selected queue. You cannot delete a queue where there are running jobs or jobs are being submitted.
    NOTE:

    Only pay-per-use queues can be deleted.

  • Renew/Unsubscribe: Select Renew or Unsubscribe as required.
    NOTE:

    You can only renew or unsubscribe from a yearly/monthly subscription.

  • Modifying CIDR Block: When DLI enhanced datasource connection is used, the CIDR block of the DLI queue cannot overlap with that of the data source. You can modify the CIDR block as required. For example, 10.0.0.0/8-24, 172.16.0.0/12-24, and 192.168.0.0/16-24.
    NOTE:

    You can modify the CIDR block only for queues billed on a yearly/monthly basis.

  • Modify Queue Specifications: You can select Scale-out or Scale-in as required. The number of CUs after modification must be an integer multiple of 16.
    NOTE:

    You can change the specifications of only Pay-per-use/By CUH billing queues.

  • Create Periodic Task: You can set different queue sizes at different time or in different periods based on the service period or usage. The system automatically performs scale-out or scale-in as scheduled. The target value must be an integral multiple of 16 CUs.
    NOTE:

    You can create a periodic task only for the pay-per-use or CUH billing queue.

  • Manage Permissions: You can view the user permissions corresponding to the queue and grant permissions to other users.
  • Test Address Connectivity: Test whether the queue is reachable to the specified address. The domain name and IP address are supported. The port can be specified.