[jboss-user] [Clustering/JBoss] - Re: Clustering with UDP or TCP - What is best?

bstansberry@jboss.com do-not-reply at jboss.com
Mon May 12 10:55:49 EDT 2008

First, suggest you have a look at the presentation Bela Ban and I did at JBoss World 2008, which gets into this and other topics you've recently asked about: http://jbossworld.com/downloads/pdf/wednesday/JBOSS_1-150pm_ClusterTuning_Bela_Ban.pdf .

The basic answer to your question is the more servers you need to send a message to, the less well TCP will do, since a server has to send n messages to communicate with n peers, while UDP just sends one. A TCP-based stack works fine for smaller clusters (4-6 or less), and if you use buddy replication you're not sending messages to all peers, so TCP can be suitable even with a bigger cluster.

Note that if you use a TCP-based stack, you either need to list all hosts in the TCPPING protocol's initial_hosts parameter, or you should replace TCPPING with the  MPING protocol, which uses UDP multicast for group discovery.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150129#4150129

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150129

More information about the jboss-user mailing list