3 Replies Latest reply on May 18, 2006 3:40 PM by Brian Stansberry

    same node in multiple clusters

    Alex Levine Newbie

      I have a setup where I have 4 servers A, B, C, and D. I want my EJBs clustered across all of them, but I want to isolate my HA-JMS to A and B, while isolating my webapp clustering to C and D. I was assuming that I could achieve this by making three partitions on called ejbPartition, to which all nodes(A, B, C, and D) would belong. Then I would have one parittion called jmsPartition to which only A and B would belong and then a third partition called webPartition, to which only C and D would belong.

      In the docs at: http://docs.jboss.org/jbossas/jboss4guide/r4/html/cluster.chapt.html

      it states that it is possible to add a machine to multiple partitions, but it could lead to added complexity and it also does not say how to do so.

      So my primary question is how do I add a node to multiple clusters?? Do I just define multiple org.jboss.ha.framework.server.ClusterPartition mbeans in the cluster-service.xml file, or is it more complicated than that??

      Also, how do I specify which partition a web app replicates in??

        • 1. Re: same node in multiple clusters
          Brian Stansberry Master

          Yep, adding another ClusterPartition mbean is what you do for EJBs and HA-JMS. Make sure each has a different multicast address and port from the others. If you look at the other services defined in the cluster-service.xml file, you can make duplicates of those as well if you want (e.g. an HA-JNDI service that only spans the ejbPartition). You can even create a separate farm service for your partitions (see deploy/deploy.last/farm-service.xml).

          Note that webapp clustering (i.e. session replication) is really driven by the tc5-cluster-service.xml file.

          • 2. Re: same node in multiple clusters
            Alex Levine Newbie

            Brian, thanks for the quick response. I am currently using jboss-4.0.4 which does not seem to have the tc5-cluster-service.xml file but instead has a tc5-cluster.sar directory. Am I safe to assume that the tc5-cluster.sar/META-INF/jboss-service.xml file is what I would edit to manage the webapp clustering. Also, I do not seem to have a farm-service.xml file.

            • 3. Re: same node in multiple clusters
              Brian Stansberry Master

              Sorry for the slow response this time :(

              Yes tc5-cluster.sar/META-INF/jboss-service.xml has the same function as the old tc5-cluster-service.xml.

              Don't know what to tell you about farm-service.xml. It shoud be there in server/all/deploy/deploy.last. If you're not using farming at all, not having a separate version for your new partition probably isn't an issue for you either :-)