我已经配置了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.
更多推荐
发布评论