As of 4.1, UDP is the default protocol. However, there are still TCP configuration files that are
packaged in platform-extension-config.jar!/conf/platform/jgroups
.
The files contain externalized variable names and default values for TCP. In case you want to use TCP instead of UDP, it is recommended that
you activate those files and, if you need to, change the default settings via exo.properties
.
See Configuration overview for the exo.properties
file.
To activate TCP default configuration files, edit standalone-exo-cluster.xml
to add the profile cluster-jgroups-tcp
:
<system-properties>
...
<property name="exo.profiles" value="all,cluster,cluster-jgroups-tcp"/>
...
</system-properties>
Note that by activating this profile, you use TCP for both JCR and IDM. It is possible to activate TCP default configuration for either JCR or IDM:
For JCR, set those variables in exo.properties
:
exo.jcr.cluster.jgroups.config=/conf/platform/jgroups/jgroups-jcr-tcp.xml exo.jcr.cluster.jgroups.config-url=jar:/conf/platform/jgroups/jgroups-jcr-tcp.xml
For IDM:
exo.idm.cluster.jgroups.config=/conf/platform/jgroups/jgroups-idm-tcp.xml
When switching to use TCP instead of UDP, you need to add some properties in exo.properties
:
# Assume node1 is 192.168.1.100 and node2 is 192.168.1.101. Here is configuration for node1: exo.jcr.cluster.jgroups.tcp.bind_addr=192.168.1.100 exo.jcr.cluster.jgroups.tcpping.initial_hosts=192.168.1.100[7800],192.168.1.101[7800] exo.idm.cluster.jgroups.tcp.bind_addr=192.168.1.100 exo.idm.cluster.jgroups.tcpping.initial_hosts=192.168.1.100[7900],192.168.1.101[7900]