且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java应用程序的零停机时间部署

更新时间:2023-11-14 18:29:40

如果您的负载均衡器支持此选项(服务器缺乏),滚动升级确实是一个很好的解决方案。
另一个解决方案是使用支持OSGi的应用程序服务器来热替换部件或整个应用程序。

Rolling upgrade is indeed a good solution, provided your load-balancer supports this option (server starvation). Another solution is to use OSGi-enabled application servers, to hot-replace parts or whole of your application.

我会推荐第一个。 SpringSource的AMS监管控制台可以关闭一个tcServer集群(类固醇上的自定义tomcat),IIRC自动进行滚动升级(但检查文档)。

I would recommend the first one. SpringSource's AMS supervision console can take down a cluster of tcServer (a custom tomcat on steroids), and IIRC do the rolling upgrade automatically (but check the docs).