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

20 Beautiful Dark Themes for Gnome and Ubuntu

Tuesday, 19 August 2008
Cats Who Code: "Some weeks ago, I shown you a list of 30 themes for enhancing your Gnome desktop."

OpenSolaris: a Linux Admin's View

Tuesday, 19 August 2008
Linux Format: "Sun is battling hard to break into the open source operating system world with OpenSolaris. Juliet Kemp takes it for a test-drive, sampling its unique features and seeing how it fares a

What's That They Say About Assumptions?

Tuesday, 19 August 2008
Blog of Helios: "Sometimes Linux isn't the answer."

The Brampton Factor: Analysts Fail on Open Source

Tuesday, 19 August 2008
IT Pro: "For open source software to achieve its full potential, people's perceptions must change. Yet how can that happen when open source is so woefully neglected by analysts, asks Martin Brampton."

Why Red Hat Invested In JBoss Instead Of Linux Desktops

Tuesday, 19 August 2008
The VAR Guy: "Ever wonder why Red Hat spends so much time focused on the JBoss middleware market and so little time trying to make Linux a desktop standard? The answer involves some simple but startli

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