All Products
Search
Document Center

Realtime Compute for Apache Flink:Reconfigure resources

Last Updated:Sep 30, 2024

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.

image

Increase the resource quota of a subscription workspace

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

  2. 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.

    1. On the Fully Managed Flink tab, find the workspace that you want to manage and choose More > Reconfigure Workspace Resources in the Actions column.

    2. 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.

    3. 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.

  3. Reconfigure resources for a namespace.

    1. 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.

    2. Find the namespace that you want to manage and click Reconfigure Resources in the Actions column.

    3. 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.

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

  2. 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.

  3. 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.

    1. 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.

    2. Find the namespace that you want to manage and click Reconfigure Resources in the Actions column.

    3. 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.

  1. Reduce the resource quota of the workspace.

    1. On the Fully Managed Flink tab, find the workspace that you want to manage and choose More > Reconfigure Workspace Resources in the Actions column.

    2. 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.

    3. 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.

Configure the maximum resource quota of a pay-as-you-go workspace

Note
  • 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:

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

  2. View the resource quota of a pay-as-you-go workspace.

    1. On the Fully Managed Flink tab, find the workspace that you want to manage and choose More > Editing of quota ceilings in the Actions column. In the Edit Workspace Quota Limit dialog box, view the maximum resource quota of the workspace.

    2. 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.

  3. 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.

  4. 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.

    1. 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.

    2. 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.

    3. In the Allocation of namespace quota ceilings dialog box, adjust the slider next to the namespace name to reconfigure resources and click OK.

References