Creating a Queue
Before executing a job, you need to create a queue.
- If you use a sub-account to create a queue for the first time, log in to the DLI management console using the main account and keep records in the DLI database before creating a queue.
- It takes 6 to 10 minutes for a job running on a new queue for the first time.
- After a pay-per-use queue is created, if no job is run within one hour, the system releases the queue.
- Pay-per-use queues cannot be changed to yearly/monthly queues. If you want to use yearly/monthly queues, you need to purchase them directly.
Procedure
- You can create a queue on the Overview, SQL Editor, or Queue Management page.
- In the upper right corner of the Overview page, click Purchase Queue.
- To create a queue on the Queue Management page:
- In the navigation pane of the DLI management console, choose Queue Management.
- In the upper right corner of the Queue Management page, click Purchase Queue to create a queue.
- To create a queue on the SQL Editor page:
- On the top menu bar of the DLI management console, click SQL Editor.
- On the left pane of the displayed SQL Editor page, click
to the right of Queues.
-
On the Purchase Queue page, specify the parameters by referring to Table 1.
Figure 1 Buying a yearly/monthly queue
Figure 2 Buying a pay-per-use queue
To create a queue, you must have passed the real-name authentication on the public cloud platform.
Table 1 Parameters Parameter
Description
Billing Mode
- Yearly/Monthly
- Pay-per-use: You are advised to purchase a CUH package to enjoy a discount.
Region
Select the region where the queue is to be created. Resource packages in different regions are isolated. Select the region based on your requirements.
Queue
Name of a queue.
- The queue name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_) or be left unspecified.
- The length of the name cannot exceed 128 characters.
Queue Usage
- For SQL: compute resources used for SQL jobs.
- For general purpose: compute resources used for Spark and Flink jobs. NOTE:
In pay-per-use billing mode, you can select Dedicated Resource Mode. In this mode, you can create enhanced datasource connections. You will be billed by calendar hour since the queue is created.
AZ Mode
The deployment mode for the DLI queue. Select dual-AZ if you require high availability.
NOTE:- Currently, only SQL queues billed in yearly/monthly mode and pay-per-use SQL queues in dedicated resource mode support the dual-AZ policy.
- Dual-AZ improves data availability by creating a duplicate queue in the second AZ, but at an increased cost (twice as much as that of single AZ mode).
- This is a one-time configuration and cannot be changed later.
CPU Architecture
- x86
- Kunpeng
Queue Specifications Mode
If you selected the yearly/monthly billing mode, you need to select a queue specifications mode. You can select Default or Custom specifications.
CU Specifications
Select queue specifications as required. The value can be 16 CUs, 64 CUs, 256 CUs, or 512 CUs. A CU includes one core and 4 GB memory. If the remaining CU quota is less than the preceding specifications, no queue can be created.
Enterprise Project
If the created queue belongs to an enterprise project, you can select the corresponding enterprise project.
An enterprise project facilitates project-level management and grouping of cloud resources and users. For details about how to set enterprise projects, see the Enterprise Management User Guide.
NOTE:This parameter is displayed only for users who have enabled the Enterprise Management Service.
Description
Description of the queue to be created. The length of the name cannot exceed 256 characters.
Required Duration
You must specify the Required Duration if Billing Mode is set to Yearly/Monthly. The longer the subscription duration is, the more discounts you can get. If Auto renew is selected, monthly subscriptions are renewed each month. And yearly subscriptions are renewed each year.
Advanced Configuration
If you select the Yearly/Monthly billing mode or select Dedicated Resource Mode in the Pay-per-use mode, you need to select Advanced Configuration.
- Default: The system automatically configures the parameter.
- Custom: Select CIDR Block.
CIDR Block: You can specify the CIDR block. For details, see Modifying the Queue CIDR Block. If DLI enhanced datasource connection is used, the CIDR block of the DLI queue cannot overlap with that of the data source.
The following lists the CIDR blocks that can be used by different resources.
- 16 CUs:
172.16.0.0/12 ~ 172.31.255.0/24
192.168.0.0/16 ~ 192.168.255.0/24
- 64 CUs:
172.16.0.0/12 to 172.31.252.0/24
192.168.0.0/16 to 192.168.252.0/24
- 256 CUs:
172.16.0.0/12 to 172.31.252.0/22
192.168.0.0/16 to 192.168.252.0/22
- 512 CUs:
172.16.0.0/12 to 172.31.252.0/21
192.168.0.0/16 to 192.168.252.0/21
In the Pay-per-use billing mode, you can select a Queue Type when Dedicated Resource Mode is selected.
Queue Type: When running an AI-related SQL job, select AI-enhanced. When running other jobs, select Basic.
NOTE:If "AI feature is not supported on the queue." is displayed when you select an AI-enhanced queue, contact technical support.
- 16 CUs:
Tag
Tags are used to identify cloud resources. A tag pair includes the Tag Key and Tag Value. If you want to use the same tag to identify multiple cloud resources, that is, to select the same tag from the drop-down list box for all services, you are advised to create predefined tags on the Tag Management Service (TMS). For details, see the Tag Management Service User Guide.
NOTE:- A maximum of 10 tags can be added.
- Only one tag value can be added to a tag key.
- Tag Key: Enter a tag key name in the text box. NOTE:
- A tag key contains a maximum of 36 characters. The first and last characters cannot be spaces. The following characters are not allowed: =*,<>\|/
- If there are predefined tags, you can select a tag from the drop-down list box.
- Tag Value: Enter a tag value in the text box. NOTE:
- A tag value contains a maximum of 43 characters. The first and last characters cannot be spaces. The following characters are not allowed: =*,<>\|/
- If there are predefined tags, you can select a tag from the drop-down list box.
- Click Buy Now to confirm the configuration.
- Confirm the configuration and click Pay Now.
If the queue name already exists, the system displays a message indicating that the queue name already exists when you click Pay Now. In this case, click Previous to go back to modify the queue name.
-
After a queue is created, you can view and select the queue for use on the Queue Management page or SQL Editor page.
It takes 6 to 10 minutes for a job running on a new queue for the first time.
Last Article: Queue Permission Management
Next Article: Deleting a Queue
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.