You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
why not use different configure option instead of election_timeout_ms for election_timer check interval ? 是想用election_timeout_ms作为election_timer_check_interval? 这两个值相同会有问题吧
问题
目前 braft 中的 election_timer 定时器的周期是 election_timeout_ms (braft 默认 1000,我们的项目配置2000为了避免网络波动导致集群震荡),会间隔 2s 检查一次 leader 是否超时未更新 lease,这使得在leader 故障场景, follower 发起选举时间会最多滞后 4s。
想法
在 braft/Node 中引入 election_timer_interval_ms 参数(默认配置 500)
目的是缩短检查周期以快速检查到leader超时。
上下文
希望帮忙评估下风险


The text was updated successfully, but these errors were encountered: