Pablojim
Pablojim

Reputation: 8582

How to manage deployments to multiple non-clustered tomcat instances

What is the best way to manage deployments of a single web-app to multiple non-clustered tomcat instances.

My ideal solution will support:

Upvotes: 0

Views: 497

Answers (2)

mindas
mindas

Reputation: 26713

You might want to look at using Tomcat manager from Ant. It might not have all you are asking for, but I guess you could script what you need.

Upvotes: 0

David O'Meara
David O'Meara

Reputation: 3033

We had over 100 clients each running on a dedicated tomcat instance across 5 servers where most would be updated to the latest release at the same time. In our case we used mapped network drives and some tricks with the CATALINA_BASE, but personally I think it may be easier to use WAR deployment via an ANT script to the Tomcat manager if you can get away with it.
For yours you could (at minimum) have a tomcat directory for each instance and each can use the same webapps dir via a network share. Upgrading would still require stopping each instance, updating the single shared dir then starting all instances.
You could also use the tomcat management console (via ANT or other automated process) to manage a scripted local installation or start/stop but this would be not be atomic.

Upvotes: 1

Related Questions