5 Replies Latest reply on May 23, 2011 7:18 AM by Wolf-Dieter Fink

    JBoss 6 Clustering Documentation

    Rajan Bansal Newbie

      I want to clustering in JBoss6, but the documentation for that I found was of JBoss5. So can u please give me the link where I find out the JBoss6 documentation for clustering...

       

      Thanks in advance...

        • 1. JBoss 6 Clustering Documentation
          Wolf-Dieter Fink Master

          AFAIK the JBoss6 documentation is not complete and partially wrong (e.g. JMS).

           

          But you'll find most of the concepts and configuration similar in JBoss5 and 6.

          If not feel free to ask here .

          • 2. JBoss 6 Clustering Documentation
            Rajan Bansal Newbie

            As I am reading the Jboss5 clustering document.... And in that we have

            EachJBoss server instance (node) specifies which cluster (i.e., partition) it joins in the ClusterPartition MBean in the deploy/cluster-service.xml file.  As deploy/cluster-service.xml file doesn't exist in JBoss 6.  So I am going to point out which xml works as cluster-service.xml in Jboss6.

            • 3. JBoss 6 Clustering Documentation
              Wolf-Dieter Fink Master

              By default (if you use the all configuration) all instance join in to the same cluster.

               

              You should not change the configuration, instead you should start with run.sh -g <partitionName> -u <mcast address> -m <mcast port>

              this will separate the instances.

               

              To answer your question:

              look into server/all/deploy/cluster/jgroups-channelfactory.sar/META-INF/jgroups-channelfactory-stacks.xml

              there you find the configuration you looking for.

              • 4. JBoss 6 Clustering Documentation
                Rajan Bansal Newbie

                Its ookay..

                 

                But I want a file in which the following code is written..

                 

                <mbeancode="org.jboss.ha.framework.server.ClusterPartition"

                   name="jboss:service=DefaultPartition">

                        

                    <! -- Name of the partition being built-->

                    <attributename="PartitionName">

                       ${jboss.partition.name:DefaultPartition}

                    </attribute>

                 

                    <! -- The address used to determine thenode name -->

                    <attributename="NodeAddress">${jboss.bind.address}</attribute>

                 

                    <! -- Determine if deadlock detection isenabled -->

                    <attributename="DeadlockDetection">False</attribute>

                    

                    <! -- Max time (in ms) to wait for statetransfer to complete.

                        Increase for large states -->

                    <attributename="StateTransferTimeout">30000</attribute>

                 

                    <! -- The JGroups protocol configuration-->

                    <attributename="PartitionConfig">

                        ... ...

                    </attribute>

                </mbean>

                • 5. JBoss 6 Clustering Documentation
                  Wolf-Dieter Fink Master

                  The NodeAddress can be also set by start parameter runn.sh -b <ip>

                  JGroups protocol (PartitionConfig) should be also in the channelfactory.

                   

                  For DeadlockDetection and StateTransfer I don't know it, but I suppose this will be a infinispan configuration, see cluster/infinispan...

                   

                  Maybe here someone other can give you an answer.