ClusterLabs/resource-agents — pull request #79 by awkay (2012-05-03 20:10:08+00:00)
Title: Drastically improved tomcat script

The tomcat script in heartbeat currently has the following issues:

- No validation of parameters
- Unreliable start/stop
- Likely to cause node fencing without need
- It simply does not work (at least on CentOS6/Pacemaker 1.1)

I've created a new tomcat script (tomcat6, to not conflict with the old name) that is much more robust, is better documented, and actually works. It has the following improvements:

- Validates all settings, permissions, existence of dependent commands, existence of user that will run tomcat, etc.
- Better documentation
- Supports configurable force kill of hung tomcats, so fencing doesn't happen (you never want to reach the "op stop timeout").

It has been tested using ocf-tester, and I'm using it on a 6-node tomcat cluster on CentOS6 right now.

This is for an important HA cluster that is going into production, so if I find any bugs, I'll patch them.