组件的高可用性 High Availability

喜夏-厌秋 提交于 2019-12-05 08:20:05

High Availability

高可用性

Verticles can be deployed with High Availability (HA) enabled. In that context, when a verticle is

verticle可以发布为“高可用性”的,这样的话当一个verticle被发布到一个实例上突然死掉了,

 deployed on a vert.x instance that dies abruptly, the verticle is redeployed on another vert.x instance from the cluster.

这个verticle会被重新发布到集群的另外一个vert.x的实例上。


To run an verticle with the high availability enabled, just append the -ha switch:

运行verticle为高可用性,只要追加参数-ha。

vertx run my-verticle.js -ha

When enabling high availability, no need to add -cluster.

在启用高可用性时,不用追加-cluster参数。


More details about the high availability feature and configuration in the High Availability and Fail-Oversection.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!