2 Replies Latest reply on Dec 21, 2012 7:13 AM by Abhijeet Jha

    Clustering on JBOSS 5.1 over different network

    Abhijeet Jha Newbie

      I am trying to set up Cluster Environement on JBOSS 5.1 over different network(172.16.X.X) and(192.168.X.X); both are on different Subnet. After Starting the Server I can see only one node in the Culster view and not the other one. On 172.16.X.X only 172.16.X.X is added to the Cluster view and on 192.168.X.X only 192.168.X.X is added to the Cluster view. Ideally on both nodes it should display both the nodes in cluster view.

       

      Log Shows:

       

      1)On 172.16.X.X:

      org.jboss.messaging.core.impl.postoffice.GroupMember$ControlMembershipListener@1c572d0 got new view [172.16.X.X:55200|0] [172.16.X.X:55200], old view is null

      2012-12-17 16:32:18,468 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (main) I am (172.16.X.X:55200)

      2012-12-17 16:32:18,468 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (main) New Members : 1 ([172.16.X.X:55200])

      2012-12-17 16:32:18,468 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (main) All Members : 1

       

      2)On 192.168.X.X

      org.jboss.messaging.core.impl.postoffice.GroupMember$ControlMembershipListener@1c572d0 got new view [192.168.X.X:55200|0] [192.168.X.X:55200], old view is null

      2012-12-17 16:32:18,468 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (main) I am (192.168.X.X:55200)

      2012-12-17 16:32:18,468 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (main) New Members : 1 ([192.168.X.X:55200])

      2012-12-17 16:32:18,468 INFO  [org.jboss.messaging.core.impl.postoffice.GroupMember] (main) All Members : 1

       

      Please help me so that I can see both the nodes(172.16.X.X and192.168.X.X) in Cluster Group/View.And I can say actually a Clustered Environment has setup.:-)

       

      Thanks in Advance!!!!

        • 1. Re: Clustering on JBOSS 5.1 over different network
          Radoslav Husar Master

          Hi Abhijeet,

           

          So what seems to be happening, is that these 2 subnets are not able to talk to each other over UDP multicast.

           

          • So either get the switch to forward this traffic
          • or use TCP and static configuration to do this.

           

          To do this, open this file:

           

          jboss-as/server/all/deploy/cluster/jgroups-channelfactory.sar/META-INF/jgroups-channelfactory-stacks.xml

           

          and configure static configuration using TCPPING instead of MPING.

           

          Rado

          • 2. Re: Clustering on JBOSS 5.1 over different network
            Abhijeet Jha Newbie

            Hi Rado,

             

            Thanks for your concern!!!!

             

            I configured as suggested by you but still this two nodes (172.16.X.X and192.168.X.X) are not getting added in Cluster Group/View.

             

            To start the JBOSS 5.1 Server I run following command:

             

                                           On 172.16.X.X:  run.bat -c all -g DocsPartition -u 231.12.X.X -b 172.16.X.X -Djboss.messaging.ServerPeerID=1 -Djboss.vfs.forceCopy=false                                       

             

                                           On 192.168.X.X:run.bat -c all -g DocsPartition -u 231.12.X.X -b 192.168.X.X -Djboss.messaging.ServerPeerID=2 -Djboss.vfs.forceCopy=false

             

            I have attached the TCPING configured jgroups-channelfactoru-stacks.xml of both the nodes. Please provide assistence by referring those two.

             

            Awaiting your reply!!!!