java-web - java web生产环境下的热部署方案?
大家讲道理
大家讲道理 2017-04-18 09:16:02
0
2
432

如题

  • 这里我理解的热部署含义为:无论使用何种方式,达到在不影响用户使用的前提下更新程序。

  • 解决方案最好是经过实践检验的,而不是偏理论的,因为是在生产环境下。

  • 本人使用tomcat作为容器。

感激不尽!

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
大家讲道理

Using front-end proxy server (nginx/apache httpd) + application server (tomcat) * 2.

Normally, both servers are online to distribute traffic and pressure. When deploying, deploy alternately. Adjust the proxy server, only proxy to one of them, and take the other offline. When the deployment of this one is completed,
reverse the process.

If there are not two application servers, then when the deployment is complete, temporarily find a machine at hand to copy the online project to it and replace it temporarily. User access will probably be slower, but it should be OK.

Peter_Zhu

You can learn about this project: Spring loaded. Does it meet your needs? This can be hot deployed.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template