By default, each workspace contains two resource queues that are used to run jobs: dev_queue and root_queue. You can create queues to isolate resources and facilitate resource management. This topic describes how to manage a resource queue.
Prerequisites
A workspace is created. For more information, see Manage workspaces.
Create a resource queue
You can create a resource queue to isolate resources and facilitate resource management. If you do not want to create a resource queue, you can use the dev_queue or root_queue queue to run jobs.
Go to the Resources page.
Log on to the E-MapReduce (EMR) console.
In the left-side navigation pane, choose
.On the Spark page, click the name of the workspace that you want to manage.
In the left-side navigation pane of the EMR Serverless Spark page, choose Operation Center > Resources.
On the Queue Resources tab, click Create Queue.
In the Create Queue dialog box, configure parameters and click OK. The following table describes the parameters.
Parameter
Description
Queue Name
The name of the resource queue. The name must be unique.
NoteAfter the queue is created, you cannot change the queue name.
Maximum Concurrency
The maximum number of concurrent compute units (CUs) that can be run for a queue. Configure this parameter based on the configuration of the session to be deployed on the queue. Each queue requires at least 3 CUs.
Application Environment
Development: The environment where developers write, test, and debug code. The development environment includes an Integrated Development Environment (IDE), a version control system, and various debugging tools that are used by developers to build and debug software.
Production: The production environment that provides stable, efficient, and secure services for users.
Modify the maximum concurrency of the queue
On the Queue Resources tab of the Resources page, find the desired queue and click Edit Queue in the Actions column.
On the Resources tab of the Edit Queue dialog box, change the value of the Maximum Concurrency parameter.
Click OK.
Manage permissions on a resource queue
On the Queue Resources tab of the Resources page, find the desired queue and click Edit Queue in the Actions column.
In the Edit Queue dialog box, click the Permissions tab.
On the Permissions tab, add, modify, or remove permissions for a user.
Click OK.
Delete a resource queue
You cannot delete the resource queue root_queue.
Before you delete a resource queue, make sure that no jobs in the workspace are associated with the queue. Otherwise, all associated jobs will be affected after the resource queue is deleted.
On the Queue Resources tab of the Resources page, find the desired resource queue and click Delete in the Actions column.
In the Delete Queue message, click Delete Queue.
The default queue root_queue cannot be deleted.
References
For information about how to create and run a workflow, see Manage workflows.
For information about access control, see Manage users and roles.
For information about SQL sessions, see Manage SQL sessions.