Configuring fail-safe mode 编辑

In an HA configuration, fail-safe mode ensures that one node is always primary when both nodes fail the health check. This is to ensure that when a node is only partially available, backup methods are enabled to handle traffic as best as possible. The HA fail-safe mode is configured independently on each node.

The following table shows some of the fail-safe cases. The NOT_UP state means that the node failed the health check yet it is partially available. The UP state means that the node passed the health check.

Node A (Primary) Health StateNode B (Secondary) Health StateDefault HA BehaviorFail-Safe Enabled HA BehaviorDescription
NOT_UP(failed last)NOT_UP (failed first)A (Secondary), B (Secondary)A (Primary), B (Secondary)If both nodes fail, one after the other, the node that was the last primary remains primary.
NOT_UP (failed first)NOT_UP(failed last)A (Secondary), B (Secondary)A(Secondary), B(Primary)If both nodes fail, one after the other, the node that was the last primary remains primary.
UPUPA (Primary), B (Secondary)A (Primary), B (Secondary)If both nodes pass the health check, no change in behavior with fail-safe enabled.
UPNOT_UPA(Primary), B(Secondary)A (Primary), B (Secondary)If only the secondary node fails, no change in behavior with fail-safe enabled.
NOT_UPUPA(Secondary), B(Primary)A(Secondary), B(Primary)If only the primary fails, no change in behavior with fail-safe enabled.
NOT_UPUP (STAYSECONDARY)A (Secondary), B (Secondary)A (Primary), B (Secondary)If the secondary is configured as STAYSECONDARY, the primary remains primary even if it fails.

To enable fail-safe mode by using the command line interface

At the command prompt, type:

set HA node [-failSafe ( **ON** | **OFF** )]

Example

set ha node -failsafe ON
<!--NeedCopy-->

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:46 次

字数:2785

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文