Skip to content

Additional Node Configuration

4 min read Updated SS RS

Note: This section applies to adding node for the HEAL software after its installation. Perform the section below only based on your requirements.

Follow the below steps to add the additional node for the HEAL application,

Prerequisites#

1. Navigate to the following path:

<a1Home>

2. Copy the following files:

  • prereqs
  • lib
  • JobsConfigs
  • installer folder
  • Scripts:

- addNodeA1Service.sh

- addNodeInfra.sh

- addNodeWrapper.sh

Add a New Node#

Note: Ensure to execute the following scripts from the Primary Node.

1. Navigate to the primary node.

2. If a passwordless connection is enabled, execute the following command:

./addNodeWrapper.sh <IpAddressNewNode>

3. If a passwordless connection is not available, follow the below steps:

a. Execute the following script:

addNodeInfra.sh

b. Execute the following script:

addNodeA1Service.sh

Configuration#

Follow the steps below to configure the additional node:

1. Gather the Required Node Details as below:

  • IP Address of the new node.
  • Hostname of the new node.
  • Network Interface Card (NIC) of the new node.
  • Create a nomad user and group on the new node (refer to generalConf.py for details).
  • On the new node, add the hostname entry in,
/etc/hosts
  • Create the directory below on the new node and set the required permissions,
<a1home>

2. Navigate to <a1Home>.

3. Modify the generalConf.py file by configuring the following Settings:

  • NODES
  • INTERFACES
  • HOSTNAMES
  • DOCKER_SERVICES

For Example: Consider a 3-node setup, where a new node is being added.

Modify the generalConf.py file as below:

a. Updating NODES Section: Add the new IP address in the NODES parameter,

NODES = {
    'server-01': '192.0.2.1',
    'server-02': '192.0.2.2',
    'server-03': '192.0.2.3'
}

Modify it as follows:

NODES = {
    'server-01': '192.0.2.1',
    'server-02': '192.0.2.2',
    'server-03': '192.0.2.3',
    'server-04': '192.0.2.4'
}

b. Updating INTERFACES Section: Add the NIC card information for the new node,

INTERFACES = {
    'server-01': 'ens192',
    'server-02': 'ens192',
    'server-03': 'ens192'
}

Modify it as follows:

INTERFACES = {
    'server-01': 'ens192',
    'server-02': 'ens192',
    'server-03': 'ens192',
    'server-04': 'ens192'
}

c. Updating HOSTNAMES Section: Add the hostname for the new node,

HOSTNAMES = {
    'server-01': 'healinstaller1',
    'server-02': 'healinstaller2',
    'server-03': 'healinstaller3'
}

Modify it as follows:

HOSTNAMES = {
    'server-01': 'healinstaller1',
    'server-02': 'healinstaller2',
    'server-03': 'healinstaller3',
    'server-04': 'healinstaller4'
}

d. Updating DOCKER_SERVICES Section: Ensure at least one module is assigned to the new node

(do not reshuffle existing Nomad services, as this may cause issues related to Consul keys and

access),

Note:

* Once the new node is added, the user must manually shift the required services with proper planning.

* To ensure the script functions correctly, add at least one module to the newly added node.

DOCKER_SERVICES = {
    'server-01' : ['TRINODB', 'HEAL_COMPUTED_SERVICE','PERCONA', 'HAPROXY', 'RABBITMQ', 'REDIS', 'REDIS_MICROSERVICE', 'EVENTDETECTOR:1', 'SUPERVISOR_CTRL:1', 'SIGNALDETECTOR:1', 'NOTIFICATION_PROCESSOR', 'DATA_RECEIVER:1', 'HEAL_API_SERVICE', 'CORELATION_ENGINE', 'RCA', 'MINIO', 'MLFLOW'],
    'server-02' : ['OTEL_COLLECTOR', 'HEAL_REPORTING_DATA_SERVICE','HEAL_JOB_EXECUTOR', 'HEAL_SCHEDULER_SERVICE', 'ADVANCED_ANALYTICS_DS', 'INCIDENT_MANAGEMENT_BROKER','GRAFANA','JAEGER', 'UISERVICE:1', 'DATA_EMITTER:1', 'ACTIONDETECTOR:1', 'OPENSEARCH'],
    'server-03' : ['UI2X', 'CONTROLCENTER:1', 'LLM_INTG_SERVICE', 'KEYCLOAK', 'MLE', 'A1EVENTHANDLER'],
}

Modify it as follows:

DOCKER_SERVICES = {
    'server-01' : ['TRINODB', 'HEAL_COMPUTED_SERVICE','PERCONA', 'HAPROXY', 'RABBITMQ', 'REDIS', 'REDIS_MICROSERVICE', 'EVENTDETECTOR:1', 'SUPERVISOR_CTRL:1', 'SIGNALDETECTOR:1', 'NOTIFICATION_PROCESSOR', 'DATA_RECEIVER:1', 'HEAL_API_SERVICE', 'CORELATION_ENGINE', 'RCA', 'MINIO', 'MLFLOW'],
    'server-02' : ['OTEL_COLLECTOR', 'HEAL_REPORTING_DATA_SERVICE','HEAL_JOB_EXECUTOR', 'HEAL_SCHEDULER_SERVICE', 'ADVANCED_ANALYTICS_DS', 'INCIDENT_MANAGEMENT_BROKER','GRAFANA','JAEGER', 'UISERVICE:1', 'DATA_EMITTER:1', 'ACTIONDETECTOR:1', 'OPENSEARCH'],
    'server-03' : ['CONTROLCENTER:1', 'LLM_INTG_SERVICE', 'KEYCLOAK', 'MLE', 'A1EVENTHANDLER'],
    'server-04' : ['UI2X']
}

Execution of Scripts#

Follow the steps below to execute the scripts:

a. If a passwordless connection is available, execute the following command:

./addNodeWrapper.sh <IpAddressNewNode>

Check the output and logs for any errors.

b. If a passwordless connection is not available, execute the following command:

./addNodeInfra.sh <IpAddressNewNode>

The above steps perform the required action on the primary node and create IP address-wise tar for other nodes.

c. Transfer the tar files manually to the required node (relevant IP) and execute the commands below:

* Root user,

scp <Ip>_folder.tar root:<Same dir where addNodeWrapper is present on primary node>
cd <Same dir where addNodeWrapper is present on primary node>
tar -zxPf <Ip>_installer_folder.tar
cd <Same dir where addNodeWrapper is present on primary node>/HEAL_<version>/<Ip>installer_folder
bash Installer.sh <Ip>_install_part1.config_root
rm -f <Same dir where addNodeWrapper is present on primary node>/<Ip>_installer_folder.tar > /tmp/null 2>&1;

d. Execute the following script:

./addNodeA1Service.sh <IpAddressNewNode>

e. Transfer and extract files manually:

scp <Ip>_folder_non_root.tar root:<Same dir where addNodeWrapper is present on primary node>
cd /<Same dir where addNodeWrapper is present on primary node>
tar -zxPf <Ip>_installer_folder_non_root.tar
cd <Same dir where addNodeWrapper is present on primary node>/HEAL_<version>/<Ip>installer_folder_non_root
bash Installer.sh <Ip>_install_part1.config_user
rm -f <Same dir where addNodeWrapper is present on primary node>/<Ip>_installer_folder_non_root.tar > /tmp/null 2>&1;

Note:

  • The script does not modify existing Nomad files.
  • The new node will be added to the Nomad/Consul cluster.
  • Docker will be started automatically on the new node as part of the script execution.