-
1. Re: JBOSS CLUSTER NODE BEHAVIOR WITH NETWORK FRAGMENTATION
wdfink Jan 10, 2012 2:00 AM (in response to lucapaone)How do you start the nodes and what kind of clustering (UDP TCP Multicast) you use?
Normally if the network connection becomes reavailable the nodes should connect and heal the cluster.
-
2. Re: JBOSS CLUSTER NODE BEHAVIOR WITH NETWORK FRAGMENTATION
lucapaone Jan 10, 2012 9:10 AM (in response to wdfink)We are thinking to use TCP unicast with 2 NODES.
The real problem is the algorithm to decide how to merge the state of the cluster after the nodes have been divided for a while ( and 2 different user have accessed and modified the same business data). It is possible to implement some sort of algorithm or is it symply out of the scope of jboss clustering?
-
3. Re: JBOSS CLUSTER NODE BEHAVIOR WITH NETWORK FRAGMENTATION
rhusar Jan 10, 2012 9:43 AM (in response to lucapaone)As Wolf says, the nodes should merge back in the cluster when the network becomes available. If the partition name and UDP address is the same, there should be no problem.
I see your point with merging though -- briefly, what would your merge algorithm do?
-
4. Re: JBOSS CLUSTER NODE BEHAVIOR WITH NETWORK FRAGMENTATION
rhusar Jan 10, 2012 9:50 AM (in response to rhusar)Hm, I guess you could compare timestamps you store yourself in HTTP sessions and merge them together keeping the newer, evicting the older one.
However, I am under impression this has not been implemented https://issues.jboss.org/browse/JBCACHE-772 as split brain scenario is not easy to handle. BTW these reconnects are not handled by JGroups (and cant really be), it should be handled by JBoss Cache.
-
5. Re: JBOSS CLUSTER NODE BEHAVIOR WITH NETWORK FRAGMENTATION
lucapaone Jan 10, 2012 10:45 AM (in response to rhusar)In our scenario is not a simple matter of HTTP session timestamps, but we have data acquired from one independent sources (for every node) and we have to look at data collected to understand what is the "RIGHT" node.
can you link me some JBoss Cache resources about this ?
Than you very much. At the moment I googled around a lot (for a lot of months) but no applications serves seems to resolve this need.
-
6. Re: JBOSS CLUSTER NODE BEHAVIOR WITH NETWORK FRAGMENTATION
belaban Jan 10, 2012 10:55 AM (in response to lucapaone)1 of 1 people found this helpfulThis is a difficult problem to solve. If you have a DB, to which both nodes have access, you could simply clear the cache on a MergeView, and have it warm up gradually by using a DB CacheLoader.
Note that, similar to Amazon's Dynamo, Infinispan will (next version?) carry versions with the data. When there are conflicting updates to the same data, the application developer will be asked to resolve the conflict. If this might be of interest to you, I suggest post to the Infinispan forums or dev list.
Cheers,
-
7. Re: JBOSS CLUSTER NODE BEHAVIOR WITH NETWORK FRAGMENTATION
lucapaone Jan 10, 2012 11:16 AM (in response to belaban)DB is uniqe for each node, not shared .
I will check for Infinispan :-)
-
8. Re: JBOSS CLUSTER NODE BEHAVIOR WITH NETWORK FRAGMENTATION
rhusar Jan 10, 2012 11:52 AM (in response to lucapaone)Here is a link to what Bela is talking about -- the eventual consistency in Infinispan: https://issues.jboss.org/browse/ISPN-999 Its on plan for the next major version of Infinispan. One of the main improvements is partition tolerance which is what you seem to be after Version-aware entries could make it to 5.2 release, see https://issues.jboss.org/browse/ISPN-1116