sofastack / sofa-jraft

A production-grade java implementation of RAFT consensus algorithm.
https://www.sofastack.tech/projects/sofa-jraft/
Apache License 2.0
3.57k stars 1.14k forks source link

从clickhouse keeper中看到特性是否可以考虑 #916

Closed funky-eyes closed 1 year ago

funky-eyes commented 1 year ago

Your question

https://clickhouse.com/docs/en/operations/clickhouse-keeper/ image 我的理解是其它几个节点真的无法再拉起来时,为了保证集群的可用性,可以使1个节点直接成为leader并提交相关任务到状态机执行,这样可能可以减少故障的时间,并为运维人员的扩容争取时间,让1一个节点持续运行,后续的节点扩容进来后成为follower,直接跳过选举

Your scenes

Describe your use scenes (why need this feature)

Your advice

Describe the advice or solution you'd like

Environment

killme2008 commented 1 year ago

resetPeers(Configuration newPeers) 就是用来处理你说的紧急情况 参见 https://www.sofastack.tech/projects/sofa-jraft/jraft-user-guide/ 的 7.3 节。

funky-eyes commented 1 year ago

resetPeers(Configuration newPeers) 就是用来处理你说的紧急情况 参见 https://www.sofastack.tech/projects/sofa-jraft/jraft-user-guide/ 的 7.3 节。

谢谢,之前看到了,以为这个还是必须大于一定节点数,因为描述上并没有说1个节点也可以强制选主,现在明白了