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 operating systems are supported for deploying OAT/OCP.
| Operating system | Supported version | Server type |
|---|---|---|
| RHEL | 7.x, 8.x | x86_64 |
| CentOS | 7.x, 8.x | x86_64 |
| openSUSE | 12SP3 and later | x86_64 |
| AnolisOS | 8.6 and later | x86_64, ARM aarch64 |
| Alibaba Cloud Linux | 2, 3 | x86_64, ARM aarch64 |
| openEuler | 20.03 LTS SP1/SP2 | x86_64, ARM aarch64 |
| LinxOS | V6.0.99, V6.0.100 | x86_64, ARM aarch64 |
| NeoKylin | 7.6 | ARM aarch64 |
| Huawei EulerOS | 2.0 SP8 | ARM aarch64 |
OceanBase Database operating systems
The following Linux operating systems are supported for installing OceanBase Database.
| Linux operating system | Version | Server architecture |
|---|---|---|
| Alibaba Cloud Linux | 2 | x86_64, ARM_64 |
| AnolisOS | 8.6 and later | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| KylinOS | V10 | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| Unity Operating System (UOS) | V20 | x86_64 (including Hygon), ARM_64 (Kunpeng and Phytium) |
| NFSChina | 4.0 and later | 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 later | x86_64 (including Hygon) |
| Debian | 8.3 and later | 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, Phytium) |
Note
- The operating system needs to be configured with a network connection and a software manager (yum or zypper).
- The server where OceanBase Database is deployed must be in little-endian mode.
- If a Hygon 7490 CPU is used, the operating system that has been recommended by the Hygon (SeaGull) Server manufacturer and that already contains the fourth patch must be installed.
BIOS settings on OceanBase Server
Special settings
In an Intel x86 environment:
We recommend that you modify the configuration file
/etc/sysctl.confand set the parametervm.swappinessto0. The procedure 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 Hygon environment, we recommend that you modify the configuration file
/etc/sysctl.confand set the parameterskernel.numa_balancing,vm.zone_reclaim_mode, andvm.swappinessto0. The procedure 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 be disabled
Cstate
Pstate
EIST
Power saving
SMMU (ARM)
BIOS options 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
Modify the BIOS settings on different servers in different ways. For more information, see the manual for your server.
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 to the root directory. If you use LVM, we recommend that you specify the --stripe-count 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 choose mode1 or mode4 for the bonding mode. We recommend that you choose mode4. In this mode, configure the 802.3ad protocol on the switch.
- We recommend that you name the network cards eth0 and eth1.