When you create a tenant, if the current resource pool is occupied by other tenants, you need to create a resource pool.
The following is the syntax of the statement for creating a resource pool:
CREATE RESOURCE POOL poolname
UNIT [=] unitname,
UNIT_NUM [=] unitnum,
ZONE_LIST [=] ('zone' [, 'zone' ...]);
The
unit_numparameter specifies the number of resource units contained in a zone in the cluster. The value must be smaller than or equal to the number of OBServers in the zone.The
zone_listparameter specifies the zones that are allowed to the use the resources in the resource pool.
Example:
obclient> CREATE RESOURCE POOL pool1 unit='unit1', unit_num=1, zone_list=('zone1','zone2','zone3');