When running multiple clustered Servoy Application Servers on the same machine a couple of additional configuration steps are required.
Why run multiple clustered Servoy Application Servers on the same machine
Logically, is does not make sense to run multiple clustered Servoy Application Servers on the same machine, as the the goal of clustering is load balancing, scalability and failover. The only valid reason for doing so is testing purposes
Even when not running Servoy Cluster, there are a few things to take into consideration. See Running multiple Servoy Application Servers on the same machine
Specifically for clustered Servoy Application Servers running on the same machine, the following needs to be configured:
- In worker.properties in <servoy>/application_server/terracotta, change the ports & hostnames to the correct ones (can be same hostname for more workers, but with different ports (11009, 12009 for example)).
in tc-config.xml change line "<logs>%(user.home)/terracotta/client-logs</logs>" to "<logs>%(user.home)/terracotta/client-logs/%(tc.node-name)</logs>".
set an unique node name for each server by adding "-Dtc.node-name=nodeName" after "-Dtc.config=terracotta\tc-config.xml" in each "start_servoy_clustered.*".