如果超过一半的zookeeper服务器出现故障,zookeeper群集是否可以正常工作?(Can zookeeper cluster work if more than half zookeeper

编程入门 行业动态 更新时间:2024-10-19 21:36:32
如果超过一半的zookeeper服务器出现故障,zookeeper群集是否可以正常工作?(Can zookeeper cluster work if more than half zookeeper servers break down? [closed])

我已经配置了3个zookeeper服务器,如果其中2个服务器发生故障,有没有办法让集群工作

I have configed 3 zookeeper servers, Is there any way to let the cluster can work if 2 of them break down》

最满意答案

不,它不能。 一旦法定人数中的大多数人丧失,就意味着法定人数完全失败。

在3个成员法定人数的情况下,如果一个人失去了仍然有2个仍然保持多数,但是如果失去2,这个3个成员的法定人数中的大多数成员会丢失,这导致动物园管理员服务不可用。 尝试在此状态下与zookeeper连接的客户端将收到Connection Refused错误。

这在Zookeeper官方文档中有说明 ,

只要大多数服务器可用,zookeeper服务就可用。

No it cannot. Once the majority in the quorum is lost, it is implied as the complete failure of the quorum.

In this case of 3 member quorum, if one is lost still 2 remains to maintain the majority but in the event of losing 2, the majority making member in this 3-member quorum is lost which leads to unavailability of zookeeper service. The clients which attempt to connect with the zookeeper at this state would receive Connection Refused errors.

This is noted in the official Zookeeper documentation,

As long as a majority of the servers are available, the zookeeper service will be available.

更多推荐

本文发布于:2023-08-04 10:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1415278.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:出现故障   服务器   工作   zookeeper   cluster

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!