For detailed introduction to Infoworks HA below


http://docs.infoworks.io/knowledge-base/infoworks-high-availability-tool/


PROBLEM DESCRIPTION:


Start the Services


To bring the services up and running , follow these steps in the same order:


1. Navigate to infoworks installation directory and type the following command:


cd $IW_HOME    

ls -l  (to make sure all the scripts are in place and you have not lost the scripts due to upgrade or patch)

ps aux  | grep mongo (to get the mongodb process ID)



2. Check the logs of mongodb with the following command:

cd ../logs

tail -100 mongod.log


3. Check for socket error message at the last few lines of the file. If you see the socket error message, kill the mongo process and restart the mongo


    In HA Setup, you can stop mongo process by entering the following command:


source $IW_HOME/bin/env.sh  

./stop.sh mongo or sh stop.sh mongo



4. Initiate the Active Setup.

cd $IW_HOME/bin    
./start-active.sh 


After this process, verify the affected process by entering sh status.sh or ./status.sh command and you will receive the complete status details of the process.


5. Initiate the Passive setup

./start-passive.sh 



After this process, verify the affected process by doing sh status.sh or ./status.sh and you will receive the complete status details of the process.



Stop the Services


To bring the services Down , follow these steps in the same order:


1. Navigate to infoworks installation directory and type the following command:

 

cd $IW_HOME/bin
source env.sh
./stop.sh ha


After stopping the HA services, the Infoworks is not running in a HA mode.


2. Validate the services by running the status.sh script


cd $IW_HOME/bin
source env.sh
./status.sh


After running this command user will be able to see HA services are stopped in infoworks.


User's can access the HA log file located in 

$IW_HOME/logs/ha.logs


Same can be shared with Infoworks support team for further clarification or troubleshooting the same.