Infinispan distributed cache across multiple servers

868 Views Asked by At

I'm trying to setup a simple distributed cache across three VMs using Infinispan 8.2. And I'm having trouble getting the data to spread across the different VMs. If I start multiple servers on the same VM using the <server></server> tag in the host.xml file, the data is distributed between them. However if I only start one server per VM, the data never gets pushed to the other VMs.

Cache is defined as follows in the domain.xml on server 1:

<distributed-cache name="myCache" owners="3" segments="60" mode="SYNC" remote-timeout="30000" start="EAGER" statistics="true">
    <locking striping="false" acquire-timeout="30000" concurrency-level="1000"/>
    <transaction mode="NONE"/>
    <eviction strategy="LRU" type="MEMORY" size="10000000000"/>
</distributed-cache>

Server 2 and 3 are configured through their host-slave.xml and connect to server 1 just fine.

I can see all nodes in the web Server Management Console when looking at the cache, but there seems to be something missing because the data is bound to the VM.

Ideally I'd like to have 2 nodes per VM for a total of 6, withnumOwners=3.

Any idea what could be an issue?

0

There are 0 best solutions below