TCP Gossip Router configuration, JBoss 5 EAP

    This page describes a sample TCP Gossip router configuration for JBoss 5 EAP. This example uses the default JGroups TCP configuration for JBoss 5 EAP.

     

    Edit the following file in a text editor:

    $JBOSS_HOME/jboss-as/server/myinstance/deploy/cluster/jgroups-channelfactory.sar/META-INF/jgroups-channelfactory-stacks.xml

     

    Find the following section and change from:

    <!-- Alternative 1: multicast-based automatic discovery. --> 
                 <MPING timeout="3000"
                        num_initial_members="3"
                        mcast_addr="${jboss.partition.udpGroup:230.11.11.11}"
                        mcast_port="${jgroups.tcp.mping_mcast_port:45700}"
                        ip_ttl="${jgroups.udp.ip_ttl:2}"/>          
    <!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration
                      of *all* possible cluster members.
                 <TCPPING timeout="3000"
                          initial_hosts="${jgroups.tcpping.initial_hosts:localhost[7600],localhost[7601]}"
                          port_range="1"
                          num_initial_members="3"/>

    -->

     

    To:

     

    <!-- Alternative 1: multicast-based automatic discovery.  
                 <MPING timeout="3000"
                        num_initial_members="3"
                        mcast_addr="${jboss.partition.udpGroup:230.11.11.11}"
                        mcast_port="${jgroups.tcp.mping_mcast_port:45700}"
                        ip_ttl="${jgroups.udp.ip_ttl:2}"/>

    -->         
                 <!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration
                      of *all* possible cluster members. -->
                 <TCPGOSSIP initial_hosts="${address1}[5555],${address2}[5555]"
                              gossip_refresh_rate="60000"
                              num_initial_members="3"/>

     

    See http://www.jboss.org/community/wiki/JGroupsGossipRouter for more information on the JGroups Gossip Router.