2 Replies Latest reply on Sep 5, 2012 7:23 PM by mircea.markus

    Using Relay2 for multiple sites

    bevans88

      Hi,

       

      I'm currently trying to use the new Relay2 to provide clustering between multiple sites (3 sites, consisting of 3 clusters [1 per site]), however I am encountering problems with the following:

       

      • I currently have 4 configuration files; an Infinispan configuration file which defines the cluster name and configurationFile, a tcp file which defines the local cluster (TCP), a relay2 config file which defines the sites and the bridge config files and then the transport file for the "global" cluster. The relevant parts of these config files are below.

       

      Infinispan.xml. (I have a seperate one of these for each node on each cluster as I am using TCP for all communications).

       

      <global>

           <transport clusterName="SiteA">

              <properties>

                  <property name="configurationFile" value="A-Node-1.tcp,xml />

             </properties>

          </transport>

      </global>

       

       

      A-Node-1.tcp.xml. (All nodes are being run on the same machine, just with different ports. These TCP configs just define each sites nodes).

       

      <TCPPING timeout="3000"

                        initial_hosts="127.0.0.1[7800], 127.0.0.1[7801]"

                        port_range="0"

                        num_initial_members="2" />

       

      <relay.RELAY2 site="A" config="site_config_relay2.xml" relay_multicasts="true" />

       

      site_config_relay2.xml

       

      <sites>

          <site name="A" id="0">

              <bridges>

                  <bridge config="global.xml" name="global"/>

              </bridges>

          </site>

         <site name="B" id="1">

             <bridges>

                 <bridge config="global.xml" name="global"/>

             </bridges>

         </site>

         <site name="C" id="2">

             <bridges>

                 <bridge config="global.xml" name="global"/>

             </bridges>

         </site>

      </sites>

       

      global.xml. The initial hosts is one of the nodes from each of the 3 sites.

       

      <TCPPING timeout="3000"

                       initial_hosts="127.0.0.1[7800], 127.0.0.1[7803], 127.0.0.1[7805] "

                       port_range="0"

                       num_initial_members="2" />

       

      The problem is that the clusters are unable to see each other, with messages not going between them. The following logs are displayed:

       

      WARN protocols.TCP: discarded message from different cluster "global" (our cluster is "SiteA").

       

      I have tried to follow the information contained in the jgroups manual in relation to Relay2, however with no global.xml being provided I assume that mine is correct?

       

      Thanks,

       

      Brent