FancyJan commented on issue #1914:
URL: 
https://github.com/apache/incubator-brpc/issues/1914#issuecomment-1235035533

   > 业务需求是想做服务端限流吗,可以参考下这个文档 
https://github.com/apache/incubator-brpc/blob/master/docs/cn/auto_concurrency_limiter.md
   > 
   > 
如果这个限流不能满足需求,可以参考这个限流的实现做自定义的策略开发,在ConcurrentLimiter里是可以做到统计qps信息的,而且可以比较及时地拒绝新请求。
   
   感谢大佬回答。
   
   大佬,我们这边想了解的是connections的server_connection中的out明显大于in是否说明这两个节点间的交互有问题?
   现在服务是正常跑的没有异常,in的统计值和服务入口qps是一致的,out明显比服务出口qps大。
   我们想知道是不是我们业务代码实现有bug,导致额外的输出开销。
   
   然后是关于降级和限流:
   我们这边有实现自定义限流,不过我们这边有的场景除了限流之外,还需要上游做降级。
   服务端自定义限流没有办法实现这样一种情况:感知到下游扛不住之后,让上游降低每个请求的算力,尽量让每个请求成功。


-- 
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