You can modify tenant specifications to achieve horizontal scaling at the tenant level. This topic describes how to modify the specifications of a tenant in an instance.
Scaling scenarios
Check whether the tenant performance meets the current requirements. If not, adjust the tenant specifications for scaling up. If the resource usage is excessively low, you can also adjust the tenant specifications for scaling down.
Background information
Tenant scaling involves increasing or decreasing the computing power and storage capacity. OceanBase Cloud supports scaling by modifying the specifications and quantity of units.
- Resource unit (unit) Unit is a crucial concept in tenant management. In OceanBase Cloud, physical resources are managed in units, which are collections of physical resources such as CPU, memory, storage space, and IOPS. Unit is also the basic unit for resource scheduling, with location attributes like node, zone, and region, which are abstracted concepts of server, data center, and region respectively. You can adjust the location attributes of units to change the deployment method of a tenant.
- Modify unit specifications You can increase or decrease the specifications of units to adjust the service capability of a single node.
- Modify unit quantity You can add or reduce the number of service nodes. Since a tenant can only have one unit on a node at a time, if an instance is deployed on a single node, you must add more nodes before adjusting the number of units.
CPU adjustment rules
When you create a tenant or adjust the CPU specifications of a tenant, make sure that the current cluster's unallocated CPU resource is greater than or equal to the tenant's minimum CPU specification, which is 1 core.
Memory adjustment rules
When you create a tenant or adjust its memory specifications, make sure that the current cluster's unallocated memory is greater than or equal to the tenant's minimum memory specification, which is 4 GiB.
Prerequisites
Before you modify the specifications of a tenant, make sure that the following conditions are met:
The tenant is in the Running state.
The instance to which the tenant belongs is in the Running state.
Procedure
You can modify the specifications of a tenant by using one of the following methods:
Method 1: Log in to the OceanBase Cloud console. On the Tenants page, click Modify Specifications of the target tenant
Method 2: Log in to the OceanBase Cloud console. In the upper-right corner of the tenant overview page, click the More icon and then select Modify Specification.
The following procedure is based on Method 1.
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the instance list, find the target instance and click the instance name to go to the Overview page of the instance.
In the left-side navigation pane, click Tenants.
On the Tenants page, click the More icon in the Actions column of the target tenant and select Modify Specification.
Select the required resource unit quantity and unit specification, and then click OK to confirm the modification.
Note
- When you scale down a tenant, if the target specifications are lower than the safety threshold for memory downscaling of the tenant, memory defragmentation will be triggered. This will cause an increase in request latency and potential jitters in the business. If the memory cannot be scaled down to the selected specifications through defragmentation, the memory specification will automatically adjust to the safety threshold.
- The same number of nodes are contained in each unit. For example, if each unit contains three nodes, three node resources will be added when an additional unit is added.
- In the current version, only instances purchased through Alibaba Cloud, Huawei Cloud, and AWS channels support configuring the maximum available IOPS.
What to do next
After a scaling operation is completed, you can go to the tenant overview page to view the tenant specifications.