什么是应用程序的滚动重启?
我想了解什么是应用程序滚动重启?是不是像应用程序在集群中运行,然后我们开始一台一台地打开机器?或者这与 JVM 有关吗?
I would like to understand what is called as rolling restart of applications? Is that something like Application is running in a cluster, and we start turning on machine one by one?Or is this associated with JVM?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应用程序的滚动重启或波纹启动通常是可以对跨多个JVM或应用程序服务器(例如,在集群中)部署的应用程序执行的操作,以增量地停止和启动每个JVM上的应用程序。目的可能是让应用程序接受需要重新启动的配置更改,同时确保应用程序的高可用性。
例如,ApplicationA 部署并运行在 Server1、Server2 和 Server3 上。管理员对 ApplicationA 进行了更改,这需要重新启动应用程序才能使更改生效。应用程序可能会连锁启动,这样 ApplicationA 在 Server1 上停止并启动,而应用程序仍在 Server2 上运行,而不是简单地立即在所有服务器 (JVM) 上停止和启动应用程序(可能会导致应用程序短暂停机)和服务器3。一旦应用程序在 Server1 上重新启动,应用程序将在 Server2 上重新启动,同时应用程序在 Server1 和 Server3 上运行。等等。
滚动重启概念还可以更普遍地应用于集群中运行的、需要在保持高可用性的同时重启的任何进程组。
A rolling restart or ripplestart of applications is typically an operation that may be performed on applications that are deployed across multiple JVMs or application servers (for example, in a cluster) to incrementally stop and start applications on each JVM. The purpose may be for an application to pick up configuration changes that require a restart, while ensuring high availability of the application.
For example, ApplicationA is deployed and running on Server1, Server2, and Server3. An admin makes a change to ApplicationA which requires the application to be restarted in order for the change to be picked up. Rather than simply stopping and starting the application on all servers (JVMs) at once, potentially causing a brief downtime for the application, the application may be ripple started such that ApplicationA is stopped and started on Server1, while the application is still running on Server2 and Server3. Once the application is restarted on Server1, the application will be restarted on Server2 while the app is running on Server1 and Server3. And so on.
The rolling restart concept may also be more generally applied to any group of processes running in a cluster that need to be restarted while maintaining high availability.