You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/12/13 09:01:40 UTC

[GitHub] [servicecomb-java-chassis] zhaoqi211 opened a new issue, #3523: 微服务调用耗时问题咨询

zhaoqi211 opened a new issue, #3523:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3523

   调用过程nlsb -> edge (服务A) -> provider(服务B),存在部分(万分之几十) provider 响应只有10ms, 但是edge响应时间800ms左右的请求。edge本身几乎没有处理业务。 类似日志如下
   调用时间:2022-12-13 16:24:46.975
   一、edge日志:
   1. 调用日志
   **2022-12-13 16:24:46.975**|transport-vert.x-eventloop-thread-1|DEBUG|LoadBalancerContext.java:getServerFromLoadBalancer:492|c225268d-1e24-4a93-b579-8c15eaa8ae7c|default using LB returned Server: rest://182.10.xx.xxx:8080?sslEnabled=true for request null
   2. access.log
   2022-12-13 16:24:46.973|182.10.xxx.0=xx|"POST /rtd/kbz_fraud_prevention/kbz_fraud_prevention/P2P_Verify/1.0/verify HTTP/1.1"|200|c225268d-1e24-4a93-b579-8c15eaa8ae7c|**823**
   
   二、provider日志access.log
   **2022-12-13 16:24:46.976**|182.10.xx.xxx|"POST /risk-api/v1/kbz_fraud_prevention/P2P_Verify/predict HTTP/1.1"|200|c225268d-1e24-4a93-b579-8c15eaa8ae7c|**10**
   
   可能是什么原因导致的呢?


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3523: 微服务调用耗时问题咨询

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3523:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3523#issuecomment-1367098635

   性能和吞吐量并不是所有的考虑因素,调优需要结合你的业务场景和需要达到的目的来评估。 对于大多数场景,使用java chassis的默认值就是最优的选择。 
   


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3523: 微服务调用耗时问题咨询

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3523:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3523#issuecomment-1348211263

   这个文章可以参考下 [快速失败和重试](https://servicecomb.apache.org/references/java-chassis/zh_CN/references-handlers/fail-retry.html)
   


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3523: 微服务调用耗时问题咨询

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3523:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3523#issuecomment-1351368240

   可以把 verticle-count 改成 8 试试。 


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-java-chassis] zhaoqi211 commented on issue #3523: 微服务调用耗时问题咨询

Posted by GitBox <gi...@apache.org>.
zhaoqi211 commented on issue #3523:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3523#issuecomment-1350296814

   ![image](https://user-images.githubusercontent.com/74461066/207492689-36be5380-f0a7-4e2f-ab12-146b10d8380e.png)
   看metrics日志慢请求基本大部分是耗时在wait response, 比如5,6百毫秒
   
   但是从provider的accesslog看 响应的时间只有几十毫秒


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-java-chassis] zhaoqi211 commented on issue #3523: 微服务调用耗时问题咨询

Posted by GitBox <gi...@apache.org>.
zhaoqi211 commented on issue #3523:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3523#issuecomment-1367097358

   > 可以把 verticle-count 改成 8 试试。
   
   ![image](https://user-images.githubusercontent.com/74461066/209911950-3bd2a071-f172-4aaf-a68f-c6f6922e9dd4.png)
   
   为了提高性能,需要尽量使用更大的连接池; 这个有没有个建议值?
   
   并且verticle-count和maxpool 一般如何调优?


-- 
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: commits-unsubscribe@servicecomb.apache.org

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