hjwsm1989 opened a new issue, #2866:
URL: https://github.com/apache/brpc/issues/2866

   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   目前 braft 中的 election_timer 定时器的周期是 election_timeout_ms (braft 默认 
1000,我们的项目配置2000为了避免网络波动导致集群震荡),会间隔 2s 检查一次 leader 是否超时未更新 lease,这使得在leader 
故障场景, follower 发起选举时间会最多滞后 4s。
   
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   在 braft/Node 中引入 election_timer_interval_ms 参数(默认配置 500)
   目的是缩短检查周期以快速检查到leader超时。
   
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   
   
   **Additional context/screenshots (更多上下文/截图)**
   希望帮忙评估下风险
   <img width="731" alt="image" 
src="https://github.com/user-attachments/assets/914a8839-150b-415f-a94c-7ff4617c4bb8";
 />
   
   <img width="974" alt="image" 
src="https://github.com/user-attachments/assets/03afdc76-5b48-4255-9031-deaffb4fa779";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to