To refine resource management, you can isolate tenant resources by using OceanBase Cloud Platform (OCP) in a visualized manner. The system allocates resources to corresponding resource groups based on the configured resource isolation plan, thereby simplifying tenant resource management.
Precautions
- Only OceanBase Database V4.1 and later support resource isolation plans.
- You must enable the cgroup feature for the current cluster.
Notice
If the cgroup feature is not enabled for the cluster, the resource isolation configurations cannot take effect. We recommend that you enable the cgroup feature before you use resource isolation. For more information about how to enable the feature, contact OceanBase Technical Support.
Procedure
Log on to the OCP console.
In the left-side navigation pane, click Tenants.
In the Tenants list, find the target tenant and click its name.
The Overview page of the tenant automatically appears.
In the left-side navigation pane, click Resource Isolation to go to the Resource Isolation page of the tenant.
Click Create Resource Isolation Plan to go to the Create Resource Isolation Plan page.
Specify the basic information, including Plan Name and Description.
Parameter Description Plan Name The name of the resource isolation plan. It can contain letters, digits, and underscores (_) and must be 2 to 24 characters in length. Description Optional. The description of the resource isolation plan. The description supports any characters and must be within 1,000 characters in length. 
Click Next.
Select a resource group for the resource isolation plan.
In Resource Group Name, select an existing resource group from the drop-down list. The system automatically fills in the resource isolation type and matching rules in the lower part. A resource group can be bound to only a single resource isolation plan.
- If no resource group is created for a tenant, click Create Resource Group in Resource Group Name to create one. For more information, see Create a resource group.
- Click Add Resource Group to specify multiple resource groups for the current resource isolation plan.
- Click the Delete icon in the upper-right corner of the card for a resource group to remove it from the current resource isolation plan.
Click Next.
Configure resource isolation limitations for each specified resource group.
Parameter Description Maximum CPU Optional. UTILIZATION_LIMIT: the maximum CPU resources allowed for the resource group. The default value is 100. The value range is [0, 100]. The minimum input/output operations per second (IOPS) value cannot exceed the maximum IOPS value.CPU Weight Optional. MGMT_P1: the percentage of CPU resources guaranteed for the resource group when the system runs at full load. Default value: 100.
Calculation formula: Current MGMT_P1 value × 100/Sum of MGMT_P1 values of all resource groups in the resource isolation planMinimum IOPS Optional. MIN_IOPS: the IOPS resources reserved for the resource group in the case of I/O resource contention. The sum of the MIN_IOPS values of all resource groups in the resource isolation plan cannot exceed 100. The default value is 0. The maximum MIN_IOPS value of the current resource group is affected by other resource groups in the resource isolation plan.- If the resource units of the tenant have the same IOPS value, only the IOPS value reserved for the current resource group is displayed.
- If the resource units of the tenant have different IOPS values, the IOPS values reserved in the resource group for different zones are displayed.
Maximum IOPS Optional. MAX_IOPS: the maximum IOPS resources allowed for the resource group. The sum of the MAX_IOPS values of all resource groups in the resource isolation plan can exceed 100. The default value is 100.- If the resource units of the tenant have the same IOPS value, only the maximum IOPS value of the resource group is displayed.
- If the resource units of the tenant have different IOPS values, the maximum IOPS values of the resource group for different zones are displayed.
Notice
The maximum IOPS value cannot be smaller than the minimum IOPS value.
IOPS Weight Optional. WEIGHT_IOPS: the IOPS weight, which determines the percentage of additional IOPS resources that can be allocated to the current resource group on the premises that IOPS resources are reserved for all resource groups. The sum of the WEIGHT_IOPS values of all resource groups in the resource isolation plan can exceed 100. The default value is 0.
Calculation formula: Current WEIGHT_IOPS value × 100/Sum of WEIGHT_IOPS values of all resource groups in the current resource isolation planNote
The IOPS weight is affected by the configurations of other resource groups in the resource isolation plan and therefore dynamically changes.
Click Next.
Confirm the configurations.
Confirm the information of the resource isolation plan and click OK.