2 Replies Latest reply on Aug 5, 2010 3:08 AM by elhanan

    how can i make a cluster from default server config?

    elhanan

      hi..

       

      i would like to know what are the configuration files and jars needed to turn the default server config into one that supports clustering ((only interested in trying to jbosses on the same machine) , or do i simply copy jboss-cluster.xml into 2 instances of jboss default and copy the missing jars from the lib of all?

        • 1. Re: how can i make a cluster from default server config?
          jaikiran

          Why not start off with the "all" configuration and if required remove any unwanted services from that config.

          • 2. Re: how can i make a cluster from default server config?
            elhanan

            because we allready have an existing configuration which started from the default config and i would not like to change it. (or at least it as least as possible).

             

            so far all i did was copy the folowing jars the default config:

            jboss-cache-jdk50.jar

            jacorb.jar

            jbossha.jar

            jgroups.jar

             

            and add the follwing cluster-service.xml which contains:

             

            <?xml version="1.0" encoding="UTF-8"?>

             

            <server>
            <mbean code="org.jboss.ha.framework.server.ClusterPartition"
                name="jboss:service=DefaultPartition">
                    
                <!-- Name of the partition being built -->
                <attribute name="PartitionName">
                    ${jboss.partition.name:DefaultPartition}
                </attribute>

             

                <!-- The address used to determine the node name -->
                <attribute name="NodeAddress">${jboss.bind.address}</attribute>

             

                <!-- Determine if deadlock detection is enabled -->
                <attribute name="DeadlockDetection">False</attribute>
                
                <!-- Max time (in ms) to wait for state transfer to complete.
                    Increase for large states -->
                <attribute name="StateTransferTimeout">30000</attribute>
            </mbean>
            </server>

             

            so far both jboss seems fine they go up..

            9:26:02,986 INFO  [DefaultPartition] New cluster view for partition DefaultPartition (id: 1, delta: 1) : [127.0.0.1:1099, 127.0.0.1:1199]

            09:26:02,986 INFO  [DefaultPartition] I am (127.0.0.1:1099) received membershipChanged event:

            09:26:02,986 INFO  [DefaultPartition] Dead members: 0 ([])

            09:26:02,986 INFO  [DefaultPartition] New Members : 1 ([127.0.0.1:1199])

            09:26:02,986 INFO  [DefaultPartition] All Members : 2 ([127.0.0.1:1099, 127.0.0.1:1199])

             

            all i wanna do is to check ehchache via jms messeging...