Home > Index > Clustering > Clustering Configuration for Jetty |
In order to cluster a Web application, standard and Geronimo specific deployment descriptors must be updated as follows:
Four configurations are of interest to us:
The simplest way to create a new Geronimo instance is to:
The system property java.net.preferIPv4Stack must be set to true otherwise Tribes, the group communication used by WADI, fails (at least on MAC OS X).
The system property node.name is only required by a WADI Web application, which will be deployed later to verify the installation.
If this module is not started, then the "clustering-wadi" element is not recognized and the deployment fails.
These two above instances are now running a clustered version of the demonstration Web application. This application implements a visual way to observe where a session is updated and where it is accessed.
If you see a 1 instead of a 2, then the nodes do not see each other. The first thing to verify is that the system property java.net.preferIPv4Stack is indeed set to true. If it is set to true, then it is likely that multicasting is not properly working on the boxes running the nodes. Look at your firewall and network configurations to ensure that multicasting is allowed.
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2011, The Apache Software Foundation, Licensed under ASL 2.0. |