Two node slave WildFly configuration on Linux - CustomerID
Make sure that Wildfly service is up and running
systemctl is-active wildfly.service # If not, run the following command systemctl start wildfly.service
After these steps, run the script config-wildfly-domain-prepare.sh
, which will remove unnecessary options from the host configuration.
cd /usr/local/ubisecure/customerid/tools ./config-wildfly-domain-prepare.sh
When the previous script has finished, run the config-wildfly-domain-slave.sh
. This will transform the local domain installation to a slave node and connects it to the domain master that was configured earlier.
At least under slow connections the script may show error message "Failed to establish connection in 6044ms" when reloading configurations. If you see it in the end-of-the script it is a good idea to verify your slave node Wildfly is running properly and can access the master node.
cd /usr/local/ubisecure/customerid/tools ./config-wildfly-domain-slave.sh