You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2019/10/08 04:38:38 UTC

[GitHub] [incubator-brpc] MaggieCui edited a comment on issue #936: server端正常,但是客户端收到错误码

MaggieCui edited a comment on issue #936: server端正常,但是客户端收到错误码
URL: https://github.com/apache/incubator-brpc/issues/936#issuecomment-539317987
 
 
   > 这个错误的表面原因是[连续3次](https://github.com/apache/incubator-brpc/blob/fc07b7bf45c4b2aa90ae5c832f3b48a8da124640/src/brpc/socket.cpp#L93)rpc超时触发熔断,client会对那个server[每隔3秒](https://github.com/apache/incubator-brpc/blob/fc07b7bf45c4b2aa90ae5c832f3b48a8da124640/src/brpc/socket_map.cpp#L35)做健康检查,直到连上或机器被移除为止。这个功能的动机是防止持续访问频繁失联的机器。"连续3次超时"还是比较强的限制,只要中间任何一次成功了,就会从头算起,如果觉得这个还松,可以继续调大。调到很大的数值就相当于取消了这个功能。
   
   有疑问的地方在于server端是正常提供服务的,其他rpc请求都正常响应,这个rpc偶尔会出现这种错误。这个原因要怎么排查呢?
   
   还有就是这个timeout是说请求并未到达server端 还是说 server端收到请求但处理超时了?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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