英文:
AntDB cluster service is unavailable, how to solve it?
问题
我是AntDB的新用户,在使用它时遇到了一些问题,我不知道该怎么办。AntDB集群服务不可用后,我应该怎么做?非常感谢。
我希望得到一些具体的建议。期待您的回复。
英文:
I'm a new user of antdb and I'm having trouble solving some problems while using it.
What should I do after AntDB cluster service is unavailable? Thanks a lot.
I want some specific suggestions. Looking forward to your reply.
答案1
得分: 0
以下是翻译好的部分:
检查来自管理节点的集群状态。如果在相同的 RAFT 切片下幸存的主机数量(mdb_config.mdb_machines_info.sharding_id>0)≤ 50%,则由于无法正确投票选举主节点,整个 RAFT 切片内的数据都无法进行读写操作。如果要访问的数据恰好位于此数据切片上,那么集群服务将不可用。只需将切片内的服务数量恢复到超过一半,问题就会自动解决。
希望对您有所帮助。
英文:
here is the solution:
Check the cluster status from the management node. If the number of hosts surviving under the same RAFT slice (mdb_config.mdb_machines_info.sharding_id>0) is ≤ 50%, the data within the entire RAFT slice is not read/writeable due to the inability to properly vote for a master, and if the data to be accessed happens to be on this data slice , it is the described case that cluster service is not available. Just restore the number of services within the slice to more than half, it can be automatically fixed.
Hope it helps.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论