You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/01/27 03:25:07 UTC

[GitHub] [rocketmq] 18205097282 commented on issue #3800: console dashboard 页面疑问

18205097282 commented on issue #3800:
URL: https://github.com/apache/rocketmq/issues/3800#issuecomment-1022812232


   不好意思&nbsp; 再麻烦您一下
   您说把最后X个数值相加处以X 就得到最后X时间内的getTotalTps。
   
   
   
   我的这段曲线是新建的broker。仅仅只在10:40处消费了2个message,其他时间均没有消费也没有生产消息。 为何之后它会一直有大于0的值呢?
   
   
   
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人:                                                                                                                        "apache/rocketmq"                                                                                    ***@***.***&gt;;
   发送时间:&nbsp;2022年1月27日(星期四) 中午11:16
   ***@***.***&gt;;
   ***@***.******@***.***&gt;;
   主题:&nbsp;Re: [apache/rocketmq] console dashboard 页面疑问 (Issue #3800)
   
   
   
   
   
    
   It is calculate by the metric getTotalTps, which shows the tps of getMessage call.
     
   When org.apache.rocketmq.store.DefaultMessageStore#getMessage is called, getMessageTimesTotalFound or getMessageTimesTotalMiss is incremented.
    
   org.apache.rocketmq.store.StoreStatsService#sampling is executed every second, and tag the current getMessageTimesTotalFound  or  getMessageTimesTotalMiss with current timestamp, and put them in getTimesFoundList or getTimesMissList separately.
    
   So each list contains a time series record of the number of getMessage operation, and each the timestamp between two consecutive item is about 1 second. The interval is NOT precise, because the generation of record is triggered by scheduled service in step 2.
    
   If you get the last X items in the list, sum the number of call times and divide the result by X, you can get the getTotalTps in the last X seconds.
     
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   Triage notifications on the go with GitHub Mobile for iOS or Android. 
   You are receiving this because you authored the thread.Message ID: ***@***.***&gt;


-- 
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: dev-unsubscribe@rocketmq.apache.org

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