API Gateway 10.11 | Administering API Gateway | Deployment | Deployment Configurations | Cluster Deployment | Terracotta Server Array Configuration
 
Terracotta Server Array Configuration
API Gateway requires a Terracotta Server array installation if you select Terracotta server array based clustering. For more information, see webMethods Integration Server Clustering Guide and the Terracotta documentation located at http://www.terracotta.org/
A sample Terracotta configuration file is as follows:
<?xml version="1.0" encoding="UTF-8" ?>

<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tc-properties>
<property name="l2.nha.dirtydb.autoDelete" value="true"/>
<property name="l2.nha.dirtydb.rolling" value="2"/>
<property name="logging.maxLogFileSize" value="512"/>
<property name="logging.maxBackups" value="20"/>
<property name="l2.nha.tcgroupcomm.reconnect.timeout" value="10000"/>
<property name="l2.l1reconnect.timeout.millis" value="10000"/>
</tc-properties>

<servers>
<mirror-group group-name="group1">
<server host="${host}" name="server1" bind="0.0.0.0">

<data>/opt/softwareag/tsa/server-data</data>
<logs>/opt/softwareag/tsa/server-logs</logs>
<index>/opt/softwareag/tsa/server-index</index>
<authentication/>

<dataStorage size="2g">
<offheap size="2g"/>
</dataStorage>

</server>

<server host="${host}" name="server2" bind="0.0.0.0">

<data>/opt/softwareag/tsa/server-data</data>
<logs>/opt/softwareag/tsa/server-logs</logs>
<index>/opt/softwareag/tsa/server-index</index>
<authentication/>
<dataStorage size="2g">
<offheap size="2g"/>
</dataStorage>

</server>

</mirror-group>

<garbage-collection>
<enabled>true</enabled>
<verbose>false</verbose>
<interval>3600</interval>
</garbage-collection>

<restartable enabled="false"/>
<failover-priority>AVAILABILITY</failover-priority>

<client-reconnect-window>360</client-reconnect-window>

</servers>

<clients>
<logs>logs-%i</logs>
</clients>

</tc:tc-config>