On-premise high availability configuration
Deploy second app node
Follow the guide from the APP Server Installation (only steps 1-14 should be executed) section.
Replace
environment.confon the second node with the file from the first node and edit the following fields:NameDescriptionWFHOSTNAME FQDN of WorkFusion second node. This should be different from first node FQDN, S3 Emulator FQDN, DB FQDN
Change vault configuration
Copy client certificates
FIRST.NODE.DNS.p12andFIRST.NODE.DNS-ws-sndbx.p12from/opt/workfusion/apps/webapps/wf_sec_storageon the first node to all others nodes.Edit the
/opt/workfusion/apps/webapps/tomcat/conf/workfusion.propertiesfile on the second node and change the following properties. They should be the same as on the first node.Property namewf.resource.url s3.endpoint.url s3.bucketURL secure.storage.safe.customer.default secure.storage.safe.internal secure.storage.serverApi secure.storage.client.certificate secure.storage.username.customer datasource.wf.xaProperties.url datasource.ds.xaProperties.url Edit the
/opt/workfusion/apps/webapps/tomcat/conf/workspace.propertiesfile on the second node and change the following properties. They should be the same as on the first node.Property namedataSource.url web.resourceUrl secure.storage.safe.customer.default secure.storage.safe.internal secure.storage.serverApi secure.storage.client.certificate secure.storage.username.customer Edit the
/opt/workfusion/apps/webapps/tomcat/conf/workspace-sandbox.propertiesfile on the second node and change the following properties. They should be the same as on the first node.Property namedataSource.url web.resourceUrl secure.storage.safe.customer.default secure.storage.safe.internal secure.storage.serverApi secure.storage.client.certificate secure.storage.username.customer Update the
hazelcast.network.tcpip.membersproperty with a list of all nodes IP addresses.Log in to the first node via SSH.
Change the working directory
cd /opt/workfusion/apps/webapps/wf_sec_storage/- Create a
ha-members.propertiesfile with the following content.
hazelcast.network.tcpip.members=FIRST_NODE_IP,SECOND_NODE_IP- Upload the property to the secure storage.
/opt/workfusion/lib/java/bin/java -jar loader-security-properties.jar connectionProps.json ha-members.properties
Update Tomcat configuration
Edit the
/opt/workfusion/apps/webapps/tomcat/conf/server.xmlfile on each node.Section Name Description Receiver address ip address of the configured app node port Specify the port for tomcat cluster. Should be different from Tomcat Server port. Should be the same on all nodes. Should be different from Connector port (Connector port can be found in /opt/workfusion/apps/webapps/tomcat/conf/server.xml)Member port use the same value as a receiver port host ip address of the next application node uniqueId Should be unique on each node Copy the
license.propertiesfile (obtain from the first node) to the location specified asLICENSE_PATHin theenvironment.conffile.Restart tomcat on each node.
Update Nginx configuration on all nodes
Edit the
/opt/workfusion/apps/nginx/etc/upstream/wf-hafile.Add each node to to the bottom of the upstream
wf_hasection of this file using the following format:server APP_FQDN:TOMCAT_PORT;upstream wf_ha { sticky; server onprem-v2-623-8.4.1-wf1.workfusion.com:13080; server onprem-v2-623-8.4.1-wf2.workfusion.com:13080; }Edit the
/opt/workfusion/apps/nginx/etc/upstream/ws-hafile.Add each node to the bottom of the upstream
ws_hasection of this file using the following format:server APP_FQDN:TOMCAT_PORT;upstream ws_ha { sticky; server onprem-v2-623-8.4.1-wf1.workfusion.com:13080; server onprem-v2-623-8.4.1-wf2.workfusion.com:13080; }Reload the Nginx configuration.
service nginx restart