6 Replies Latest reply on Jul 1, 2004 11:45 PM by fe2o3

    how to run several clusters on the same network

    zhangj

      in jboss document "jboss clustering",chapter 3,say:
      If you want to run several clusters on the same network, you can change
      the name of the partition so that different nodes use different partition names.
      However, this requires additional changes as many services will look for a
      partition named “DefaultPartition” and will fail to start if such a partition does
      not exist (or has been renamed). Consequently, it is much easier to leave the
      partition name as is and instead to change the multicast address being used
      (“mcast_addr” attribute of the UDP layer).

      is it hard to set up a named cluster?since many services will look for a
      partition named “DefaultPartition”,do I have to set up DefaultPartition,then,does others Partition need to communicate with this DefaultPartition?how can I do new partition be change the multicast address?
      is there any document shw how to do this?

        • 1. Re: how to run several clusters on the same network
          kaobe

          Hi zhangj,

          I have changed the partition name. I searched for "DefaultPartition" in the JBoss directory and changed it to my partition name. I did cost me about 5 minutes.

          Peter

          • 2. Re: how to run several clusters on the same network
            myname

            Hi Peter,

            I agree that it's a five minute job to do all the replacements. But: you will get errors like

            [HASingletonController] Starting failed jboss.ha:service=HASingletonDeployer
            javax.management.InstanceNotFoundException: Failed to find HAPartition with PartitionName=DefaultPartition


            It seems like the DefaultPartition is hardcoded there. Or is there an attribute I can set to direct HASingleton to the partition?

            Regards

            Volker

            • 3. Re: how to run several clusters on the same network
              darranl

              The easiest way to set up different clusters on the same network is to just change the multicast address.

              • 4. Re: how to run several clusters on the same network
                hbaxmann

                .. and DNS name. Or use the -Dresolve.dns="false" for the GMS

                bax

                Ref: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=50568

                • 5. Re: how to run several clusters on the same network
                  fe2o3

                   

                  "myname" wrote:
                  Hi Peter,

                  [HASingletonController] Starting failed jboss.ha:service=HASingletonDeployer
                  javax.management.InstanceNotFoundException: Failed to find HAPartition with PartitionName=DefaultPartition


                  It seems like the DefaultPartition is hardcoded there. Or is there an attribute I can set to direct HASingleton to the partition?



                  Yes, you can add the PartitionName attribute to this one. It's missing from the distro. If you can't track down and get it to work, email me and I'll get some additional info (I'm at home now).

                  Brad

                  • 6. Re: how to run several clusters on the same network
                    fe2o3

                    Can someone please post some information concerning changing the DefaultParition name to allow multiple clusters on the same network. I understand and have successfully changed the partition-name but I get those jgroups warnings about discarding messages from other groups.

                    I mean,... I always see the

                    It's easiest to change the multicast address
                    response. Is the the only way to do it? I just don't understand the purpose of partition-name in the first place if that doesn't work.

                    Thanks,
                    Brad