The Servoy Application Server installation comes bundled with Terracotta integration. This integration needs to be configured to find both the local Terracotta instance and the Terracotta Server instance.
The tc-config.xml file in the <servoy>/application_server/terracotta directory is the configuration file for the Terracotta instance and is used by the start_servoy_clustered.bat/sh to launch both the Terracotta instance (if not already started) and the Servoy Application Server.
The tc-config.xml file contains a settting that needs to be pointed to the hostname/IP address of the Terracotta Server instance:
This change to tc-config.xml need to be made to all instances of Terracotta that will be part of the cluster.
Using a dedicated machine to run the Terracotta instance that acts as server
When using a dedicated machine to run the Terracotta instance that will act as Terracotta Server, the tc-config.xml also needs to copied to the same directory where the start_terracotta_server.bat/start_terracotta_server.sh file was copied in the previous step
Additional Terracotta settings
The Terracotta configuration can be further tuned if required by editing the tc-config.xml. See the official Terracotta documentation for more infomration.
Starting a Servoy Application Server instance as part of a cluster is done by executing the start_servoy_clustered.* file located in the <servoy>application_server/terracotta directory.
This file needs to be edited to point to the local installation of Terracotta:
change "[path_to_terracotta_install]" to the path where Terracotta is installed.