Building Your Event-Driven Architecture : Using Terracotta with webMethods Products : Installing and Configuring the Terracotta Server Array for Use with webMethods Products : Configuring the Terracotta Server Array for Use with webMethods Product : Sample tc-config File
Sample tc-config File
The following is a sample file you can use as a template to create the tc-config file for your Terracotta Server Array. This sample includes settings in the <tc-properties> and <clients> sections that are required by webMethods products.
The <servers> section in this sample defines an array consisting of two mirrored Terracotta servers. Revise this section as needed to define the configuration of your particular server array. For more information about defining the configuration of the Terracotta Server Array, see BigMemory Max product documentation for 4.1 at http://terracotta.org/documentation/4.1/bigmemorymax/overview.
<tc:tc-config xmlns:tc="http://www.terracotta.org/config">
<!-- This is a required property for webMethods products -->
<tc-properties>
<property name="ehcache.storageStrategy.dcv2.perElementTTITTL.enabled"
value="true"/>
</tc-properties>
<servers>
<!-- Replace the host and name values for your server -->
<server host="host" name="name">
<data>server-data</data> ]
<logs>server-logs</logs>
<!-- Adjust the data storage size for the total amount of data -->
<!-- being stored by the server array up to the maximum allowed -->
<!-- by your Terracotta license.-->
<dataStorage size="20g">
<!-- hybrid mode is required by the Terracotta license provided -->
<!-- with webMethods products. -->
<!-- Terracotta server off heap is required to hold the keys -->
<!-- used for all caches. -->
<offheap size="2g"/>
<hybrid/>
</dataStorage>
</server>
<server host="host" name="name">
<data>server-data</data>
<logs>server-logs</logs>
<!-- The data storage settings must be identical for each server -->
<!-- in the mirror group. -->
<dataStorage size="20g">
<offheap size="2g"/>
<hybrid/>
</dataStorage>
</server>
<!-- This replaces the permanent-store attribute -->
<!-- from the 3.7.X version. This is not required to be enabled. -->
<!-- The setting applies to all servers in the mirror group. -->
<restartable enabled="true"/>
</servers>
<clients>
<logs>%(com.softwareag.tc.client.logs.directory)</logs>
</clients>
</tc:tc-config>
Copyright © 2016 - 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback