BigMemory 4.3.9 | Product Documentation | BigMemory Max Administrator Guide | Terracotta Configuration Parameters | The Servers Parameters | /tc:tc-config/servers/server
 
/tc:tc-config/servers/server
A server stanza encapsulates the configuration for a Terracotta server instance. The server element takes three optional attributes (see table below).
Attribute
Definition
Value
Default Value
host
The address of the machine hosting the Terracotta server
Host machine's IP address or resolvable hostname
Host machine's IP address
name
The symbolic name of the Terracotta server; can be passed to Terracotta scripts such as start-tc-server using -n <name>
user-defined string
<host>:<tsa-port>
bind
The network interface on which the Terracotta server listens cluster traffic; 0.0.0.0 specifies all interfaces
interface's IP address
0.0.0.0
Each Terracotta server instance needs to know which configuration it should use as it starts up. If the server's configured name is the same as the hostname of the host it runs on and no host contains more than one server instance, then configuration is found automatically.
Here is a sample configuration snippet
<server>
<!-- my host is '%i', my name is '%i:tsa-port', my bind is 0.0.0.0 -->
...
</server>
<server host="myhostname">
<!-- my host is 'myhostname', my name is 'myhostname:tsa-port',
my bind is 0.0.0.0 -->
...
</server>
<server host="myotherhostname" name="server1" bind="192.168.1.27">
<!-- my host is 'myotherhostname', my name is 'server1',
my bind is 192.168.1.27 -->
...
</server>