20.2. Configure JGroups Interfaces
Before JGroups Interface configuration, configure the JBoss Data Grid configuration (
clustered.xml or standalone.xml depending on the type of deployment) file to a key word rather than a dotted decimal or symbolic IP address as follows:
<socket-binding name="jgroups-udp" ... interface="site-local"/>
<socket-binding name="jgroups-udp" ... interface="site-local"/>
Then, configure the JGroups Interface as follows:
The configuration values used in the example are as follows:
link-local: Uses a169.x.x.xor254.x.x.xaddress. This suits the traffic within one box.site-local: Uses a private IP address, for example192.168.x.x. This prevents extra bandwidth charged from GoGrid, and similar providers.global: Picks a public IP address. This should be avoided for replication traffic.non-loopback: Uses the first address found on an active interface that is not a127.x.x.xaddress.