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 (and compatible RockyLinux, CentOS) | 7.2 and later | x86_64/ARM aarch64 |
| Anolis (and compatible Alibaba Cloud Linux, Kylin V10, Unity Operating System (UOS), China Mobile BC-Linux, NDS Operating System, and ZTE FDOS) | 8.4 and later | x86_64/ARM aarch64 |
| Debian (and compatible Ubuntu) | 11 and later | x86_64/ARM aarch64 |
| openSUSE | 12SP3 and later | x86_64/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) |
| 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 and Phytium) |
Note
- The operating system must 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 (Hygon) server manufacturer and that contains patch 4 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 Hilaogang environment, we recommend that you modify the configuration file
/etc/sysctl.confand 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
Different servers require different BIOS settings. For more information, see the manual of your server.
Disk mounting
The following table describes the disk mounting requirements for OCP servers.
Mount pointSizePurposeDisk 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 Root directory of Docker We recommend using ext4 or xfs. The following table describes the disk mounting requirements for OBServer nodes.
Mount pointSizePurposeFile 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-count parameter when you create it. Here is an example:
lvcreate -n data -L 3000G obvg --stripes=3 --stripesize=128
Network card settings
We recommend that you configure two 10-Gigabit Ethernet network cards:
- Name the bond interface bond0. You can choose mode1 or mode4 for the bonding mode. We recommend that you choose mode4. If you select mode4, configure the 802.3ad protocol on the switch.
- We recommend that you name the network cards eth0 and eth1.
