Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#5346): reset raft cluster ops for no leader, use JRaft Api resetPeers. #8220

Merged

Conversation

CherishCai
Copy link
Contributor

feat(#5346): reset raft cluster ops for no leader, use JRaft Api resetPeers.

Use only in very urgent situations where availability is more important!
https://www.sofastack.tech/projects/sofa-jraft/jraft-user-guide/#7.3 多数节点故障
只有在非常紧急并且可用性更为重要的情况下使用。

面对 k8s 云环境这种上下线/重启等成员 ip 变动大的情况,常常遇到 issue 里描述的问题;
而 Nacos 还是 AP 用法,所以 CP 不应该作为影响集群整体可用性的拦路虎;
而且 nacos-client 也会不断 beat 补全注册的数据,从而我这边增加了一个重置整个集群选举的入口 resetPeers (用于真的无法选主时的极限运维,总好过集群整体挂掉)

@KomachiSion KomachiSion added this to the 2.1.0 milestone Apr 22, 2022
@KomachiSion KomachiSion merged commit b718cbf into alibaba:develop Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants