1 Reply Latest reply on Dec 23, 2015 11:20 AM by franco80

    Infinispan 8.1.Final cluster with 3 nodes (using remote cache)

    franco80

      Hi all

       

      I made few tests but still I'm not suite sure how I should configure a cluster of infinispan.

       

      In this moment I have 3 machines with infinispan server (8.1.0. Final each) with cluster.xml configuration:

       

      1) 127.0.0.1

      2) 127.0.0.2

      3) 127.0.0.3

       

      I wanted to use RemoteCache but I don't know that I can use it in this way.

       

              final ConfigurationBuilder builder = new ConfigurationBuilder();
      
              builder.addCluster("cluster1").
              
              addClusterNode("127.0.0.1", ConfigurationProperties.DEFAULT_HOTROD_PORT).
              addClusterNode("127.0.0.2", ConfigurationProperties.DEFAULT_HOTROD_PORT).
              addClusterNode("127.0.0.3", ConfigurationProperties.DEFAULT_HOTROD_PORT).
              
              addServers("127.0.0.1:11222;127.0.0.2:11222;127.0.0.3:11222");
                  
              final Configuration build = builder.build(true);
              final RemoteCacheManager cacheManager = new RemoteCacheManager(build);
      
      

       

      Each time when I try to run it always I recive the message:

       

      366 [main] INFO org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory  - ISPN004016: Server not in cluster anymore(/127.0.0.3:11222), removing from the pool.

      369 [main] INFO org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory  - ISPN004016: Server not in cluster anymore(/127.0.0.2:11222), removing from the pool.

       

      and then cache is not sent to nodes 2 and 3 anymore.

       

      Can you advise how to solve this problem ? Maybe my approach to this subject is wrong ?

       

      regards