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.
Change the resource quota of a subscription workspace
Increase resource quotas
Log on to the Realtime Compute for Apache Flink console.
(Optional) Increase the workspace's resource quota.
When resources in a namespace are insufficient, start with increasing the resource quota of the workspace.
Find the workspace that you want to manage. In the corresponding Actions column, choose
.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.
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.
Reconfigure resources of the namespace.
Click the icon to the left of the ID of the target workspace.
Find the namespace that you want to manage and select Reconfigure Resources in the Actions column.
In the pop-up dialog box, increase the resources allocated to this namespace, and click OK.
On the current page, you can view resources allocatable to the selected namespace. By default, resources added to a namespace are placed in its default queue.
The default queue within each namespace is used to run deployments. To enhance resource isolation and management, you can create additional queues in a namespace, each configured with varying resource quotas. For more information, see Manage queues.
Reduce resource quotas
Log on to the Realtime Compute for Apache Flink console.
Reduce resources allocated to queues in the namespace. For more information, see Manage queues.
Reduce the resources allocated to the namespace.
After the resource quota of the namespace is reduced, you can proceed to reduce the workspace's resource quota. Alternatively, you can assign unallocated resources to a new or existing namespace.
Click the icon to the left of the target workspace ID.
Find the namespace that you want to manage and select Reconfigure Resources in the Actions column.
In the pop-up dialog box, reduce resources allocated to the namespace and click OK. The minimum resource adjustment is 1 CU, and the lower limit of the resource quota must be equal to or greater than the number of CUs allocated to the queues in the namespace.
Reduce the resource quota of a workspace.
To reduce costs, you can lower the resource quota of a workspace, which qualifies for a refund. For details, see Refund policy.
Find the workspace that you want to manage. In the corresponding Actions column, choose
.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.
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 ceiling of a pay-as-you-go workspace
If your workspace was created before the December 2023 release, its quota ceiling defaults to 9,999,999 CUs. Conversely, a workspace created after the December 2023 release has a default quota ceiling of 1,000 CUs, with a maximum limit of 9,999,999 CUs.
You're charged for the computing resources you use in a pay-as-you-go workspace. For more information, see Billable items.
Increase the upper quota limit
If the upper quota limit of your workspace or namespace does not meet your business requirements, raise the upper quota limit as follows:
Log on to the Realtime Compute for Apache Flink console.
To view the current quota ceiling of your workspace, choose
in the corresponding Actions column.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 quota ceiling, you can create a new namespace or assign 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 ceiling, you must increase the quota ceiling before creating a new namespace or allocating more resources to an existing one.
Increase the quota ceiling of the workspace.
Find the workspace you want to manage. In the Actions column, select
. In the pop-up window, enter your desired quota ceiling value of the workspace.Increase the namespace's quota ceiling.
Click the icon to the left of the ID of the target workspace.
In the Actions column corresponding to the target namespace, select Reconfigure Resources. In the pop-up window, enter your desired resource quota ceiling of the namespace.
Reduce the resource quota ceiling
Log on to the Realtime Compute for Apache Flink console.
Reduce the target namespace's resource quota ceiling.
Reduce resources allocated to the queues in the namespace. For more information, see Manage queues.
Reduce the namespace's resource quota ceiling.
In the Actions column corresponding to the namespace, click Reconfigure Resources. In the pop-up window, enter your desired quota ceiling value of the namespace. The minimum adjustment for resource reconfiguration is 1 CU. The resource quota ceiling must be at least equal to the number of CUs allocated to the queues within the namespace.
Reduce the resource quota ceiling of the workspace.
In the Actions column corresponding to the target workspace, select
. In the pop-up Edit Workspace Quota Limit dialog box, enter your desired quota ceiling value of the workspace. The workspace's resource quota ceiling 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 ceiling of a pay-as-you-go workspace. For details, see Change the resource quota ceiling of a pay-as-you-go workspace.
The maximum quota ceiling of elastic resources is 1,000 CUs.
The minimum quota ceiling 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 Console operations.