One Terracotta instance needs to act as Terracotta server in the cluster. This can be a Terracotta instance on the same machine as one of the Servoy Application Servers in the Servoy Cluster or it can be a dedicated Terracotta instance on a dedicated machine.
When using a Terracotta instance on a machine that also runs one of the Servoy Application Servers, make sure that the machine either gets less load on the Servoy Application Server by using a Load Balancer, or make sure that the machine is capable of handling a higher load.
The Servoy Application Server installation contains a convenient script/batchfile to start the Terracotta instance as a server. Before use, the file needs to be edited to point to the location where Terracotta is installed. Open the file start_terracotta_server.bat/start_terracotta_server.sh in the <servoy>/application_server/terracotta/ directory using a text editor. In the file, replace the text "[path_to_terracotta_install]" with the directory in which the Terracotta instance was installed.
Using a dedicated machine to run the Terracotta instance that acts as server
When a dedicated machine is used to run teh Terracotta instance that will act as server, copy the file mentioned above and tc-config.xml from the same directory on a machine where the Servoy Application Server is installed to a directory on the dedicated machine for the Terracotta server instance. Do replace the text "[path_to_terracotta_install]" in terracotta_server.bat/start_terracotta_server.sh accordingly