1
votes

System Information: I have a system with 10 tomcat server and load balancer in linux operating system.

Configration: I am running tomcats in linux screen

Problem: When i have to deploy new war file , i need to stop 10 tomcat server, remove old war and extracted old war folder, copy new war file to webapps directory and start it

Question: Is there any way to do this operations faster ?

2
One way is to use any of the CI/CD tools available. If you don't want to use those then maybe you can write a bash script which will stop all servers for you deploy the war and start the servers again.Sandeep Singh
maybe JRebel? vimeo.com/59571963danilo
Write a shell script for it.Aniket Sahrawat
Yeah it looks like i have to use script btw development and deploy areas on different network actually i was wondering a solution like web logic hashkn
Why are you stop tomcat? You can redeploy with maven tomcat plugin. Aniket Sahrawat +1Pavlo Morozov

2 Answers

0
votes

The best solution is using Curl(linux command) with tomcats manager.

Detailed usage: Using Curl with tomcats manager

I have create a page that uploads war file to file store which all of my tomcats can access then calling curl commands for each server in java.

0
votes

Normally you don't have to stop the tomcat server to delete the previous war file. When you delete the war file it will automatically delete the corresponding directory of if.

Use a bash script to delete and copy the files.