Preparing the Software and Hardware Installation Environment
This section describes the preparations for installation.
Software and Hardware Requirements
This section describes hardware and software requirements of openGauss. It is recommended that servers to be deployed on openGauss have the same software and hardware configurations.
Hardware Requirements
Table 1 lists the minimum hardware requirements of the openGauss server. When planning the hardware configuration of a product, consider the data scale and expected database response speed. Plan hardware as required.
Table 1 Hardware requirements
Software Requirements
Table 2 Software requirements
It is recommended that the number of remaining inodes be greater than 1.5 billion. | |
Software Dependency Requirements
Table 3 describes the openGauss software dependency requirements.
You are advised to use the default installation packages of the following dependent software in the listed OS installation CD-ROMs or sources. If the following software does not exist, refer to the recommended versions of the software.
Table 3 Software dependency requirements
Modifying OS Configuration
Disabling the OS Firewall
To ensure that openGauss can work properly when the firewall is enabled, openGauss-related services, protocols, IP addresses, and ports need to be added to the firewall whitelist of the openGauss host.
Take openEuler OS as an example. Assume that the openGauss information is listed in Table 4.
CAUTION:
Perform the following operations as the root user. After the operations are complete, log out of the system as the root user in a timely manner to prevent misoperations.
Table 4 openGauss information
Currently, the installation can be performed only when the firewall is disabled.
Set the value of SELINUX in the /etc/selinux/config file to disabled.
Run the vim command to open the config file.
vim /etc/selinux/config
Change the value of SELINUX to disabled and run the :wq command to save the change and exit.
SELINUX=disabled
Restart the OS.
reboot
Check whether the firewall is disabled.
systemctl status firewalld
If the firewall status is active (running), the firewall is not disabled. Go to step 4.
If the firewall status is inactive (dead), you do not need to disable the firewall.
systemctl disable firewalld.service systemctl stop firewalld.service
Repeat steps 1 to 4 on other hosts.
Setting Character Set Parameters
Set the same character set for all database nodes. You can add export LANG= Unicode to the /etc/profile file.
vim /etc/profile
Setting the Time Zone and Time
Ensure that the time zone and time on each database node are consistent.
Run the following command to check whether the time and time zone of each database node are consistent: If the time and time zone of each database node are inconsistent, perform steps 2 to 3.
date
Run the following command to copy the /etc/localtime file to the /usr/share/zoneinfo/ directory of each database node:
cp /usr/share/zoneinfo/$Locale/$Time zone /etc/localtime
NOTE: $Locale/$Time zone indicates the locale and time zone to be set, for example, Asia/Shanghai.
Run the date -s command to set the time of each database node to the same time. For example:
date -s "Sat Sep 27 16:00:07 CST 2020"
(Optional) Disabling the Swap Memory
NOTE: Disabling the swap memory ensures the access performance of the database and prevents the buffer memory of the database from being evicted to the disk. If the server memory is small and the memory is overloaded, you can enable the swap memory to ensure normal running.
Run the swapoff -a command on each database node to disable the swap memory.
swapoff -a
Disabling RemoveIPC
On each database node, disable RemoveIPC. For CentOS, skip this step.
Change the value of RemoveIPC in the /etc/systemd/logind.conf file to no.
a. Run the vim command to open the logind.conf file.
vim /etc/systemd/logind.conf
b. Change the value of RemoveIPC to no.
RemoveIPC=no
Change the value of RemoveIPC in the /usr/lib/systemd/system/systemd-logind.service file to no.
a. Run the vim command to open the systemd-logind.service file.
vim /usr/lib/systemd/system/systemd-logind.service
b.Change the value of RemoveIPC to no.
RemoveIPC=no
Reload configuration parameters.
systemctl daemon-reload systemctl restart systemd-logind
Check whether the modification takes effect.
loginctl show-session | grep RemoveIPC systemctl show systemd-logind | grep RemoveIPC
Disabling the History Command
NOTE:
To prevent security risks caused by historical records, you need to disable the history command on each host.
Modify the /etc/profile file in the root directory.
vim /etc/profile
Set HISTSIZE to 0. For example, if the default value of HISTSIZE is 1000, change it to 0.
HISTSIZE=0
Save the /etc/profile file.
:wq
Make the /etc/profile file take effect.
source /etc/profile