Monitoring Your Cluster
So you have set up your Railo cluster using Apache and Tomcat as described in the Clustering Railo with Tomcat and Apache article and as far as you know the cluster is performing exactly as expected, or is it? The problem is unless you actually check the tomcat instances you really don't have a clue if one of the Tomcat instances are down. Luckily there is a relatively simple way to set up a monitor to monitor your cluster.
Mod_status
According to the Apache documentation this "module allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form." Sounds exactly what we are looking for, we now just need to set it up in our conf file.Setting up a Monitor
In your httpd.conf file in that big long list of LoadModule entries near the bottom you should find the entry "#LoadModule status_module modules/mod_status.so" uncomment this line (remove the #) and save the file. Add the following tag block to your vhosts.conf, you can add it after the </Proxy><Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Location>
Results
You should now be able to access the balancer-manager at http://railo.local:8080/balancer-manager (following on with the host file entry made in from the first post).You should see something similar to:

Subscribe
Subscribe via RSS
Follow me on Twitter
Or, Receive daily updates via email.
Tags
adobe air ajax apple cf community cfml coldfusion examples ext flash flex google javascript jquery max2007 max2008 misc open source programming railo software technology ui
Recent Entries
No recent entries.
Blogroll
An Architect's View
CFSilence
Rey Bango
TalkingTree

There are no comments for this entry.
[Add Comment]