Configuration Items for HAF Deployment
Before the deployment, you can modify the default configuration items based on site requirements. The configuration file is stored in haf-tool-1.4.0.tar.gz. During the installation, the decompressed configuration file is stored in /home/omm/haf-software/install-config. The following table describes the configuration items. (During the installation, the following configuration files are copied to the corresponding installation directory, for example, /home/omm/haf-install/haf-target/.)
You are advised to set the items that cannot be configured by haf-tool during deployment and installation. For details, see Deploying HAF.
Category |
Configuration Item |
Default Value |
Description |
Configurable by haf-tool |
|---|---|---|---|---|
Configuration file for installation on an offload node haf_target_install.conf (used only during installation and deployment) |
listen_ip |
"0.0.0.0/0" |
IP address segment that HAF listens to. During the installation, the system automatically matches the IP address that meets the requirements based on the value of this parameter. Example: ["10.10.0.0/24", "192.168.1.0/24"]. NOTE:
You are advised to set this parameter based on the actual application scenario. Otherwise, the IP address to be listened cannot be found based on the default value. |
Yes |
java_home |
JAVA_HOME |
The JAVA_HOME configuration item is automatically parsed and replaced with the actual value based on the Java environment during the HAF service installation on the offload node. |
No |
|
resource |
"daemon": { "cpu": 2, "mem": 2048 } |
HAF system resource configuration for the HAF service installation on the offload node. Configure as many resources as possible for HAF on the premise of not affecting user services. -1 indicates that the resource usage is not limited. |
Yes |
|
cert_check_period_time |
7 |
Alarm interval for certificate expiration on an offload node, in days |
No |
|
cert_warning_time |
30 |
Number of days in advance for generating an alarm for certificate expiration on an offload node |
No |
|
crl_check_period_time |
3 |
CRL expiration alarm period on the offload node, in days. |
No |
|
crl_warning_time |
30 |
Time for generating an alarm before the CRL on the offload node expires, in days. |
No |
|
cgroup_dir |
CGROUP_DIR |
cgroup subdirectory created in Prerequisites for Deployment, which will be replaced with omm_haf after the installation. |
No |
|
app_executor_nums |
5 |
Maximum number of applications supported when services are statically deployed on the offload node. You can modify the configuration file to change the value. The maximum allowed value is 100. |
No |
|
thread_pool_nums |
0 |
Maximum number of thread pools supported by the offload node. You can modify the configuration file to change the value. The maximum allowed value is 64. |
No |
|
cert_path |
TARGET_DIR/cert |
Certificate storage directory. The default value is the cert directory in the tool installation path. You can modify the configuration file to change the value. Before changing the value, ensure that you have access to the path. |
No |
|
communication_port |
17531 |
HAF communication port. The default value is 17531. The value must be the same as that of the host node. |
Yes |
|
Configuration file for installation on a host node haf_host_install.conf (used only during installation and deployment) |
cert_check_period_time |
7 |
Alarm interval for certificate expiration on a host node, in days |
No |
cert_warning_time |
30 |
Number of days in advance for generating an alarm for certificate expiration on a host node |
No |
|
crl_check_period_time |
3 |
CRL expiration alarm period on the host node, in days. |
No |
|
crl_warning_time |
30 |
Time for generating an alarm before the CRL on the host node expires, in days. |
No |
|
cert_path |
HOST_DIR/cert |
Path for storing the initial certificate of the host node. After the installation is complete, HOST_DIR is replaced with the absolute path of haf-host. |
No |
|
channel_timeout |
120 |
Timeout interval for a host node to deliver tasks, in minutes. The value ranges from 0 to 43,200. |
No |
|
communication_port |
17531 |
HAF communication port. The default value is 17531. The value must be the same as that of the offload node. |
Yes |
|
offload_iplist |
- |
Used to preset the IP address list of the offload nodes |
No |