no

How to Create a Wildfly Cluster

The following steps will help us configure a Wildfly cluster. *Note that I'm using Wildfly 11 *It took me some time to figure it out ...

The following steps will help us configure a Wildfly cluster.

*Note that I'm using Wildfly 11
*It took me some time to figure it out so I'm writing it here for reference.

  1. I'm using the standard-full-ha.xml profile
  2. In the program arguments add  
    1. -b 192.168.0.x -> or your local IP address. If you have JBoss Tools / Wildfly Server. It is the Hostname in the Wildfly server overview tab. This will let your server available in the network.
    2. -Djboss.node.name=opencell-alexander1 -> This is the name of your node which will enable clustering.
    3. -Djboss.bind.address.private=192.168.1.2 -> And finally, this will allow the EJB in your node to see each other. Before doing so, make sure that socking-binding group=jgroups-udp in your standalone config's value is private.
  3. And finally in the activemq subsystem set server.cluster password.
Here are parts of the configuration for your reference:

Wildfly server's configuration in eclipse:


Parts of standalone-full-ha.xml

//jgroups
<subsystem xmlns="urn:jboss:domain:jgroups:5.0">
 <channels default="ee">
  <channel name="ee" stack="udp" cluster="ejb"/>
 </channels>

//activemq
<subsystem xmlns="urn:jboss:domain:messaging-activemq:2.0">
 <server name="default">
  <cluster password="${jboss.messaging.cluster.password:secret}"/>

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

Related

wildfly 896621948813323486

Post a Comment Default Comments

item