-
1. Re: couple questions
nikolay1981 Oct 11, 2011 12:13 PM (in response to yelin666)Hi,
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.
#1
-Djgroups.tcp.port=7800
-Djgroups.tcp.address=127.0.0.1
-Djava.net.preferIP4Stack=true
#2
-Djgroups.tcp.port=7801
-Djgroups.tcp.address=127.0.0.1
-Djava.net.preferIP4Stack=true
in your jgroups-tcp-local.xml
<TCPPING timeout="3000"
initial_hosts="127.0.0.1[7800],127.0.0.1[7801]"
port_range="5"
num_initial_members="2"
ergonomics="false"
/>
in your cache config
<transport clusterName="Cluster">
<properties>
<property name="configurationFile" value="./jgroups-tcp-local.xml"/>
</properties>
</transport>
-
2. Re: couple questions
yelin666 Oct 11, 2011 3:29 PM (in response to nikolay1981)I didn't mean failover over WAN. For every node running datagrid instances, I need double LANs for reliability.
-
3. Re: couple questions
galder.zamarreno Oct 12, 2011 4:15 AM (in response to yelin666)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?
-
4. Re: couple questions
yelin666 Oct 12, 2011 9:22 AM (in response to galder.zamarreno)Galder,
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?
Thanks,
Lin
-
5. Re: couple questions
vblagojevic Oct 13, 2011 7:27 AM (in response to yelin666)Lin,
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!
Regards,
Vladimir
-
6. Re: couple questions
belaban Oct 16, 2011 8:28 AM (in response to yelin666)#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).