Dear pete, Could you provide the script you've setup for me to reference ? Currently, we'd used a roughly operation as the attachment. (Using the checkproc /usr/java/jdk1.5.0_10/bin/java ) But in production environment, that would not be relevant to use. Because there will not be only one java process on particular node. I guess there should use a pid file in /var/run directory to make sure if tomcat process exist.
But there is another question coming, If tomcat process were alive, but the underlying resources (like datasource) ran out of memory. In such case, we need to restart tomcat to release the memory used by datasource. That will not simple as just monitor the pid still exist. I've survey about ldirectord (a Load Balance mechanism??) and it seems a great tool for me to detect if the datasource test connection page still alived at a constant period time. But the example I found , all use the haresources to config rather than cib.xml. #/etc/ha.d/haresources ap1 \ ldirectord::ldirectord.cf \ IPAddr2::10.0.0.244/16/eth0/10.0.0.255 Did you experienced it before ? If you did, would you please give me a hint or reference? Thanks. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Clapham Sent: Monday, January 08, 2007 8:00 PM To: High-Availability Linux Development List Subject: Re: [Linux-ha-dev] Tomcat failover KYO wrote: > > Dear all, > > Ive two nodes with Suse Enterprise 10 OS installed. > > Recently, struggled with how to monitor tomcat status(running or down). > > My scenario is like : > > When active node down(stop tomcat service make it failure NOT SHUTDOWN > MACHINE OR DISABLE NETWORK), > > heartbeat can discover that, > > And then forward the HTTP request to the passive node. > > Suse Enterprise 10 OS built-in heartbeat version is heartbeat-2.0.5-7.10. > > And my network environment is > > Virtual IP 10.0.0.240 > > Node1 10.0.0.244 à Tomcat (Active) > > Node2 10.0.0.245 à Tomcat (Passive) > > Id used the hb_gui tool to configure LSB tomcat. (add a native) > > After I added the resource, I click the operation tab, and add status > interval 120s , timeout 60s. > > And then click the Apply button. The screen pops up Activation failed. > > (Ive add status method in /etc/init.d/tomcat LSB.) > > Even if I add operation in the cib.xml of the tomcat LSB primitive > segment, after reboot, the heartbeat server doesnt start. > > I think it was fail with the operation tag by hand. > > Would u plz help to give some hint or reference ? > > Thatll be a big great help. > > Thanks in advance. > > ------------------------------------------------------------------------ > > _______________________________________________________ > Linux-HA-Dev: [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ > Hello KYO, Tomcat is a joy. We've a setup that appears to be working acceptably with a basic home script that puts the jsvc script under the control of heartbeat via an intermediary script housing the relevant Tomcat parameters. If this would be of use I can provide. Pete _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
tomcat
Description: Binary data
_______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
