The following procedure needs to be carried out twice – first for the Master Siemplify node (primary) and then for the Slave Siemplify node (replica).

  1. Adjust the timezone on Siemplify APP machine with the following command:
    timedatectl set-timezone [selected_timezone] e.g. Asia/Jerusalem
    or use the following command for a list of timezones: timedatectl list-timezones
  2. Copy the installation file
  3. Set execution permission for the installation file by running:
    sudo chmod +x siemplify_installer.sh
  1. On the Master node, run the following:
sudo bash siemplify_installer.sh --run_mode ha --db_ip [primary_db] --db_port [db_port](default:5432) --db_username [db_username] --db_password [db_password] --hostname [master_machine_hostname] --ha_host [master_machine_ip],[master_machine_hostname] --ha_host [slave_machine_ip],[slave_machine_hostname] --ha_cluster_vip [app_server_vip] -sf //[shared_folder_ip]/i -su [shared_folder_username] -sp [shared_folder_password]
  1. On the Slave node, run the following:
sudo bash siemplify_installer.sh --run_mode ha --db_ip [primary_db] --db_port [db_port](default:5432) --db_username [db_username] --db_password [db_password] --hostname [slave_machine_hostname] --ha_host [master_machine_ip],[master_machine_hostname] --ha_host [slave_machine_ip],[slave_machine_hostname] --ha_cluster_vip [app_server_vip] -sf //[shared_folder_ip]/i -su [shared_folder_username] -sp [shared_folder_password]  
  1. On the DR App node, run the following:
sudo bash siemplify_installer.sh --run_mode dr --db_ip [db_dr_ip] --db_port [db_port,default:5432] --db_username [db_username] --db_password [db_password]  -sf //[shared_folder_ip]/i -su [shared_folder_username] -sp [shared_folder_password] 

Example Commands

HA_VIP = 10.0.1.99
10.0.0.59
node1: sudo bash siemplify_installer.sh --run_mode ha --db_ip 10.0.1.98 --db_port 5432 --db_username siemplifydb --db_password djksfjdkfsj --hostname ha1.siemplify.com --ha_host 10.0.0.59,ha1.siemplify.com --ha_host 10.0.0.76,ha2.siemplify.com --ha_cluster_vip 10.0.1.99 -sf //172.22.14.3/y2 -su test -sp Aa123456
10.0.0.76
node2: sudo bash siemplify_installer.sh --run_mode ha --db_ip 10.0.1.98 --db_port 5432 --db_username siemplifydb --db_password Yeswecan2015 --hostname ha2.siemplify.com --ha_host 10.0.0.59,ha1.siemplify.com --ha_host 10.0.0.76,ha2.siemplify.com --ha_cluster_vip 10.0.1.99 -sf //172.22.14.3/y2 -su test -sp Aa123456

Check Status Cluster

  • Check the status of the cluster using the following command:
    pcs status
    The result should look like this:

Tips and Commands

After a successful installation we will have 2 nodes and 8 resources:

  • Cluster_VIP
  • webserver = nginx
  • Server_service
  • Connectors_service
  • ETL_service
  • Indexer_service
  • PlaybookActions_service
  • PythonExecution_service
    If you connect to the VIP (virtual IP) it will connect to the active node.
    If you connect to the DB VIP it will connect to the active DB.
    If one or more resource is stuck you can use the following command to reset:
    pcs resource failcount reset [RESOURCE]

How to manually switch nodes:

  1. Make sure the node that you want to switch to is online:
  2. If one of the nodes is on standby it will look like this:
  3. We can “unstandby” the node with the following command:
    pcs cluster unstandby ha2.siemplify.com
  4. After we are sure that both nodes are online I can set the active node on standby with the following command:
    pcs cluster standby ha1.siemplify.com
    This command will cause switching nodes as follows:

    Don’t forget to “unstandby” if you want to go back to the previous node

Need more help with this?
Click here to open a Support ticket

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.