4 Replies Latest reply on Oct 5, 2005 4:59 PM by belaban

    Do different Cluster Partitions need different multicast IP

    jcprout

      I am running several JBoss 4.0.2 clusters on the same sub-net. Only HttpSession is clustered.

      The cluster membership is set using -Djboss.partition.name=foo when I start JBoss.

      My problem is that although the clusters have different names, it seems that every server is part of the same partition. All HttpSession objects are replicated to all cluster servers, even though the servers are in 3 different partitions.

      All cluster servers are using the same multicast IP address (UDP multicast)

      Am I misunderstanding how to seperate clusters? Do I need to use different multicast IP addresses, aswell as different partition names, for different clusters?

      Thanks!

      John

        • 1. Re: Do different Cluster Partitions need different multicast
          brian.stansberry

          The standard "all" config of JBoss creates 2 partitions, one used for HttpSession replication, the other for lots of other stuff like HA-JNDI, HA-RMI, EJB 2.0 clustering, farming etc.

          The jboss.partition.name system property controls the name of this second partition. The name of the partition used for HttpSession replication needs to be configured in the /deploy/tc5-cluster-service.xml file.

          We also definitely recommend using a different multicast port or address for different partitions. Otherwise the lower level JGroups protocols need to handle packets for other partitions, which at a minimum degrades performance and sometimes causes anomolous behavior.

          • 2. Re: Do different Cluster Partitions need different multicast
            jcprout

            That explains what we've been seeing, and may explain some unreliability with replication of deployments made to the farm directory.

            I'll make the changes and start testing again

            Thanks!

            John

            • 3. Re: Do different Cluster Partitions need different multicast
              bh5k

              Ok lame question, but related to multicast IP. I want to setup a cluster, but not have my network team freakout about what I am doing and have to explain the whole thing to 3 different managers. Do I need to use UDP or can I just use TCP. To setup this basic cluster and what is the real benefit to using UDP? It isn't a prod environment and just a simple POC.

              Thanks!

              • 4. Re: Do different Cluster Partitions need different multicast
                belaban

                I say go for multicasting, but set the ip_ttl to a low value so not everyone sees your multicasts.
                If you want to use TCP, simply list all members in TCPPING (see sample configs for details).
                Regarding the explaining to 3 different managers: watch Office Space and get some good ideas what to do ... :-)