For each tc Server instance that will be a member of the cluster,
update its CATALINA_BASE/conf/server.xml by adding a
<Cluster> child-element of the
<Engine> element, as shown in the following
example (only relevant sections shown):
<?xml version='1.0' encoding='utf-8'?>
<Server port="-1" shutdown="SHUTDOWN">
...
<Service name="Catalina">
...
<Engine name="Catalina" defaultHost="localhost">
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
...
</Engine>
</Service>
</Server>
The server.xml file for many tc Server
instances already contains a commented-out
<Cluster>; in which case, simply remove the
comment tags.
You can also add the
<Cluster> element to the
<Host> element of the
server.xml file, which means that you want enable
clustering in all the virtual hosts of tc Server. When you add the
<Cluster> element inside the
<Engine> element, the cluster appends the host
name of each session manager to the manager'ss name so that two
contexts with the same name but sitting inside two different hosts are
distinguishable.