Two things need to be done to stop JBoss instances clustering together, changing the partition name and changing the multicast address (for UDP):
- To change the partition name, you can pass "-g PartitionName" or "--partition=PartitionName" to run.sh, or add "-Djboss.partition.name=PartitionName" to JAVA_OPTS.
- To change the JGroups multicast address, pass "-u x.y.z.w" to run.sh or add "-Djboss.partition.udpGroup=x.y.z.w -Djgroups.udp.mcast_addr=x.y.z.w" (example address would be 230.1.1.1)