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/08/18 02:04:05 UTC

[GitHub] [servicecomb-java-chassis] jush-lyy commented on issue #2513: servicecomb.rest.server.verticle-count、servicecomb.rest.client.verticle-count默认值是否合理

jush-lyy commented on issue #2513:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2513#issuecomment-900754976


   部分是实际测试数据,部分是推测。我目前只有一个8核主机,因此分别将这两个配置设置为4、8、16来模拟测试(我们生产环境是16核主机,相当于在16核主机上使用默认值8、设置为16、32)。
   
   在8核主机上vertx创建了16个eventloop线程。
   配置项为4时:
   ![1](https://user-images.githubusercontent.com/62862072/129824053-78c7ebc7-8552-4315-a023-ffe0978903c3.png)
   配置项为8时:
   ![2](https://user-images.githubusercontent.com/62862072/129824066-17cc1302-43a2-4b53-a6c9-8c6fe0c18f32.png)
   配置项为16时:
   ![3](https://user-images.githubusercontent.com/62862072/129824116-7489d139-909d-4888-8d86-09573e30c1e1.png)
   
   可以看到两个配置项设置为4时,cpu核没有充分利用,只有4个eventloop线程在繁忙,实际上就是4个RestServerVerticle在工作,ClientVerticle的作用只是在启动时绑定Http连接池和eventloop线程,业务流程中所有工作都在RestServerVerticle里。
   
   设置为4、8、16时,应用最高tps是750、910、910,因此推测16核主机上使用默认值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