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
Recommended Articles
Configure JBoss to Bind to a Different IP Address
Learn how to change the IP address bound to JBoss using the 'jboss.bind.address' property and the '-b' option. Get started with configuring JBoss for public or management interfaces.
Configure WildFly Bind Address: A Step-by-Step Guide
Learn how to set up the bind address in WildFly using command line arguments and configuration files, including binding to IP addresses for public and management interfaces.
Configure WildFly Proxy Address Forwarding with CLI Commands
Learn how to configure WildFly's Web Server for proper proxy address forwarding using CLI commands and x-forwarded-host header.
Cluster Web Applications Using WildFly Application Server
Learn how to cluster a web application with WildFly and JBoss AS 5. Improve scalability and availability with our expert guide.