As a service provided by OceanBase Database, MetaDB is deployed in containers and has a built-in OceanBase Database Proxy (ODP) to support direct access to OceanBase Database. It stores the metadata of OceanBase Cloud Platform (OCP), OceanBase Developer Center (ODC), and OceanBase Migration Service (OMS).
This topic describes how to create MetaDB by using OceanBase Admin Toolkit (OAT).
Note
- This topic uses OAT V4.1.2 as an example. The GUI varies with the OAT version.
- We recommend that you create a separate tenant in OceanBase Database for MetaDB. MetaDB stores the persistent data other than monitoring data. We recommend that you allocate at least 4 CPU cores and 8 GB of memory to MetaDB.
- The disk space required depends on factors such as the size of the managed cluster and stored files and the data retention period. We recommend that you reserve at least 100 GB of disk space.
Prerequisites
Before you create MetaDB, ensure that:
- You have installed OAT. For more information, see Deploy OAT.
- You have logged on to OAT by using a super administrator account or an account with O&M permissions. For more information, see Manage users.
- You have added the server where MetaDB is to be installed. For more information, see Add a server.
Procedure
In the left-side navigation pane, choose Product Service > Components.
On the Components Management page, click Create Component in the upper-right corner, and choose Create MetaDB.
On the Create MetaDB page, specify the parameters in the Basic Configurations section.
Parameter Description MetaDB Image The Docker image of MetaDB. Component Name The name of the component, which must be unique. Default value: metadb.Server The IP address of the server where MetaDB is to be installed. CPU The number of CPU cores allocated to MetaDB. Default value: 32C.Note
If the OCP server has 16 CPU cores and 32 GB of memory, we recommend that you set
CPUto8Cfor MetaDB.Memory The memory allocated to MetaDB. Default value: 90GB.Note
If the OCP server has 16 CPU cores and 32 GB of memory, we recommend that you set
Memoryto16Gfor MetaDB.MetaDB Cluster Name The name of the MetaDB cluster. root@sys Password The password of the root user of the sys tenant in the MetaDB cluster. On the Create MetaDB page, specify the parameters in the Installation Path (Optional) section.
The following table describes the installation path parameters that you can specify when you create MetaDB.
Parameter Description Installation Directory The installation path of MetaDB. Default value: /home/admin/oceanbase.Data Directory The data storage path of MetaDB. Default value: /data/1.Log Directory The log storage path of the MetaDB. Default value: /data/log1.Backup Directory The backup path of MetaDB. By default, this parameter is left empty. This parameter is optional. On the Create MetaDB page, specify the parameters in the Startup Parameters (Optional) section.
Notice
If the OCP server has 16 CPU cores and 32 GB of memory and you have configured 8 CPU cores and 16 GB of memory for MetaDB, you need to set the
system_memoryparameter to5Gandresource_hard_limitto150in the OB Process Startup Parameters (Optional) area.The following table describes the startup parameters that you can specify when you create MetaDB.
Parameter Description MySQL Port The MySQL port of MetaDB. Default value: 2881.RPC Port The RPC port of MetaDB. Default value: 2882.OB Process Startup Parameters (Optional) You can modify or add startup parameters of the observer process as needed. OB Proxy Service Port The service port of the ODP. Default value: 2883.OB Proxy Process Startup Parameters (Optional) You can modify or add the startup parameters of the obproxy process as needed. For more information, see Parameter description. SSHD Port The SSHD port in the MetaDB container. Default value: 2022. OCP deploys the OCP Agent by connecting to the SSHD port.root Password The password of the root user in the MetaDB container. After you set the parameters, click Submit.
You can also click Reset to restore the default configurations.
What to do next
After you install MetaDB, you can install the OceanBase ecosystem tools, including OCP, ODC, OMS, and OB Sharding.