Tuesday, April 14, 2009

 

Using Tomcat with mod_heartmonitor (part 2)

This is the second blog on the topic using Tomcat with mod_heartmonitor, here it is using HTTP instead multicast sockets... Well no one like multicast sockets but everyone likes the HTTP protocol no?
In the httpd.conf file add something like the following (to the httpd.conf the previous blog):


<Location /HeartbeatListener>
SetHandler hearthbeat
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from 10.33.144.4
</Location>


In the server.xml add ProxyList to the HeartbeatListener:


<Listener className="org.apache.catalina.ha.backend.HeartbeatListener" Port="8009" ProxyList="127.0.0.1:7779" />


Have fun!!!

Comments:
Hey Jean,

I'm trying to configure a httpd server to use mod_heartbeat as a load balancer method for a set of Tomcat servers sitting behind the httpd server. I think this is what you are describing in these posts, and if so I wanted to ask you a quick question. In the Tomcat server.xml you are setting up a HeartbeatListener, but it seems like it be something that's broadcasting heartbeats instead? Maybe this is what org.apache.catalina.ha.backend.HeartbeatListener does (the docs on this are almost non-existent), but I wanted to reach out and see if you could answer this since this post is basically the only thing I can find on this topic on the internet! Thanks so much in advance!
 
Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?