How to configure cross site replication with Infinispan 7.2.1
mgeorg Sep 14, 2015 6:52 AMHello,
I'm trying to test cross side replication between 2 clusters of three nodes each with Infinispan 7.2.1 and the underlying JGroups communication library,
which is bundled with Infinispan 7.2.1 .
The configuration is as follows:
CSR-1 = first site / cluster with three nodes running on three different computers (c0, c1, c2).
The Infinispan configuration is in file 'infinispan-cache-CSR1.xml', the JGroups configuration in file
'jgroups-udp-CSR1.xml'. Every node in the cluster reads the same configuration files. The multicast address
and port for cluster communication is '228.6.7.8:46655' for every node. The attributes for the RELAY2 protocoll
are 'site="CSR-1" config=".../jgroups-relay2.xml" relay_multicasts="true" '
CSR-2 = second site / cluster with three nodes running on three different computers (c0, c1, c2).
The Infinispan configuration is in file 'infinispan-cache-CSR2.xml', the JGroups configuration in file
'jgroups-udp-CSR2.xml'. Every node in the cluster reads the same configuration files. The multicast address
and port for cluster communication is '229.6.7.8:46660' for every node. The attributes for the RELAY2 protocoll
are 'site="CSR-2" config=".../jgroups-relay2.xml" relay_multicasts="true" '
For both sides, the 'jgroups-relay2.xml' file defines a global cluster for the inter site communication, the configuration
is in file 'jgroups-relay2-tcp.xml'.
At the moment, the cache in site 'CSR-2'('KeyValueProviderCSR2') is the backup cache for the cache in site 'CSR-1' ('KeyValueProviderCSR1').
This is configured in 'infinispan-cache-CSR1.xml' resp. 'infinispan-cache-CSR2.xml' . When running both clusters and sending data to node
c0 of site CSR-1, I got the error message
"no route to CSR-2:drop the message"
for every key / value pair which has to be backuped to site CSR-2.
What is wrong with the configuration. I have tried to follow the documentation for cross site replication, but it doesn't work.
The configuration files are attached.
Thanks,
Michael
-
cfg-c0.tar.zip 2.4 KB
-
cfg-c1.tar.zip 2.4 KB
-
cfg-c2.tar.zip 2.4 KB