2 Replies Latest reply on Nov 15, 2012 12:42 PM by maxmil

    Separate cluster groups

    maxmil

      We are deploying multiple clusters of JBoss AS7 instances in one data center. Each instance contains an application with an embedded Infinispan cache manger and varios caches.

       

      It is working great and JGroups with the default configuration discovers other instances of the application on the network and creates custered infinispan caches across them.

       

      However we really want to limit this to the applications in the same cluster rather than all the machines in the data center. We don't want applications in different cluster groups to share the same infinispan cache.

       

      Is there any way that we can do it that would be application agnostic, ie.Without generating different builds of our application for each cluster?

        • 1. Re: Separate cluster groups
          rachmato

          If you're using UDP as a transport, using different multicast addresses (jboss.default.multicast.address) for each group should do the trick.

          1 of 1 people found this helpful
          • 2. Re: Separate cluster groups
            maxmil

            I'm using embedded caches rather than the built in JBoss infinispan cache. I think that jboss.default.multicast.address applies only to the built in infinispan cache.

             

            However i seem to have found a solution, by storing node names in the database i can set the System property jgroups.udp.mcast_addr before starting jgroups which keeps them separate. This parameter could alternatively be passed to each JVM.