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 2021/06/22 14:00:15 UTC

[GitHub] [servicecomb-java-chassis] kissLife opened a new issue #2429: 有2个provider,当某个provider出现网络时延时,2个provider的吞吐量都下降了,是什么机制导致的吗?

kissLife opened a new issue #2429:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2429


   有2个provider,然后在某1个provider(DM)上模拟网络时延(另1个provider保持正常),当consumer(AS)调用时,发现2个provider的吞吐量都下来了,从之前的280TPS降到了60TPS,测试流量图如下:
   ![image](https://user-images.githubusercontent.com/4749407/122938061-07de3600-d3a5-11eb-9e5d-4a0236214240.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.

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



[GitHub] [servicecomb-java-chassis] kissLife edited a comment on issue #2429: 有2个provider,当某个provider出现网络时延时,2个provider的吞吐量都下降了,是什么机制导致的吗?

Posted by GitBox <gi...@apache.org>.
kissLife edited a comment on issue #2429:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2429#issuecomment-866484720


   @liubao68  @wujimin  感谢~


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



[GitHub] [servicecomb-java-chassis] kissLife commented on issue #2429: 有2个provider,当某个provider出现网络时延时,2个provider的吞吐量都下降了,是什么机制导致的吗?

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


   @liubao68  @wujimin 


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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2429: 有2个provider,当某个provider出现网络时延时,2个provider的吞吐量都下降了,是什么机制导致的吗?

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


   受consuemr共享线程池的影响,一个请求慢了, 其他快的请求也会等待线程池被释放。


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



[GitHub] [servicecomb-java-chassis] wujimin commented on issue #2429: 有2个provider,当某个provider出现网络时延时,2个provider的吞吐量都下降了,是什么机制导致的吗?

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


   ```
   jmeter -> consumer -> provider 1/2
   ```
   如果是这个流程  
   consumer首先是一个provider,默认使用一个共享线程池处理所有请求  
   收到请求后,再   **同步**   调用后面的provider,此时会阻塞当前线程等待provider应答,这个“当前线程”,就是共享线程池里的线程  
   所以,某个provider慢,会影响整体速度  
   
   所有的同步调用,都会面临这种问题,要彻底解决,业务需要从同步改为异步方式调用后面的provider
   


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