20.2. Configure JGroups Interfaces
Before JGroups Interface configuration, configure the
bind_addr
property in the JGroups configuration file to a key word rather than a dotted decimal or symbolic IP address as follows:
<socket-binding name="jgroups-udp" ... interface="site-local"/>
Then, configure the JGroups Interface as follows:
<interfaces> <interface name="link-local"><link-local-address/></interface> <interface name="site-local"><site-local-address/></interface> <interface name="global"><any-address/></interface> <interface name="non-loopback"><not><loopback/></not></interface> </interfaces>
The configuration values used in the example are as follows:
link-local
: Uses a169.x.x.x
or254.x.x.x
address. 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.x
address.