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 Lite. It is recommended that servers to be deployed on openGauss Lite have the same software and hardware configurations.
Hardware Requirements
Table 1 describes the minimum hardware requirements of openGauss Lite. 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
The ext4 file system is recommended for openEuler. It is recommended that the number of remaining inodes be greater than 1.5 billion. | |
|
Software Dependency Requirements
Table 3 lists the software dependency requirements for openGauss Lite.
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 Lite can work properly when the firewall is enabled, Lite-related services, protocols, IP addresses, and ports need to be added to the firewall whitelist of the host.
openEuler is used as an example, the openGauss Lite information is as shown in Table 4.
Table 4 openGauss information
Currently, the installation can be performed only when the firewall is disabled.
Change the value of SELINUX in the /etc/selinux/config file to disabled.
a. Run the vim command to open the config file.
vim /etc/selinux/config
b. 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
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 not, 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.
Change the value of RemoveIPC in /etc/systemd/logind.conf 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
Repeat Step 1 (#en-us_topic_0283136490_en-us_topic_0241802566_li17785744466) to Step 4 (#en-us_topic_0283136490_en-us_topic_0241802566_li17785744467) on other hosts.