Realtime Compute for Apache Flink supports resource isolation and permission management for workspaces and namespaces. You can create multiple namespaces and assign independent resources and permissions to each, providing complete resource and access isolation. This topic describes how to reconfigure resources for workspaces and namespaces.
Before you begin
When a RAM user, RAM role, or another Alibaba Cloud account reconfigures resources for a workspace or namespace, ensure that the account has the necessary permissions to view the Flink workspace and reconfigure its resources. For more information, see management console permissions and development console permissions.
Resource hierarchy in a Flink workspace
Scaling up is a top-down process: a workspace's resources are allocated to its namespaces, and a namespace's resources are then assigned to its resource queues.
Scaling down is a bottom-up process: you must first scale down the resource queues, then the namespaces, and finally the workspace.
Subscription resource adjustment
Scale up resources
-
Log on to the Realtime Compute for Apache Flink console.
-
(Optional) Scale up workspace resources.
If a namespace has insufficient resources and its current allocation is fully utilized, you must first scale up the parent workspace.
-
In the Actions column of the target workspace, choose .
-
In the Reconfiguration section, enter the target number of CUs for each CU type.
-
Read the Flink Fully-Managed Service Level Agreement, select I have read and agree to the agreement, and then click OK to complete the payment.
After you complete the payment, you can view the reconfigured resources in the Consumed\n/Purchased CUs column for the target workspace.
-
-
Allocate resources to a namespace.
-
Click the
icon to the left of the target workspace ID. -
In the Actions column of the target namespace, click Reconfigure Resources.
-
In the dialog box that appears, set the resource allocation amount and click OK.
You can view the available resources on the page. Resources are added to the default-queue of the namespace by default.
-
(Optional) Each Flink namespace has a default queue (default-queue) to run jobs. If you need to isolate and manage resources, you can add more resource queues within the namespace and assign different amounts of resources to them. For more information, see Manage resource queues.
Scale down resources
-
Log on to the Realtime Compute for Apache Flink console.
-
Decrease the resources of a resource queue.
-
In the navigation pane on the left, choose .
-
Click Edit Queue, and then enter a new value for Resource Amount.
For example, the original resource amount for a namespace is 20 CU. To scale down the namespace to 12 CU, enter 12 in the resource amount field.
-
-
Decrease the resources of a namespace.
You can use the unallocated resources to create new namespaces, allocate them to other namespaces, or scale down the workspace.
-
Click the
icon to the left of the target workspace ID. -
In the Actions column of the target namespace, click Reconfigure Resources.
-
In the dialog box that appears, decrease the resource allocation amount and click OK. The minimum change is 1 CU, and the new allocation cannot be less than the total CUs allocated to its queues.
-
-
Scale down workspace resources.
To reduce costs and qualify for a partial refund, you must scale down the workspace resources. For more information, see Refunds.
-
In the Actions column of the target workspace, choose .
-
In the Reconfiguration section, enter the target number of CUs for each CU type.
-
Read the Flink Fully-Managed Service Level Agreement, select I have read and agree to the agreement, and then click OK.
You can view the reconfigured resources in the Consumed\n/Purchased CUs column of the target workspace.
-
Pay-as-you-go resource adjustment
-
For workspaces purchased before the new version in December 2023, the default quota is 9,999,999 CUs. For workspaces purchased after the new version in December 2023, the default quota at creation is 1,000 CUs, with a maximum of 9,999,999 CUs.
-
In pay-as-you-go mode, computing resources are billed based on the number of CUs used. For more information, see Billable items.
Increase the quota
If the current quota for a workspace or namespace is insufficient, follow these steps to increase it.
-
Log on to the Realtime Compute for Apache Flink console to check the quota status for your workspaces and namespaces.
-
In the Actions column of the target workspace, choose to view the current workspace quota.
-
Click the
icon to the left of the target workspace ID to view the Consumed / Allocated CUs for each namespace.-
If the total allocated CUs < the workspace quota, you can directly allocate the unallocated resources to other namespaces or create a new namespace. See Step 3 for details.
-
If the total allocated CUs = the workspace quota, you must first increase the workspace quota before you can create a new namespace or increase the resources of an existing one.
-
-
-
Increase the workspace resource quota.
In the Actions column of the target workspace, choose and edit the Quota Ceiling.
-
Increase the namespace resource quota.
-
Click the
icon to the left of the target workspace ID. -
In the Actions column of the target namespace, click Reconfigure Resources. In the dialog box that appears, increase the resource allocation amount.
-
Decrease the quota
-
Log on to the Realtime Compute for Apache Flink console.
-
Decrease the quota of the target resource queue.
-
Decrease the resources of a resource queue within the namespace.
-
In the navigation pane on the left, choose .
-
Click Edit Queue and enter a new value for Resource Amount.
For example, if a resource queue has 20 CUs, you can scale it down by changing its resource amount to 12 CUs.
-
-
-
Decrease the namespace resource quota.
-
Click the
icon to the left of the target workspace ID. -
In the Actions column of the target namespace, click Reconfigure Resources and configure the namespace quota. The minimum change is 1 CU, and the new quota cannot be less than the total CUs allocated to its resource queues.
-
-
Decrease the workspace resource quota.
In the Actions column of the target workspace, choose and edit the Quota Ceiling. The quota for a pay-as-you-go workspace cannot be less than the total quota of all its namespaces.
Hybrid billing resource adjustment
-
Reconfigure fixed resources
To reconfigure fixed resources, follow the same procedure as for a subscription workspace. For more information, see Subscription resource adjustment.
-
Reconfigure elastic resources
-
To reconfigure elastic resources, follow the same procedure as for a pay-as-you-go workspace. For more information, see Pay-as-you-go resource adjustment.
-
The maximum quota for elastic resources is 1,000 CUs.
-
When adjusting elastic resources, the new value cannot be less than the number of elastic CUs already in use.
-
Related documents
-
To run a job in a specific resource queue, see Deploy a job.
-
For details about workspace bills, see View bills.
-
If you are prompted that your account lacks the
describevvpinstancespermission when you log on to the Realtime Compute for Apache Flink console, see Why am I prompted that my account lacks permissions when I log on to the Realtime Compute for Apache Flink console?.
> Reconfigure Workspace Resources
> Reconfigure Workspace Resources
> Editing of Quota Ceilings
> Editing of Quota Ceilings
> > Editing of Quota Ceilings