Realtime Compute for Apache Flink allows you to isolate and manage resources for workspaces and 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 namespace permissions.
Resource structure of a workspace
If you want to increase the resource quota of a workspace, allocate the resources in the workspace to multiple namespaces in the workspace and then allocate the resources in the namespaces to queues.
If you want to reduce the resource quota of a workspace, reduce the resource quota of a queue and the resource quota of a namespace in the workspace, and then reduce the resource quota of the workspace.
Increase the resource quota of a subscription workspace
Log on to the Realtime Compute for Apache Flink console.
Optional. Increase the resource quota of a workspace.
If the available namespace resources are insufficient or have been used, increase the resource quota of the workspace first.
On the Fully Managed Flink tab, find the workspace that you want to manage and choose
in the Actions column.In the Reconfiguration section of the Reconfigure Workspace Resources dialog box, enter values in the Target CU column for the single-zone compute unit (CU) type and cross-zone CU type.
Read and agree to the terms of service, select I have read and agree to Alibaba Cloud International Website Realtime Compute Service Level Agreement, and then click OK.
After you complete the payment, you can view the new resource quota in the Consumed/Purchased CUs column that corresponds to the workspace.
Reconfigure resources for a namespace.
On the Fully Managed Flink tab, click the icon to the left of the ID of the workspace in which you want to reconfigure namespace resources.
Find the namespace that you want to manage and click Reconfigure Resources in the Actions column.
In the Reconfigure Resources dialog box, adjust the slider next to the namespace name to reconfigure resources and click OK.
By default, namespace resources are added to the queue named default-queue in the namespace.
Each namespace has a default queue named default-queue that is used to run deployments. If you want to isolate and manage resources, you can create queues in a namespace and configure resources for the queues. For more information, see Manage queues.
Reduce the resource quota of a subscription workspace
If you reduce the resource quota of a subscription workspace, a specific amount is refunded. For more information, see Refund policy.
Log on to the Realtime Compute for Apache Flink console.
Reduce the resource quota of a queue.
Each namespace has a default queue named default-queue that is used to run deployments. For more information, see Manage queues.
Reduce the resource quota of a namespace in the workspace.
After the resource quota of the namespace is reduced, the idle resources can be used to create a namespace or be allocated to other namespaces, or you can reduce the resource quota of the workspace.
On the Fully Managed Flink tab, click the icon to the left of the ID of the workspace in which you want to reconfigure namespace resources.
Find the namespace that you want to manage and click Reconfigure Resources in the Actions column.
In the Reconfigure Resources dialog box, adjust the slider next to the namespace name to reduce the resource quota and click OK. You can reduce at least one CU each time you reduce the resource quota of a namespace, and the number of CUs in the new resource quota cannot be less than the number of CUs allocated to the queues in the namespace.
If you want to reduce costs, perform the following step to reduce the resource quota of the workspace. Then, a specific amount is refunded.
Reduce the resource quota of the workspace.
On the Fully Managed Flink tab, find the workspace that you want to manage and choose
in the Actions column.In the Reconfiguration section of the Reconfigure Workspace Resources dialog box, enter values in the Target CU column for the single-zone CU type and cross-zone CU type.
Read and agree to the terms of service, select
, and then click OK.
After you complete the payment, you can view the new resource quota in the Consumed/Purchased CUs column that corresponds to the workspace.
Configure the maximum resource quota of a pay-as-you-go workspace
If you purchase a workspace before the new version is released in December 2023, the default value of the Quota Ceiling parameter is 9999999, in units of CUs.
If you purchase a workspace after the new version is released in December 2023, the default value of the Quota Ceiling parameter for the workspace is 1000, and the maximum value of the parameter is 9999999, in units of CUs.
You are charged for the resource usage of a pay-as-you-go workspace based on the number of CUs. For more information, see Billable items.
Perform the following steps to configure the maximum resource quota of a pay-as-you-go workspace:
Log on to the Realtime Compute for Apache Flink console.
View the resource quota of a pay-as-you-go workspace.
On the Fully Managed Flink tab, find the workspace that you want to manage and choose
in the Actions column. In the Edit Workspace Quota Limit dialog box, view the maximum resource quota of the workspace.View the resource quota in the Consumed/Purchased CUs column that corresponds to the workspace.
You can perform the following operations based on the relationships between the total number of CUs allocated to all namespaces in a workspace and the maximum resource quota of the workspace:
Total number of CUs allocated to all namespaces in a workspace = Maximum resource quota of the workspace
You can increase the maximum resource quota of the workspace in the Edit Workspace Quota Limit dialog box. Then, you can create a namespace or increase the resource quota of a namespace. For more information, see Step 2a in this section.
You can reduce the resource quota of a queue in a namespace and then reconfigure resources in the namespace. For more information, see Step 3 and Step 4 in this section.
Total number of CUs allocated to all namespaces in a workspace < Maximum resource quota of the workspace
The idle resources can be allocated to other namespaces or be used to create a namespace.
Reduce the resource quota of a queue.
Each namespace has a default queue named default-queue that is used to run deployments. For more information, see Manage queues.
Reduce the maximum resource quota of a namespace.
After the resource quota of the namespace is reduced, the idle resources can be used to create a namespace or be allocated to other namespaces.
On the Fully Managed Flink tab, click the icon to the left of the ID of the workspace in which you want to reconfigure namespace resources.
Find the namespace that you want to manage and click Reconfigure Resources in the Actions column. You can reduce at least one CU each time you reduce the resource quota of a namespace, and the number of CUs in the new resource quota cannot be less than the number of CUs used by the queues in the namespace.
In the Allocation of namespace quota ceilings dialog box, adjust the slider next to the namespace name to reconfigure resources and click OK.
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 indicating that the account does not have the describevvpinstances permission may appear. For more information about how to resolve this issue, see What do I do if my account does not have the required permissions when I log on to the Realtime Compute for Apache Flink console?