spikesource hints'n'tips

Our Top Tags

                                       

Mailing List

Keep uptodate with the latest hints'n' tips as they are published by signing up to our mailing list.

Our RSS Feeds








Latest Linux News

Free Software in Education

Sunday, 24 May 2009
Free Software: "Free Software is political because it is strongly tied with a deep political question: that of education, and access to it."

A Great Multi-Platform Music Management Application: Jajuk

Sunday, 24 May 2009
Web Upd8: "Jajuk is a very comprehensive and feature rich Open Source music management software written in Java. The software program is therefore available for Windows, Linux and Apple Macintosh comp

Kiwi Imaging System - Forge your own operating system images in a matter of hours

Saturday, 23 May 2009
Dedoimedo: "Would you like to be able to create custom, ready-to-use operating system images that can be used as VMware images, Xen virtual machines or live DVDs or booted from USB sticks? Would you l

Linux Myth: No Simple, Easy Database Software

Saturday, 23 May 2009
The ERACC Web Log: "In this installment of my Linux Myth series I take aim at the GNU/Linux database nay-sayers, and shoot them down."

Finding the right open-source savvy lawyer

Saturday, 23 May 2009
Practical Technology: "Some days, like it or not, you need a lawyer. For most business purposes, picking the right law firm isn’t usually that big of a deal"

Latest Digg Entries

Configuring JGroups to avoid using multicasting

posted Wednesday, 31 August 2005
JGroups is used as the clustering library by Jboss. The default UDP transport used by JGroups, uses IP multicasting for all the cluster communication - addition and removal of nodes and for data communication.

When configuring JGroups, a stack of protocols is specified. This stack of protocols is something similar to the OSI stack - a stack of protocols, one over another with the lowest layer doing the communication and the highest layer API being used by application programs. A example configuration for a JGroups protocols stack is

UDP(mcast_addr=224.10.10.10):
PING(timeout=5000;num_initial_members=2):
FD:STABLE:NAKACK:UNICAST:FRAG:FLUSH:
GMS(join_timeout=5000;join_retry_timeout=100):VIEW_ENFORCER:STATE_TRANSFER:QUEUE

In order to avoid IP multicasting, a new server - called the Gossip server needs to be started. This server is used to maintain a registry of servers in the cluster. The individual messages that need to be sent among the nodes, is sent as multiple unicast messages among the nodes.

The UDP and PING protocol configurations have to be changed, such that the gossip server is used for cluster membership information, and multicasting is not used. This is done as follows:

UDP(ip_mcast=false;mcast_addr=224.10.10.10):
PING(gossip_host=localhost;gossip_port=6666;gossip_refresh=150000;timeout=5000;num_initial_members=2):
FD:STABLE:NAKACK:UNICAST:
FRAG:FLUSH:GMS(join_timeout=5000;join_retry_timeout=100):VIEW_ENFORCER:STATE_TRANSFER:QUEUE

Note that in UDP, mcast is set to false and in PING, the gossip server details are provided.

The Gossip server is started as follows:

java org.jgroups.stack.GossipServer -port 6666

tags:    

links: digg this    del.icio.us    technorati    




1. GE left...
Tuesday, 23 January 2007 1:33 am

Why avoid multicasting? I'm new in JBOSS. I did Weblogic before...


Related Posts

How can I start a Java process and retain its process id?

Monday, 2 October 2006 2:41 P GMT
How can I start a Java process and retain its process id?

Handling different Java runtimes on a single machine

Thursday, 14 September 2006 10:48 A GMT
This entry takes a quick look at how you can best utilise different Java JVMs on the linux using a couple of techniques.

Invoking Jetty as an embedded server

Wednesday, 16 August 2006 2:24 P GMT
Ever wondered how to invoke Jetty as an embedded server? David Yu from the Jetty Mailing list recently posted a way you can do this.

How to install JMeter and use it for testing

Sunday, 11 September 2005 8:00 A GMT
Apache JMeter is a 100% pure Java desktop application designed to test performance on static/dynamic resources such as static files, Servlets, CGI scripts. JMeter can also be used to regression test application by creating test scripts.

Introduction to JVM crashes

Friday, 9 September 2005 10:33 A GMT
Things to look for when checking a JVM crash

Configuring JGroups to avoid using multicasting

Wednesday, 31 August 2005 7:54 A GMT
JGroups - the cluster library used by Jboss, uses multicasting for cluster communication. This article discusses configuration of JGroups so that it does not use multi casting.

How to import a certificate from file in Java using keytool

Wednesday, 17 August 2005 4:56 P GMT
How to import a certificate from file in Java using keytool