-
1. Re: How to disconnect one node from a cluster?
rvansa Apr 3, 2014 3:10 AM (in response to k.faseela)cacheManager.stop() sends leave request to coordinator and then closes the JGroups channel.
-
2. Re: How to disconnect one node from a cluster?
k.faseela Apr 3, 2014 1:03 PM (in response to rvansa)Hi Radim,
I want to leave the cluster only for a small amount of time.
Then I want to join back the cluster.
If I do cacheManager.stop(), will I lose all the cache contents ?
Thanks,
Faseela
-
3. Re: How to disconnect one node from a cluster?
rvansa Apr 4, 2014 2:18 AM (in response to k.faseela)Sure, all caches will be stopped and data released. Switching to readonly mode for split brain partition is on the road map, see https://github.com/infinispan/infinispan/wiki/Handling-cluster-partitions
-
4. Re: How to disconnect one node from a cluster?
k.faseela Apr 4, 2014 2:28 AM (in response to rvansa)Hi Radim,
Mine is an upgrade scenario, where I want to upgrade one node in the cluster, by detaching it from the cluster.
Is there any possible way to cut the jgroups channel between the nodes in the cluster, and still maintain the data as such!?
After upgarde I want to join back the cluster.
Thanks,
Faseela
-
5. Re: How to disconnect one node from a cluster?
rvansa Apr 4, 2014 3:15 AM (in response to k.faseela)You can cut the channel by inserting the DISCARD protocol on top of transport (TCP/UDP), and setting the discard rates to 1. However, the other nodes will soon detect the node as failed (this is what FD/FD_ALL/FD_SOCK protocols are used for), and rebalance. The detached node itself will also detect that it can't communicate with the others, and issue some errors that it does not have the full data set available (in dist mode). When the clusters get merged, some reconciliation happens but generally this is not working, and the cluster won't have consistent data.
I don't know what you mean by upgrade, and why do you need to keep the data on the node.
-
6. Re: How to disconnect one node from a cluster?
wdfink Apr 4, 2014 4:28 AM (in response to k.faseela)I suppose you mean to change the infinispan version by 'upgrade'.
In this case you have to restart the infinispan system as you need to change the classes.
As this classes hold the reference to the data it will not be possible to do so.
-
7. Re: How to disconnect one node from a cluster?
k.faseela Apr 4, 2014 5:30 AM (in response to wdfink)I was trying to figure out whether there is any inbuilt mechanism which I can use to send a Jgroups LEAVE Request, and then do a JOIN later.
My application requires to do some service upgrade without stopping the node, so I cannot lose the data in the cache.
It's not infinispan version upgrade.