This topic describes the hardware requirements for a server, including the operating system, BIOS settings, disk mounting, network card settings, and software requirements.
Prepare the operating system
OAT/OCP operating systems
The following table lists the operating systems where you can deploy OAT/OCP.
| Operating system | Supported version | Server type |
|---|---|---|
| RHEL (and compatible RockyLinux, CentOS) | 7.2 and above | x86_64/ARM aarch64 |
| Anolis (and compatible Alibaba Cloud Linux, Kylin V10, Unity Operating System (UOS), China Mobile BC-Linux, NDS Operating System, and Zhongke Fangde) | 8.4 and above | x86_64/ARM aarch64 |
| Debian (and compatible Ubuntu) | 11 and above | x86_64/ARM aarch64 |
| openSUSE | 12SP3 and above | x86_64/ARM aarch64 |
Operating systems for installing OceanBase Database
The following table lists the Linux operating systems where you can install OceanBase Database.
| Linux operating system | Version | Server architecture |
|---|---|---|
| Alibaba Cloud Linux | 2 | x86_64, ARM_64 |
| AnolisOS | 8.6 and above | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| KylinOS | V10 | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| UOS | V20 | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| NFSChina | 4.0 and above | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| Inspur KOS | 5.8 | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| CentOS / Red Hat Enterprise Linux | 7.x, 8.x | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| SUSE Enterprise Linux | 12SP3 and above | x86_64 (including Hygon) |
| Debian | 8.3 and above | x86_64 (including Hygon) |
| openEuler | 20.03 LTS SP1/SP2 | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| LinxOS | V6.0.99, V6.0.100 | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
Note
- The operating system must be configured for network access and software management (yum or zypper source).
- The server where OceanBase cluster is deployed must be in little-endian mode.
- If a Hygon 7490 CPU is used, the operating system that includes patch 4, recommended by the manufacturer of the Hygon (HaiGong) CPU, must be installed.
BIOS settings for OceanBase Server
Special settings
In an Intel x86 environment:
We recommend that you modify the configuration file
/etc/sysctl.confand set thevm.swappinessparameter to0. The sample code is as follows:[root@xxx /] $vi /etc/sysctl.conf vm.swappiness = 0Apply the settings in the sysctl.conf file:
[root@xxx /] $sysctl -p
In an AMD or ARM environment, we recommend that you enable NUMA.
In an ARM and Loongson environment, we recommend that you modify the configuration file
/etc/sysctl.conf, and set thekernel.numa_balancing,vm.zone_reclaim_mode, andvm.swappinessparameters to0. The sample code is as follows:[root@xxx /] $vi /etc/sysctl.conf kernel.numa_balancing = 0 vm.zone_reclaim_mode = 0 vm.swappiness = 0Apply the settings in the sysctl.conf file:
[root@xxx /] $sysctl -p
BIOS options to disable
Cstate
Pstate
EIST
Power saving
SMMU (ARM)
BIOS options to configure
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
The BIOS settings may vary depending on the server model. For more information, see the server manual.
Disk mounting
The following table describes the disk mounting requirements for OCP servers.
Mount point Size Purpose Disk format /home 100 GB~300 GB Component runtime log disk We recommend using ext4 or xfs /data/log1 3~4 times the size of memory OCP metadata log disk We recommend using ext4 or xfs /data/1 Varies depending on the size of data to be stored OCP metadata data disk We recommend using ext4 or xfs /docker 200 GB~500 GB Docker root directory We recommend using ext4 or xfs The following table describes the disk mounting requirements for OBServer nodes.
Mount point Size Purpose File system format /home 100 GB~300 GB observer process runtime log disk We recommend using ext4 or xfs /data/log1 3~4 times the size of memory observer process log disk We recommend using ext4 or xfs /data/1 Varies depending on the size of data to be stored observer process data disk We recommend using ext4 or xfs Note
We recommend that you allocate at least 50 GB for the root directory. If you use LVM, we recommend that you specify the --stripe parameter when you create an LVM volume. Here is an example:
lvcreate -n data -L 3000G obvg --stripes=3 --stripesize=128
Network card settings
We recommend that you configure two 10-GbE network cards:
- Name the bond0 interface. You can set the bond mode to 1 or 4. We recommend that you set it to 4. In this mode, configure the 802.3ad protocol on the switch.
- We recommend that you name the network cards eth0 and eth1.