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 section.