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

How to config checkQuorum to false for raft-rs? #1

Closed
KunPengRen opened this issue Sep 6, 2022 · 0 comments
Closed

How to config checkQuorum to false for raft-rs? #1

KunPengRen opened this issue Sep 6, 2022 · 0 comments

Comments

@KunPengRen
Copy link

KunPengRen commented Sep 6, 2022

Problem: the leader node will be stuck and constantly compete to become to the leader when it can not receive the Quorum from followers in time.(my follower nodes face a high requests rate from clients).
Logs:
Sep 06 10:51:16.588 WARN stepped down to follower since quorum is not active, raft_id: 1, version: 1.0.0
Sep 06 10:51:16.588 INFO became follower at term 2, term: 2, raft_id: 1, version: 1.0.0
Sep 06 10:51:18.407 INFO starting a new election, term: 2, raft_id: 1, version: 1.0.0
Sep 06 10:51:18.407 INFO became pre-candidate at term 2, term: 2, raft_id: 1, version: 1.0.0
Sep 06 10:51:18.407 INFO broadcasting vote request, to: [2, 3], log_index: 6, log_term: 2, term: 2, type: MsgRequestPreVote, raft_id: 1, version: 1.0.0
Sep 06 10:51:20.227 INFO starting a new election, term: 2, raft_id: 1, version: 1.0.0
Sep 06 10:51:20.227 INFO became pre-candidate at term 2, term: 2, raft_id: 1, version: 1.0.0
Sep 06 10:51:20.227 INFO broadcasting vote request, to: [2, 3], log_index: 6, log_term: 2, term: 2, type: MsgRequestPreVote, raft_id: 1, version: 1.0.0
Sep 06 10:51:22.047 INFO starting a new election, term: 2, raft_id: 1, version: 1.0.0
Sep 06 10:51:22.047 INFO became pre-candidate at term 2, term: 2, raft_id: 1, version: 1.0.0
Sep 06 10:51:22.047 INFO broadcasting vote request, to: [2, 3], log_index: 6, log_term: 2, term: 2, type: MsgRequestPreVote, raft_id: 1, version: 1.0.0
Sep 06 10:51:23.865 INFO starting a new election, term: 2, raft_id: 1, version: 1.0.0
Sep 06 10:51:23.865 INFO became pre-candidate at term 2, term: 2, raft_id: 1, version: 1.0.0
Sep 06 10:51:23.865 INFO broadcasting vote request, to: [2, 3], log_index: 6, log_term: 2, term: 2, type: MsgRequestPreVote, raft_id: 1, version: 1.0.0

Reason:
I check the reason is checkQuorum is set as true. So do the maintainer know how to set checkQuorum to false when starting the RAFT nodes?

@rmqtt rmqtt closed this as completed Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants