Missmiaom commented on issue #1828:
URL: 
https://github.com/apache/incubator-brpc/issues/1828#issuecomment-1178491895

   @wwbmmm   我们之前用的代码是 0.9.7 版本。我们使用了最新的 master 分支代码,并把我们实现的协议 patch 上去后,再测试发现:
   
   - 使用新版本,thread_num 设置 1, 3000qps 26个下游节点,耗时很低,和 3000 qps 一个节点情况相当比旧版本测试结果好很多。
   - 使用旧版本,thread_num 设置 1,,如果将 rpc_press 发送请求里的 usleep 注释掉(sync_client while 
循环的 usleep ),相当于以最快速度发,3000qps 26个下游节点,可以达到70000 qps,95线时耗小于1ms。
   - 使用旧版本,thread_num 设置 1,如果设置 qps=0,相当于同步发送,3000qps 
26个下游节点,速度可到3000qps,95线时耗小于1ms。
   - 使用新旧版本,thread_num 设置 2 或者 3,3000qps 26个下游节点,耗时情况不理想,50线和99线有明显升高。
   - bthread_usage 监控值并不高,离 bthread_count 还有空余。
   
   
   这个问题我们在线上服务中遇到了,然后使用了 rpc_press 发现和线上情况类似。但是看 #1763 如果理解没错的话应该是优化 rpc_press 
发送时间间隔,以稳定发送 qps,请问为什么还会让耗时情况变好呢?
   
   另外,我们线上服务是使用异步请求,多线程发送,bthread_usage 也并不高,有空闲
   
   
   


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