I would like to write an ant script to deploy application on the Tomcat cluster. My deploy strategy looks exacly the same like in this post
Let say that I have a cluster with 4 Tomcat nodes.
The deploy strategy steps:
- Disable monitoring of single node
- Pull that node out of cluster
- Deploy new code to it
- Verify node is operating properly with new code
- Put node back into cluster
- Re-enable monitoring for that node
- Repeat steps for every other node
I would like to know, how can I disable tomcat cluster node for the deployment of the new application? I think its not possible to make a deployment on all nodes at the same time without disturbing my users. Is there any good way to do this?
Would be great if somebody could help me with it.