-
1. Re: forming a one-way cluster of 2 nodes
timfox Jul 30, 2010 3:50 AM (in response to jmesnil)When a node announces itself it does not use a pair of connectors, it uses a single connector. This is the connector given by the "connector" attribute in ClusterConnectionImpl and defined in the xml by the connector-ref element in the cluster-connection element.
For a one way cluster, both nodes should define a cluster connection so that presence is announced, but we can add a new boolean attribute "create-connections" or "one-way" or something that determines whether actual connections are made or if just the presence is announced.
-
2. Re: forming a one-way cluster of 2 nodes
jmesnil Aug 5, 2010 9:22 AM (in response to jmesnil)Let's consider the case of chained one-way cluster.
node #0 node #1 node #2 cluster0-1 cluster1-2 cluster2-X ---------> ---------> ---------X
- node #0 defines a cluster connection cluster0-1 with a connector to node #1
- node #1 defines a cluster connection cluster1-2 with a connector to node #2
- node #2 defines a cluster connection cluster2-X (with no connector) so that it can announce its presence to node #1
With the new code, when node #2 announce its presence to node #1, node #1 will in turn propagate the node presence to its own cluster connections connected to it (e.g. node #0 through cluster 0-1).
This ends up with node #0 being notified that node #2 is up and create a cluster connection to it which should not happen.
What I don't get is how the new HA code is supposed to behave in that case.
We want to notify the node only inside the same "cluster" (as defined by the cluster connection) and not on all clusters the node belongs to.
Currently the code go through the ClusterManager and "forgets" the cluster was is receiving the node announcement.
I suppose that a node can still belong to different cluster (e.g. node #1 is the target of cluster0-1 and the destination of cluster1-2).
In that case, the notifications of node announcement should be handled inside the cluster connection and not delegate to the cluster manager. Is that correct?
-
3. Re: forming a one-way cluster of 2 nodes
jmesnil Aug 9, 2010 4:22 AM (in response to jmesnil)any comments?