Each workspace includes two default queues — dev_queue and root_queue — for running tasks. Add queues to isolate resources between environments or teams, control compute unit (CU) allocation per workload, and set separate access permissions for each group of users.
Limitations
| Limitation | Details |
|---|---|
| Queue name | Cannot be changed after creation. |
root_queue |
Cannot be deleted. |
| Deleting a queue | The queue must not be associated with any tasks. Deleting a queue that has associated tasks affects all of those tasks. |
subscription_queue |
Created automatically when you purchase a subscription quota. |
| Session instances | Set the concurrency limit of the deployment queue to at least 3 CU. |
Prerequisites
Before you begin, ensure that you have:
-
A workspace. For more information, see Manage workspaces.
Add a queue
-
Go to the Resource Management page.
-
Log in to the E-MapReduce console.
-
In the navigation pane on the left, choose EMR Serverless > Spark.
-
On the Spark page, click the name of the target workspace.
-
On the EMR Serverless Spark page, in the navigation pane on the left, click Resource Management.
-
-
On the Queue Resources tab, click Add Queue.
-
In the Add Queue dialog box, configure the parameters based on your billing method and click OK. ### Pay-as-you-go ### Subscription ### Hybrid billing
Pay-as-you-go
Parameter Description Queue Name A unique name for the queue. Cannot be changed after creation. Elastic Concurrency Limit (CU) The maximum number of CUs that can run concurrently in the queue. For session instance deployment queues, set this to at least 3 CU. To adjust this limit later, see Adjust queue resources. Application Environment The intended use of the queue: Development (for writing, testing, and debugging code, with an integrated development environment (IDE), version control, and debugging tools) or Production (for live workloads requiring stable, efficient, and secure services). Subscription
Parameter Description Queue Name A unique name for the queue. Cannot be changed after creation. Fixed Resource Quota (CU) The maximum CUs allocated to the queue, bounded by the remaining subscription quota of the workspace. To free up quota, adjust resources on another queue (see Adjust queue resources) or purchase additional subscription quota. Application Environment The intended use of the queue: Development or Production. Hybrid billing
Parameter Description Queue Name A unique name for the queue. Cannot be changed after creation. Elastic Concurrency Limit (CU) The maximum number of CUs that can run concurrently in the queue. For session instance deployment queues, set this to at least 3 CU. To adjust this limit later, see Adjust queue resources. Fixed Resource Quota (CU) The maximum CUs allocated to the queue, bounded by the remaining subscription quota of the workspace. To free up quota, adjust resources on another queue (see Adjust queue resources). Application Environment The intended use of the queue: Development or Production.
Edit a queue
Adjust queue resources
Follow the steps for your billing method.
Pay-as-you-go
-
On the Queue Resources tab of the Resource Management page, click Edit Queue in the Actions column of the target queue.
-
On the Resources tab of the Edit Queue dialog box, adjust the Elastic Concurrency Limit (CU).
-
Click OK.
Subscription
-
On the Queue Resources tab of the Resource Management page, click Edit Queue in the Actions column of the target queue.
-
On the Resources tab of the Edit Queue dialog box, adjust the Fixed Resource Quota (CU).
-
Click OK.
Hybrid billing
-
On the Queue Resources tab of the Resource Management page, click Edit Queue in the Actions column of the target queue.
-
On the Resources tab of the Edit Queue dialog box, adjust the Fixed Resource Quota (CU) and Elastic Concurrency Limit (CU).
-
Click OK.
Edit queue permissions
-
On the Queue Resources tab of the Resource Management page, click Edit Queue in the Actions column of the target queue.
-
In the Edit Permission dialog box, click the Permission tab.
-
Add, modify, or remove users and their permissions.
-
Click OK.
Delete a queue
Before deleting a queue, make sure it is not associated with any tasks. Deleting an associated queue affects all tasks linked to it. root_queue cannot be deleted.
-
On the Queue Resources tab of the Resource Management page, click Delete in the Actions column of the target queue.
-
In the Delete Queue dialog box, click Delete Queue.
What's next
-
To create and run workflows, see Manage workflows.
-
To manage user access, see Manage users and roles.
-
To manage SQL sessions, see Manage SQL sessions.