The CALCULATE_MIN_PHY_RES_NEEDED_BY_UNIT procedure specifies the tenant and node to calculate the minimum physical resources required for a node.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_OB_LIMIT_CALCULATOR.CALCULATE_MIN_PHY_RES_NEEDED_BY_UNIT(tenant_id IN INTEGER,
server IN VARCHAR);
Parameters
| Parameter | Description |
|---|---|
| tenant_id | The ID of the tenant for which you want to calculate the minimum physical resources required. |
| server | The IP address and port number of the server. |
Examples
You can run the following command to calculate the minimum physical resources required for each unit.
obclient> CALL DBMS_OB_LIMIT_CALCULATOR.CALCULATE_MIN_PHY_RES_NEEDED_BY_UNIT(TENANT_ID => 1001, SERVER => "1.1.1.1:12104");
+------------------------+-------------+
| PHYSICAL_RESOURCE_NAME | MIN_VALUE |
+------------------------+-------------+
| MEMSTORE | 0 |
| MEMORY | 4194304000 |
| DATA_DISK | 0 |
| CLOG_DISK | 10737418240 |
| CPU | 0 |
+------------------------+-------------+
5 rows in set (0.003 sec)
