All Products
Search
Document Center

Realtime Compute for Apache Flink:Reconfigure resources

Last Updated:Mar 17, 2025

Realtime Compute for Apache Flink allows you to isolate and manage resources for individual workspaces or namespaces. You can create multiple namespaces and assign separate resources and permissions to each namespace. This way, resources and permissions are isolated among namespaces. This topic describes how to reconfigure resources for workspaces and namespaces.

Usage notes

If you use a Resource Access Management (RAM) user, a RAM role, or another Alibaba Cloud account to reconfigure resources for a workspace or namespace, make sure that the RAM user, RAM role, or Alibaba Cloud account has the permissions to view the workspace or namespace and reconfigure the resources for the workspace or namespace. For more information, see Grant permissions to a RAM user and Grant permissions on namespaces.

Resource distribution diagram

Use a top-down approach for a scale-up. To be specific, raise the resource quota of the workspace, allocate resources to namespaces in the workspace, and then assign resources to the queues in the namespaces.

Conversely, adopt a bottom-up approach for a scale-down. To be specific, reduce the resources allocated to the queues, proceed to the namespaces, and then adjust the resource quota of the workspace.

image

Change the resource quota of a subscription workspace

Increase the resource quota

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

  2. (Optional) Increase the workspace's resource quota.

    When all resources are allocated to namespaces but remain insufficient, start with increasing the resource quota of the workspace.

    1. Find the workspace that you want to manage. In the corresponding Actions column, choose More > Reconfigure Workspace Resources.

    2. In the Reconfiguration section of the pop-up dialog box, enter a desired value in the Target CU column.

      Note

      For a workspace with cross-zone high availability enabled, specify the desired resource quotas for both single-zone and cross-zone CU types.

    3. Read Alibaba Cloud International Website Realtime Compute Service Level Agreement, select the Terms of Service checkbox, and click OK. Then proceed to complete the payment.

      Once the reconfiguration is finalized, you can see the updated resource quota in the Consumed/Purchased CUs column associated with the workspace.

  3. Allocate resources to the namespace.

    1. Click the 展开按钮 icon to the left of the target workspace ID.

    2. Find the target namespace and select Reconfigure Resources in the Actions column.

    3. In the pop-up dialog box, increase the resources allocated to this namespace, and click OK.

      This dialog box also displays resources allocatable to the namespace. By default, resources added to a namespace are placed in its default queue.

Each namespace has a default queue to run deployments. To enhance resource isolation and management, you can create additional queues, each configured with varying resource quotas. For more information, see Manage queues.

Reduce the resource quota

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

  2. Click the 展开按钮 icon to the left of the target workspace ID.

  3. Click the name of the target namespace.

    The development console appears.

  4. Reduce resources allocated to a queue in the namespace.

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

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

      The Edit Queue dialog box appears.

    3. In the Resources (CU) field, enter a desired number.

      For example, if you want to reduce the resource quota of the namespace where the queue belongs from 20 CUs to 12 CUs, enter 12 in the Resources (CU) field. The adjustment result:

      imageimage

  5. Reduce the resources allocated to the namespace.

    After this step, you can either proceed to reduce the resource quota of the workspace or assign the unallocated resources a new or existing namespace.

    1. Return to the management console.

    2. Click the 展开按钮 icon to the left of the target workspace ID.

    3. Find the target namespace and select Reconfigure Resources in the Actions column.

    4. In the pop-up dialog box, reduce resources allocated to the namespace.

      Note
      • The minimum adjustment unit is 1 CU.

      • Resources cannot be reduced to a level below the number of CUs assigned to the queues within the namespace.

    5. Click OK.

  6. Reduce the resource quota of the workspace.

    After lowering the resource quota of a workspace, you can request a refund. For details, see Refund policy.

    1. In the management console, find the workspace that you want to manage.

    2. In the corresponding Actions column, choose More > Reconfigure Workspace Resources.

    3. In the Reconfiguration section of the pop-up dialog box, enter a desired value in the Target CU column. For a workspace with cross-zone high availability enabled, specify the desired resource quotas for both single-zone and cross-zone CU types.

    4. Read Alibaba Cloud International Website Realtime Compute Service Level Agreement, select the Terms of Service checkbox, and click OK.

      Once the configuration is finalized, you can see updated resource quota of the workspace reflected in the Consumed/Purchased CUs column.

Change the resource quota of a pay-as-you-go workspace

Note
  • If your workspace was created before the December 2023 release, its quota defaults to 9,999,999 CUs. Conversely, a workspace created after the December 2023 release has a default quota of 1,000 CUs, which can be increased to 9,999,999 CUs.

  • In a pay-as-you-go workspace, you're charged for the number of computing resources you use. For more information, see Billable items.

Increase the resource quota

If the resource quota of your workspace or namespace does not meet your business requirements, raise it as follows:

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

    1. To view the current resource quota of the pay-as-you-go workspace, choose More > Editing of quota ceilings in the corresponding Actions column.

    2. Click the 展开按钮 icon to the left of the workspace ID to view consumed/allocated CUs for each namespace in the workspace.

      • If the total number of allocated CUs across all namespaces is below the workspace's resource quota, you can create a new namespace or assign the unallocated resources to an existing one (refer to step 3 for further details.)

      • If the total number of allocated CUs equals the workspace's resource quota, you must increase the resource quota before creating a new namespace or allocating more resources to an existing one.

  2. Increase the resource quota of the workspace.

    1. In the Actions column of the target workspace, select More > Editing of quota ceilings.

    2. In the pop-up window, enter your desired quota value of the workspace.

  3. Increase the namespace's resource quota.

    1. Click the 展开按钮 icon to the left of the target workspace ID.

    2. In the Actions column corresponding to the target namespace, select Reconfigure Resources.

    3. In the pop-up window, enter your desired resource quota of the namespace.

Reduce the resource quota

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

  2. Find the target workspace and click the 展开按钮 icon to the left of its ID.

  3. Click the name of the target namespace.

    The development console appears.

  4. Reduce resources allocated to a queue.

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

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

    3. In the Edit Queue dialog box, enter a desired number in the Resources (CU) field.

      For example, to reduce the resource quota of the namespace where the queue belongs from 20 CUs to 12 CUs, you can enter 12 in the Resources (CU) field.

      imageimage

  5. Reduce resources assigned to the namespace.

    1. Return to the management console.

    2. Find the target namespace, and click Reconfigure Resources in the Actions column.

    3. In the dialog box that appears, enter a desired value in the Quota Ceiling (CU) field.

      Note
      • The minimum adjustment unit is 1 CU.

      • Resources cannot be reduced to a level below the number of CUs assigned to the queues within the namespace.

  6. Reduce the resource quota of the workspace.

    1. In the Actions column corresponding to the target workspace, select More > Editing of quota ceilings.

    2. In the pop-up Edit Workspace Quota Limit dialog box, enter your desired quota value of the workspace.

      Note

      The workspace's resource quota must be equal to or greater than the total number of allocated CUs across all namespaces within the workspace.

Reconfigure resources for a hybrid-billed workspace

  • Adjust fixed resource quotas

    The process for changing the quota of fixed resources is identical to that of adjusting the resource quota of a subscription workspace. For detailed instructions, see Change the resource quota of a subscription workspace.

  • Adjust elastic resource quotas

    • The process for changing the quota of elastic resources is the same as adjusting the resource quota of a pay-as-you-go workspace. For details, see Change the resource quota of a pay-as-you-go workspace.

    • The maximum quota of elastic resources is 1,000 CUs.

    • The minimum quota of elastic resources must be equal to or greater than the allocated elastic resources.

References

  • You can run a deployment in the specified queue. For more information, see Create a deployment.

  • For more information about workspace bills, see View bills.

  • When you log on to the Realtime Compute for Apache Flink console, an error message may be displayed, indicating that the account does not have the describevvpinstances permission. For information about how to handle this issue, see FAQ about workspace and namespace management and operations.