Purpose
You can use this statement to modify the configuration of a resource pool for a tenant.
Syntax
ALTER RESOURCE TENANT tenant_name UNIT_NUM [=] unit_num [ DELETE UNIT_GROUP = ( id_list ) ];
Parameters
| Parameter | Description |
|---|---|
| tenant_name | The name of the tenant for which you want to modify the configuration. |
| unit_num | The number of units in all resource pools of the tenant after the modification, which must be less than or equal to the number of OBServer nodes in the zone. |
| DELETE UNIT_GROUP | Deletes unit groups specified in id_list for scale-in. If you do not specify this keyword, a unit group is deleted randomly. |
Examples
Change the number of units in all resource pools of
tenant1to 3.obclient> ALTER RESOURCE TENANT tenant1 UNIT_NUM = 3; Query OK, 0 rows affectedDelete unit groups 1002 and 1003 for the
tenant2tenant for scale-in.obclient> ALTER RESOURCE TENANT tenant2 UNIT_NUM = 2 DELETE UNIT_GROUP (1002, 1003); Query OK, 0 rows affected