This topic describes the hardware and software configuration requirements for servers, including the operating system, BIOS settings, disk mounting, and NIC settings.
Prepare the operating system
Operating systems for OAT and OCP
OceanBase Admin Toolkit (OAT) and OceanBase Cloud Platform (OCP) can be deployed on the operating systems listed in the following table.
| Operating system | Supported version | Server type |
|---|---|---|
| CentOS and Red Hat Enterprise Linux (RHEL) | 7, 8 | x86_64/ARM aarch64 |
| Rocky Linux | 9 | x86_64/ARM aarch64 |
| Anolis | 8 | x86_64/ARM aarch64 |
| Alibaba Cloud Linux | 2, 3 | x86_64/ARM aarch64 |
| NeoKylin OS | V10 | x86_64/ARM aarch64 |
| UOS | V20 | x86_64/ARM aarch64 |
| NeoKylin OS | V6.0.99, V6.0.100 | x86_64/ARM aarch64 |
| Feidong OS | 4.0 | x86_64/ARM aarch64 |
| Debian | 12 | x86_64/ARM aarch64 |
| Ubuntu | 22.04 LTS, 24.04 LTS | x86_64/ARM aarch64 |
| openSUSE | 12 SP5 | x86_64/ARM aarch64 |
Operating systems for OceanBase Database
OceanBase Database can be installed on the Linux operating systems listed in the following table.
| Linux operating system | Version | Server architecture |
|---|---|---|
| Rocky Linux | 9 | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| Alibaba Cloud Linux | 2, 3 | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| AnolisOS | 8 | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| KylinOS | V10 | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| UOS | V20 | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| NFSChina | 4.0 | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| Inspur kos | 5.8 | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| CentOS and Red Hat Enterprise Linux (RHEL) | 7, 8 | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| SUSE Enterprise Linux | 12 SP5 | x86_64 (including Hygon) |
| Debian | 12 | x86_64 (including Hygon) |
| openEuler | 20.03 LTS, 22.03 LTS | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| LinxOS | V6.0.99, V6.0.100 | x86_64 (including Hygon), ARM_64 (Kunpeng, Phytium) |
| Ubuntu | 22.04 LTS, 24.04 LTS | x86_64 (including Hygon) |
Note
- The operating system must be configured with network access and a software package manager (YUM or Zypper sources).
- The servers used to deploy the OceanBase cluster must operate in little-endian mode.
- If you are using the Hygon 7490 chip, you must install the operating system recommended by the Hygon server manufacturer, which already includes Patch 4.
BIOS settings for OceanBase Database server
Special settings
In an Intel x86 architecture environment:
We recommend that you modify the
/etc/sysctl.conffile and set thevm.swappinessparameter to0. The steps are as follows:[root@xxx /] $vi /etc/sysctl.conf vm.swappiness = 0Apply the values in the sysctl.conf file:
[root@xxx /] $sysctl -p
In an AMD or ARM architecture environment, we recommend that you enable Numa.
In an ARM and Hygon architecture, we recommend that you modify the
/etc/sysctl.confconfiguration file and set the parameterskernel.numa_balancing,vm.zone_reclaim_mode, andvm.swappinessto0. The steps are as follows:[root@xxx /] $vi /etc/sysctl.conf kernel.numa_balancing = 0 vm.zone_reclaim_mode = 0 vm.swappiness = 0Apply the values in the sysctl.conf file:
[root@xxx /] $sysctl -p
BIOS settings to be disabled
Cstate
Pstate
EIST
Power saving
SMMU (ARM architecture)
BIOS settings to be configured
Automatic Power on After Power Loss: Always on
Intel Virtualization Technology: Enabled
Hyper-threading: Enabled
Hardware prefetcher: Enabled
VT-d: Enabled
SR-IOV: Enabled
Turbo Mode: Enabled
Energy performance: Maximum performance
Note
BIOS settings vary by server model. For specific instructions, refer to the server's operation manual.
Mount disks
The following table describes the disk mount points of an OCP server.
Mount point Size Purpose Disk format /home 100 GB~300 GB Log disk for running components Ext4 or XFS is recommended. /data/log1 3~4 times the memory size Log disk for the OCP MetaDB Ext4 or XFS is recommended. /data/1 Depends on the amount of data to be stored Data disk for the OCP MetaDB Ext4 or XFS is recommended. /docker 200 GB~500 GB Root directory of Docker Ext4 or XFS is recommended. The following table describes the disk mount points of an OBServer node.
Mount point Size Purpose File system format /home 100 GB~300 GB Log disk for observer processes Ext4 or XFS is recommended. /data/log1 3~4 times the memory size Log disk for observer processes Ext4 or XFS is recommended. /data/1 Depends on the amount of data to be stored Data disk for observer processes Ext4 or XFS is recommended. Note
We recommend that the root directory be at least 50 GB in size. If you use LVM, we recommend that you specify the striping parameters when you create it. Here is an example:
lvcreate -n data -L 3000G obvg --stripes=3 --stripesize=128
NIC Settings
It is recommended to configure two 10-Gbit/s NICs:
- Name the bond interface bond0. The bonding mode can be set to mode1 or mode4, but mode4 is recommended. For mode4, configure the switch to support the 802.3ad protocol.
- Name the NICs eth0 and eth1.
Considerations
Starting from V4.2.5 BP3, V4.2.5 BP4, V4.2.5 BP5, V4.3.5 BP1, V4.3.5 BP2, and V4.3.5 BP3, OceanBase Database introduced instruction set requirements for running on x86 architecture. Before startup, the OBServer process checks whether the current environment supports the AVX instruction set. If not, the process will not start.
Note
Beginning with the following versions, OceanBase Database no longer requires support for the AVX instruction set:
- For V4.3.5, starting from V4.3.5 BP4.
- For V4.2.5, starting from V4.2.5 BP6.
- For V4.4.0, starting from V4.4.1.