baidu / baidu/braft

网络质量较差时出现一直选举的情况

Open
#261 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
4.2k
Forks
923
PR merge metrics
No merged PRs in 30d

Description

情况如下:
有三个节点A B C,其中C与A B通信延迟很高,这个延迟超过C的选举超时时间,但小于A B的选举超时时间。
而且C的选举超时时间一段时间内小于A B。

这种情况下,测试发现会一直选C为Leader,但是C很快变为Follower,导致重新选举,但选举又选出C,这个过程一直循环较长时间。
是不是可以制定一个策略,监控网络情况,让网络情况较差的节点不再参与选举?

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the election behavior described for three nodes when node C has higher communication latency and a shorter election timeout. Determine how repeated leadership changes should be handled and what policy would prevent the cycle. Done should be an agreed, testable strategy for excluding or otherwise handling poorly connected nodes during elections.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.