This tutorial will guide you through creating multiple tenants within a single instance to store different business data. It also demonstrates how to adjust tenant resources according to business peak periods to maximize resource utilization.
Concepts
In OceanBase Database, the basic unit of resources is the unit, which consists of physical resources like CPU and memory of various specifications. A single node can create multiple units, and these units form a resource pool to provide resources for the same tenant.
To facilitate business processing, you can create multiple tenants for the same business system to manage different business data. These tenants can be created within the same instance, sharing a single infrastructure. The resources of this infrastructure can be flexibly allocated to different tenants as needed, and the allocated resources do not interfere with each other.
You can flexibly adjust your tenant resource specifications according to the business volume, helping you achieve maximum resource utilization.
Background Information
You have three systems: HR system, business systemf, and inance system. The peak periods for these systems are the beginning, middle and end of the month, respectively. The peak resource usage for each is 4 vCPUs 8 GiB. You have already ordered a cluster instance with 8 vCPUs 32 GiB. This tutorial will show you how to use OceanBase Database’s multi-tenant feature to save tenant resources while ensuring the normal operation of the three systems.
Prerequisites
You have followed Get Started with OB Cloud and created a cluster instance with 8 vCPUs 32 GiB and three tenants with 1 vCPU 8 GiB each, named tenantA, tenantB, and tenantC.
Procedure
Adjust Tenant Resources Before tenantA’s Business Peak
Select your tenantA tenant.
Click to navigate to Tenant Workspace.
Click the icon in the upper right corner and click Modify Specification from the drop-down menu.
In the pop-up window, change 1 vCPU 8 GiB to 4 vCPUs 8 GiB.
Click OK to complete the modification.
Adjust Tenant Resources Before tenantB’s Business Peak
Select your tenantA tenant.
Click to navigate to Tenant Workspace.
Click the icon in the upper right corner and click Modify Specification from the drop-down menu.
In the pop-up window, change 4 vCPUs 8 GiB to 1 vCPU 8 GiB.
Click OK to complete the modification.
Select your tenantB tenant.
Click to navigate to Tenant Workspace.
Click the icon in the upper right corner and click Modify Specification from the drop-down menu.
In the pop-up window, change 1 vCPU 8 GiB to 4 vCPUs 8 GiB.
Click OK to complete the modification.
Adjust Tenant Resources Before tenantC’s Business Peak
Refer to the steps for tenantB’s business peak, adjust tenantB’s resource specifications to 1 vCPU 8 GiB, and then adjust tenantC’s resource specifications to 4 vCPUs 8 GiB.
Multi-Tenant Feature Analysis
The resources of different tenants are isolated, avoiding resource competition when business systems share the same infrastructure. By flexibly allocating resources, you can prevent business issues caused by resource shortages and avoid resource wastage during off-peak periods, thereby saving costs.