2 Replies Latest reply on Sep 19, 2014 3:54 PM by kwintesencja

    Start infinispan server on different physical machines

    hongyuy123

      I am able to run  Infinispan hotrod  server on the same machine (say machine A) with multiple nodes, all of those are joining the same cluster successfully. But if I start server on the different server (say machine B) within the same network,  it seems to start new cluster without joining the existing cluster.  I tried both jgroups-udp.xml and jgroups-tcp.xml configuration.

      I would appreciate that you have some clues.

       

      My start option: bin/startServer1.sh  -r hotrod -p 12333 -l 3.39.73.203 -c  /projects/infinispan-5.2.0.Alpha3-all/etc/config-samples/cluster.xml

      bin/startServer2.sh -r hotrod -p 12333 -l 3.39.73.204 -c /projects/infinispan-5.2.0.Alpha3-all/etc/config-samples/cluster.xml

      My startServer1.sh:

      add_jvm_args '-Djgroups.tcp.address=3.39.73.203'

       

      My startServer2.sh:

      add_jvm_args '-Djgroups.tcp.address=3.39.73.204'


      Here is the sample configuration cluster.xml, 

      <transport

                  clusterName="my-infinispan-cluster"

                  machineId="m3"

                  rackId="r1" nodeName="Node-C">

               <!-- Use the property below to point to a specific JGroups configuration file on your classpath -->

           

               <properties>

                  <property name="configurationFile" value="/projects/infinispan-5.2.0.Alpha3-all/etc/config-samples/jgroups-tcp.xml" />

               </properties>

            </transport>