Installation Commands
Implementation of HAF Installation
The haf_installer script is provided to install HAF. The haf_installer script invokes the haf-tool CLI to complete the installation.
External Installation Interfaces in the Script
- Host node:
./haf_installer -m <mode> -p <package> -t <target_dir> -s <communication_port>
- Replace the /home/omm/haf-software directory based on your requirements.
- The -p option specifies the software package to be installed on the host node. A certificate is generated based on the haf_host_install.conf file. The haf_host_install.conf file is in the install-config folder in the same directory as the haf_installer script.
- HAF service on the offload node:
./haf_installer -m <mode> -p <package> -t <target_dir> -w <ip_white_list> -j <java_home> -i <service_ip_duration> -c <cgroup_dir> -s <communication_port>
- HAF library on the offload node:
./haf_installer -m <mode> -p <package> -t <target_dir> -w <ip_white_list> -j <java_home> -i <service_ip_duration> -s <communication_port>
Option |
Description |
Mandatory for Host Node |
Mandatory for Service on Offload Node |
Mandatory for Library on Offload Node |
|---|---|---|---|---|
-m <mode> |
|
Yes |
Yes |
Yes |
-p <package> |
Installation package, for example, haf-target-1.3.0.tar.gz. |
Yes |
Yes |
Yes |
-t <target_dir> |
Root directory for installing the software package. |
Yes |
Yes |
Yes |
-w <ip_white_list> |
IP address trustlist. The value can be an IP address or IP address segment. Use commas (,) to separate multiple IP addresses. Example: 127.0.0.1,10.10.0.2,10.10.10.0/24. This parameter is left empty by default. NOTE:
The trustlist is used to verify the IP addresses of host nodes. Connections that are not in the trustlist will be rejected. If IP address trustlist verification is enabled but the trustlist is not configured, an offload node rejects connection requests from all host nodes. |
No |
Yes |
Yes |
-j <java_home> |
Java installation path on the node.
|
No |
Yes |
Yes |
-i <service_ip_duration> |
Listening IP address segment of the offload node. Use commas (,) to separate multiple IP address segments. The format is 10.10.0.0/24. The default value is the value configured in the haf_target_install.conf file. NOTE:
The default listening IP address segment differs greatly from the onsite running network segment. You are advised to configure the listening IP address segment based on site requirements. |
No |
Yes |
Yes |
-c <cgroup_dir> |
cgroup subdirectory created in Prerequisites for Deployment. In the example, the value is omm_haf. Replace it with the actual cgroup subdirectory name. |
No |
Yes |
No |
-s <communication_port> |
Communication port of the HAF service. The default port is 17531. The communication ports of the host node and the offload node must be the same. |
Yes |
Yes |
Yes |