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

   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   lalb在节点少的时候容易触发Fail to select server,可能与这个issue的部分触发条件一致 
[https://github.com/apache/brpc/issues/699](url)
   触发条件:SelectServer按照加权随机选择到了最后一个节点,但是这个节点因为inflight 
delay可能会导致降权所以无法选择到,select失败。
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   ChannelOptions能否新增一个参数,表示lb select的重试次数。
   * 虽然现在已经有了max_retry这个参数,但这个参数可能会导致请求数放大,对于没有限流保护的下游可能会造成雪崩。
   * 我理解SelectServer应该是一个比较轻的操作,重试一般不会引入性能问题
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   调整punish_inflight_ratio或者类似的参数,让惩罚不要太严重。
   
   **Additional context/screenshots (更多上下文/截图)**
   
![image](https://user-images.githubusercontent.com/37871611/228492977-cd46875c-c4f2-4a77-9624-69d6d45b6913.png)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to