Scripts for setting up, deploying to and operating a tomcat cluster. Based on and
Pull request Compare This branch is even with acreeger:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Tomcat Cluster Scripts (tested on Mac OS X, Snow Leopard)

Heavily based on the work of Burt Beckwith and Peter Ledbrook, these scripts are designed to simplify deployment of a Grails application to a cluster production environment and to serve as a reference. Please see Burt's blog post and Peter's posting on Tomcat Expert for more background info. These scripts will work for any Java web framework that uses WAR files, not just Grails.

They use Tomcat 6.0.28 and its DeltaManager to handle session replication.

I have added the following to these scripts:

  • When using the deploy script, you can specify a "context" in the environment variable CC. Without the CC variable it defaults to "ROOT".
  • I've lengthened the time that waits for the apps to shutdown to 15 seconds.
  • I've fixed the way that the script checks to see if a process has stopped. It was broken on Mac OS X (Snow Leopard).