All Products
Search
Document Center

Realtime Compute for Apache Flink:Manage resource queues

Last Updated:Feb 28, 2026

Resource queues in Realtime Compute for Apache Flink isolate and allocate compute resources across deployments within a namespace. Each namespace includes a default queue named default-queue. Create custom queues to prevent a single deployment or user from consuming all available resources and causing failures for others.

Usage notes

  • Queues can run only in exclusive mode. Queues cannot run in preemption mode. If a queue runs in preemption mode, the resources in the queue cannot be preempted.

  • After specific resources in a queue are released, the resources can be used by a new deployment.

  • If no custom queue exists, all deployments run in default-queue.

Assign a queue to a workload

Workload typeWhere to setParameterReference
DeploymentDeploy draft dialog boxDeployment TargetCreate a deployment
Session clusterStandard section of the Create Session Cluster pageDeployment TargetCreate a session cluster
WorkflowCreate Workflow panelResource QueueManage workflows

Common console steps

The Add, Edit, and Delete procedures all begin with the same navigation steps:

  1. Log on to the Realtime Compute for Apache Flink console.

  2. Find the target workspace and click Console in the Actions column.

  3. In the left-side navigation pane, choose O&M > Queue Management.

Add a queue

Queue name rules

RuleDetail
UniquenessMust be unique within the namespace
LengthMaximum 32 characters
CharactersLowercase letters, digits, and hyphens (-) only
MutabilityCannot be changed after creation

Procedure

  1. Complete the common console steps.

  2. In the upper-left corner of the Queue Management page, click Add queue.

  3. Configure the queue parameters. The parameters differ depending on whether elastic resources are allocated to the namespace.

    Namespaces without elastic resources

    Applies when the workspace billing method is pay-as-you-go, subscription, or Hybrid billing and no elastic resources are allocated to the namespace.

    ParameterDescription
    Queue NameEnter a name that follows the queue name rules.
    Resources (CU)Number of CUs available to the queue. The maximum value equals the remaining unallocated CUs in the namespace. If not enough CUs are available, reconfigure CUs in other queues (see Edit a queue) or increase namespace resources (see Reconfigure resources).

    Namespaces with elastic resources

    Applies when the workspace billing method is Hybrid billing and elastic resources are allocated to the namespace.

    ParameterDescription
    Queue NameEnter a name that follows the queue name rules.
    Fixed Resources (CUs)Number of fixed CUs available to the queue. If not enough fixed CUs are available, adjust resources using the subscription workspace method. See Reconfigure resources.
    Elastic Resources (CUs)Number of elastic CUs available to the queue. The Queue Management page shows the maximum allocatable elastic CUs. If not enough elastic CUs are available, adjust resources using the pay-as-you-go workspace method. See Reconfigure resources.
  4. Click OK.

Edit a queue

Adjust CU allocation for an existing queue when resource needs change.

  1. Complete the common console steps.

  2. Find the target queue and click Edit in the Actions column.

  3. In the Edit Queue dialog box, update the resource values. For parameter descriptions, see Add a queue.

    Important

    The Resources (CU) value cannot be set lower than the number of CUs currently in use by the queue.

  4. Click OK.

Delete a queue

Important
  • The default queue (default-queue) cannot be deleted.

  • A queue with running deployments cannot be deleted.

  • Deleting a queue that a deployment references causes an error when that deployment restarts.

  1. Complete the common console steps.

  2. Find the target queue, click Delete in the Actions column, and then click OK.

Use cases

  • Isolate batch workloads: Assign batch deployments to dedicated queues so they do not starve other jobs of resources.

  • Prioritize critical jobs: Combine queues with the Workflows (public preview) feature to set scheduling priorities for batch drafts.

References