[ 
https://issues.apache.org/jira/browse/QPID-3580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143270#comment-13143270
 ] 

Fraser Adams commented on QPID-3580:
------------------------------------

Hi Chuck,
I've got to concede that one d'oh!!!

To be fair though part of the issue is that the standard tools aren't hugely 
helpful when the counts get big, for example qpid-stat truncates the precision 
and "helpfully" prints "k", "m" or "g" (qpid-queue-stats is more helpful to be 
fair).

I first got frustrated when I started playing with cumin when I got big numbers 
in my counts, which "visually" don't make it easy to spot deltas. Ironically 
cumin is stateful and indeed uses a database, so could easily have taken a 
snapshot of statistics and calculated deltas as you suggest - but doesn't.


In many scenarios I suspect users are looking at broker info as 
"administrators" in a single user scenario and using the standard (largely 
stateless) bundled tools.

So, I agree with your comment and I'm slightly embarrassed that I hadn't 
thought of the scenario you describe :-), but I'm still thinking that perhaps 
it's still useful to have a resetStatistics method, but perhaps only on the 
broker class as a slightly "nuclear option" with a warning in the description 
that it will clear statistics for all users.

Happy to go with a consensus view on this, but if the consensus is no to the 
nuclear option then I'd really like to see some improvements to the bundled 
tools to make things easier for users who perhaps aren't tech savvy enough to 
write their own QMF console apps.

                
> New feature request: It would be nice to have a means to "reset" statistics 
> counts on QMF Managed Objects
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3580
>                 URL: https://issues.apache.org/jira/browse/QPID-3580
>             Project: Qpid
>          Issue Type: New Feature
>          Components: C++ Broker
>    Affects Versions: 0.12
>         Environment: All c++ broker
>            Reporter: Fraser Adams
>            Priority: Minor
>              Labels: features
>
> The broker maintains a bunch of Managed Objects that can be returned via QMF, 
> many of which yield useful info - for example queue objects record things 
> like msgTotalEnqueues, msgTotalDequeues, byteTotalEnqueues etc. etc.
> These are stored as 64 bit numbers I believe and increment over time as data 
> arrives and departs on the queue.
> It would be nice to have a way to reset the counts. I guess that the most 
> obvious way would be via a QMF "resetStatistics" method or similar on the QMF 
> classes where this is sensible and/or possibly a global resetStatistics 
> method on the broker class.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to