In order for a Servoy Application Server to be part of a Servoy Cluster the Servoy Application Server needs to have a Servoy cluster License installed. The license must be installed on the Servoy Application Server before it is started/added to the cluster.
The Terracotta integration bundled with the Servoy Application Server installation contains two files that require modification. They need 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 needs 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 information.
The start_servoy_clustered.* file in the <servoy>application_server/terracotta directory is used to start a Servoy Application Server instance as part of a cluster.
This file needs to be edited to point to the local installation of Terracotta:
This change to start_servoy_clustered.* needs to be made to all instances of Terracotta that will be part of the cluster.