2 Replies Latest reply: Oct 31, 2013 12:09 AM by user9028169 RSS

    How to join specific cluster in network

    user9028169

      Hi,

       

       

      Suppose i am running with 2 cluster in my network, let it be ClusterA and ClusterB

       

      Then how can i tell my code that the node i am starting should join ClusterA and not ClusterB?

       

      On which property or systemProperty it differentiate the clusters.

       

      Regards,

        • 1. Re: How to join specific cluster in network
          Leo_TA

          Hi ,

           

          Every coherence node ( client or server process ) has to be started with  -Dtangosol.coherence.override=tangosol-coherence-override.xml customization file.

           

          you have two ways to choose the cluster

           

          if you are using multicast

          You have to choose a cluster name , then each node will join only to another nodes with the same cluster name

           

          Example : tangosol-coherence-override.xml

           

          ...

          <cluster-config>
            <member-identity>
            <cluster-name system-property="tangosol.coherence.cluster">
             MyClusterName</cluster-name>
            </member-identity>
          </cluster-config>

          ..

           

           

          if you are using WKA (well-known-address)

          You have to choose every members in the cluster : host and port

           

          Example : tangosol-coherence-override.xml


          ...

          <socket-address id="serverprocess">

               <address>171.193.103.25</address>

               <port>8088</port>

              </socket-address>

          <socket-address id="clienprocess">

               <address>171.193.103.26</address>

               <port>8089</port>

              </socket-address>

          ...


          when start server include in java options

          -Dtangosol.coherence.localhost=171.193.103.25 -Dtangosol.coherence.localport=8088

          when start client include in java options

          -Dtangosol.coherence.localhost=171.193.103.26 -Dtangosol.coherence.localport=8089

           

           

          regards,

          Leo_TA

          • 2. Re: How to join specific cluster in network
            user9028169

            Thanks for your detail and helpful explanation