To fully utilize resources in daily scenarios, you can split a multi-zone resource pool of a tenant into multiple single-zone resource pools and reconfigure the resources for each zone.
In daily scenarios, you can execute the following statement to create a resource pool:
obclient>CREATE RESOURCE POOL pool1 UNIT='uc0', UNIT_NUM=1, ZONE_LIST=('z1','z2','z3');
Resource pool pool1 is applied to zones z1, z2, and z3 that use the same unit config uc0. However, the available resources of the physical servers in zones z1, z2, and z3 may vary greatly. Therefore, if the three zones use the same unit config uc0, resources of physical servers in each zone cannot be fully utilized. In this case, you can split a multi-zone resource pool into multiple single-zone resource pools and configure resources for each single-zone resource pool.
You can split a resource pool by executing the following statement:
ALTER RESOURCE POOL pool_name SPLIT INTO ('pool_name' [, 'pool_name' ...]) ON ('zone' [, 'zone' ...])
This statement can be executed only by the administrator of the sys tenant.
After the resource pool is split into multiple resource pools, the new resource pools still use the original resource specification by default. You can adjust the resource configurations of the new resource pools based on the resource usage in each zone.
For example, you can execute the following statements to split resource pool pool1 into resource pools pool10, pool11, and pool12, and specify new resource specifications for the new resource pools:
obclient>ALTER RESOURCE POOL pool1 SPLIT INTO ('pool10','pool11','pool12') ON ('z1','z2','z3');
ALTER RESOURCE POOL pool10 UNIT='uc1';
ALTER RESOURCE POOL pool11 UNIT='uc2';
ALTER RESOURCE POOL pool12 UNIT='uc3';