3 Replies Latest reply on Apr 12, 2011 1:54 PM by wdfink

    Jboss-6.0 Clustering question RedHat SELinux

    pkondaka1

      Hello Folks,

       

      I am trying to start Jboss-6.0 installation in RedHat SELinux environment. Here is some information.

       

      I have 3 different physical boxes with following IP addresses. 10.0.1.101, 10.0.1.102, 10.0.1.103 and have Jboss-6.0.0 unzipped in /usr/jboss-6.0.0 directory.

      created node1, node2, node3 in different servers by copying /server/all to /server/node1 etc.

       

      10.0.1.101/usr/jboss-6.0.0/server/node1

      10.0.1.102/usr/jboss-6.0.0/server/node2

      10.0.1.103/usr/jboss-6.0.0/server/node3

       

      I am trying to start jboss using clustering with following

       

      ./run.sh -c node1 -g <partitionName> -b 10.0.1.101 -Djboss.messaging.ServerPeerID=1

       

      ./run.sh -c node2 -g <partitionName> -b 10.0.1.102 -Djboss.messaging.ServerPeerID=2

       

      ./run.sh -c node3 -g <partitionName> -b 10.0.1.103 -Djboss.messaging.ServerPeerID=3

       

      First question, How do i know all these 3 are in clustered? I didnot see any kind of message in console saying "all are in <partitionName>" something ....

       

      Please help me how test or make sure all these servers are in cluster.

       

      Thanks

        • 1. Jboss-6.0 Clustering question RedHat SELinux
          wdfink

          If you start the first you should find

          'Number of cluster members: 1'

          in you boot.log file.

           

          If you start additional a message should logged that the number of Members is 2,3,4 ...

          IF you want to see more you might change the category 'org.jgroups' to INFO/DEBUG/TRACE.

          Also you can follow the example in .../deploy/jboss-logging.xml and log the cluster messages into a cluster logfile.

          • 2. Jboss-6.0 Clustering question RedHat SELinux
            pkondaka1

            As i mentioned in my post, i am starting jboss in cluster using 3 servers. I didnot see adding up members to 2, 3. always see "Number of cluster members:1" in three servers boot log.

             

            this is how i am starting up.

             

            ./run.sh -c node1 -g <default> -u 224.0.3.61 -b X.X.X.61 -Djboss.messaging.ServerPeerID=1

             

            ./run.sh -c node1 -g <default> -u 224.0.3.61 -b X.X.X.62 -Djboss.messaging.ServerPeerID=2

             

            ./run.sh -c node1 -g <default> -u 224.0.3.61 -b X.X.X.63 -Djboss.messaging.ServerPeerID=3

             

            DO i need to use same multicast IP address? Do i need to open up any ports, since it is behind the firewall?

             

            Please help me.

             

            Thanks

            • 3. Jboss-6.0 Clustering question RedHat SELinux
              wdfink

              Yes, you need the same mcast address for the -u option.

              The cluster is controlled by the JGroups framework.

               

              I suppose you have problems with multicast, are your systems within the same sub-net?

              You might check the multicast function with the JGroups itselve.

              See http://http://community.jboss.org/wiki/TestingJBoss

               

              Best is to check and see the function if you start two instances at the same system.

              The third on the second should join in the test-cluster.

               

              Did this work?