1. Use jgroups tcp/udp settings supplied in infinispan-code.jar. If udp make sure the udp traffic is allowed in your WAN. I have the similar task to provide failover over WAN, if one DC goes down another takes the primary role.
in your jgroups-tcp-local.xml
in your cache config
<property name="configurationFile" value="./jgroups-tcp-local.xml"/>
I didn't mean failover over WAN. For every node running datagrid instances, I need double LANs for reliability.
Lin, I've forwarded your q on JGroups and double LANs to the JGroups guys.
Wrt your 2nd question, not sure what you're after exactly. What kind of determinism are you missing right now? Whats your Infinispan configuration like?
Thanks for the response.
I don't have the number off hand at the moment, but I will collect the data later. In general, for the new use case, we care more about the jitter than the latency. Is any design in Infinispan targeted to determinism in addition to high performance?
1) This was on Bela's project map but I am not sure if it is implemted. He'll confirm.
2) These are mostly tuned on network/router/OS level. Bela will provide some direction for this as well!
#1 Use IP bonding (on Linux), or something equivalent on other OSs
#2 No, there is no way you can influence jitter and latency. This is something that's inherent in ethernet/TCP/IP based networks, unless you build a custom bus (e.g. such as done in airplanes or the automotive industry).