-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnNewMessages中last_msg处理机制,是否会影响请求延时? #1149
Comments
说下我对这个问题的理解哈,这里说的延时应该是指从CutInputMessage得到一个新的msg,到建立的bthread flush之间的延时。
理论上来说last_msg的延时和一次DoRead的第一个msg是相当的,因此,OnNewMessages中延时主要是上述1)带来的。为什么要这么做,OnNewMessages下面的注释也给出了解释——“To minimize the overhead, scheduling is batched”。 |
如果单个socket上qps很高,一次DoRead的数据量比较大呢?延时会不会明显? PS:用echo_server起了一个服务,在另一台机器上通过rpc_press发请求,当qps较大时,通过brpc的监控页面,可以看到,运行时间越长,延时会越来越大。 |
这是rpc_press的问题,已经修复:#1763 |
在OnNewMessage中,针对last_msg的处理,会延后到下一轮DoRead中,进行处理。
请问,当单个socket中,qps较大,且每次DoRead到消息量较多时,是否会增加last_msg的响应时间?
The text was updated successfully, but these errors were encountered: