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

Hosted Zimbra Email Catches On With Managed Service Providers

Saturday, 19 July 2008
MSPmentor: "When it comes to hosted email, why zig when you can zag? That explains the strategy at EtomicMail, a managed service provider that’s hosting Zimbra — an open source email platf

An Open Source Seeing Eye Dog for Web Surfers

Saturday, 19 July 2008
LinuxInsider: "WebAnywhere is an open source, Web-based application that acts as a screen reader of sorts for blind people. Its developer, a student at the University of Washington, designed it so tha

Perl and Bash Versions Of Binary To Decimal Conversion Script

Saturday, 19 July 2008
The Linux and Unix Menagerie: "As promised, in yesterday's post on converting binary values to decimal in C, today we're going to follow up with straight-up ports to Perl and shell. Actually, they'll

E4X: JavaScript on Steroids

Saturday, 19 July 2008
IBM Developerworks: "E4X is designed to simplify the task of writing JavaScript code for XML. It is an efficient, powerful tool that you can use to interact with XML nodes and attributes. The primary

Linux 2.6.26 Kernel Benchmarks

Saturday, 19 July 2008
Phoronix: "Over the weekend the Linux 2.6.26 kernel was released. This quarterly update to the Linux kernel introduced Kernel-based Virtual Machine improvements, new One Laptop Per Child support, a ne

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