How do I change multicast address of JBoss cluster ?

There are different options to change the default multicast address depending on the version of JBoss / WildFly which you are using.

Changing the multicast address in WildFly

In WildFly the System Property which controls the default multicast address is jboss.default.multicast.address and defaults to 230.0.0.4

<socket-binding name="jgroups-udp" interface="private" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/>

Therefore, you can change it as follows:

$ ./standalone.sh -Djboss.default.multicast.address=230.0.0.8

You can also use the “-u <value>” as a shortcut to the system property:

$ ./standalone.sh -u 230.0.0.8

Please note that when using the jboss.socket.binding.port-offset it has no effect on multicast ports. Therefore if you need so define a server offset that will have no impact on the multicast address.

Changing the multicast address in JBoss 5

The -u (or --udp) command line switch may be used to control the multicast address used by the JGroups channels opened by all standard JBoss Enterprise Application Platform services.

$ ./run.sh -u 230.1.2.3 -g QAPartition -b 192.168.1.100 -c production
Exit mobile version