-
1. Re: Which is most suitable (TCP or UDP) for JBoss JGroup
wdfink Apr 12, 2012 4:47 AM (in response to codevally)JGroups will work with TCP and UDP, both are suitable. It is just a different implementation.
I prefere multicast UDP (default) because it will be less administration and all cluster members are detected automaticaly.
But sometimes you might have issues that avoid multicast (e.g. firewalls network hardware) and you have no influence to the network topologie,
or stability problems like you have.
In this case you might switch to TCP and configure the cluster members to ensure a stable cluster.
But in case of network stability I would recommend to look after that first because you might have also different other problems in this case.
BTW if you use a EAP version you should use your subscription support
-
2. Re: Which is most suitable (TCP or UDP) for JBoss JGroup
codevally Apr 12, 2012 7:02 PM (in response to wdfink)Thanks for your explanation.
-
3. Re: Which is most suitable (TCP or UDP) for JBoss JGroup
rhusar Apr 12, 2012 7:07 PM (in response to wdfink)But sometimes you might have issues that avoid multicast (e.g. firewalls network hardware) and you have no influence to the network topologie,
You can still use UDP multicast for members discovery but use TCP for actual group communication. :-)
PS: Roshan, when you ask which is "most suitable", the default is typically what we recommend (and that is UDP), bud it surely varies with different requirements.
R
-
4. Re: Which is most suitable (TCP or UDP) for JBoss JGroup
arun2arunraj Jan 15, 2015 9:26 PM (in response to rhusar)Hi Rasoslav ,
You can still use UDP multicast for members discovery but use TCP for actual group communication. :-)
Is it Possible, Can you please explain with example ?
Thanks & Regards,
ArunRaj. R -
5. Re: Which is most suitable (TCP or UDP) for JBoss JGroup
rhusar Jan 27, 2015 7:32 AM (in response to arun2arunraj)Just switch the default stack to use the tcp one, i.e. default-stack="tcp". You can notice MPING protocol in the list of protocols (here are the jgroups docs http://jgroups.org/manual/index.html#MPING).