Is it possible to deploy a new .war application without stopping the application?

Hey, I'm new to Grails, and I'm curious about deployment. Once the .war program is deployed for production, how can I update the application without downtime?

+5
source share
5 answers

Even if you warmly deploy the WAR file (without restarting the server), there will still be downtime when you reload the context. This is not a Grails thing per se, more a J2EE / servlet thing.

As the graph said, it’s best to place a maintenance page (using Apache in front of Tomcat is a good idea) and turn off the application server, load a new WAR, and then start the server again.

+2
source

tomcat Apache mod_proxy_balancer , . " " (, app1 app2 tomcat):

  • tomcat @app1 Apache
  • tomcat @app1
  • 1 , .
  • tomcat @app1
  • tomcat @app2
  • tomcat @app2
  • tomcat @app2 balancer-manager

. - . , . , . gant script, "grails cluster-redeploy" , . script , , .

+7

Tomcat, , , Parallel Deployment:

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment

, :

  • Foo ## 42.war
  • Foo ## 43.war
+4

WAR, , run-app. , , , , . , .

+1

, , , groovy .gsp, , , .

0

All Articles