Table-level restore requires the use of an auxiliary tenant. Therefore, before performing table-level restore, you need to create the necessary resource pools for the auxiliary tenant in the cluster where the target tenant resides.
Resource planning for the auxiliary tenant
During table-level restore, an auxiliary tenant must be created in the target cluster. Therefore, before starting table-level restore, you need to reserve sufficient CPU, memory, and disk resources in the cluster to prevent slow execution or failure of the table-level restore task due to insufficient resources.
Typically, it is recommended that the specifications for the auxiliary tenant match those of the source tenant. If this is not possible, you need to select appropriate specifications based on the system version.
In the current version, the system uses a fast restore method for table-level restore of the auxiliary tenant. The minimum specifications for the auxiliary tenant in fast restore mode are as follows:
| Resource | Minimum specification | Description |
|---|---|---|
| CPU | 2C or 4C | It is not recommended to set the minimum specification too low. |
| Memory | Depends on the number of tablets | At least 1 GB is required. Supports up to 20,000 tablets. |
| Disk | Backup data size/100 + restore log size | The minimum recommended specification is at least 1% of the backup data size, plus the restore log size. |
Create a resource pool for the auxiliary tenant
Log in to the
systenant of the cluster where the target tenant is located as therootuser.Create a unit (resource unit).
Here is an example:
obclient [(none)]> CREATE RESOURCE UNIT box_16c96g MAX_CPU 16, MEMORY_SIZE = '5G', MAX_IOPS 10240, MIN_IOPS=10240;For more information about how to create a resource unit, see Create a tenant.
Create a resource pool.
When creating a resource pool for the auxiliary tenant, we recommend that you keep the architecture consistent with the source tenant. In other words, we recommend that the number of
unit_numin the resource pool of the auxiliary tenant be the same as that of the source tenant.Here is an example:
obclient [(none)]> CREATE RESOURCE POOL restore_pool unit = 'box_16c96g', unit_num = 1, zone_list = ('z1','z2','z3');For more information about how to create a resource pool, see Create a tenant.