You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Fraser Adams (Created) (JIRA)" <ji...@apache.org> on 2011/11/03 14:19:32 UTC

[jira] [Created] (QPID-3580) New feature request: It would be nice to have a means to "reset" statistics counts on QMF Managed Objects

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


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:dev-subscribe@qpid.apache.org


[jira] [Commented] (QPID-3580) New feature request: It would be nice to have a means to "reset" statistics counts on QMF Managed Objects

Posted by "Chuck Rolke (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143179#comment-13143179 ] 

Chuck Rolke commented on QPID-3580:
-----------------------------------

A good argument *against* resetting statistics is in the case where there are multiple consumers. One consumer resets the statistics and then the other consumers start getting huge negative numbers when they calculate their deltas.

I'm strongly in the camp of "never reset statistics" at the source.

A client is always able to snapshot the stats and then present deltas from that point giving the appearance of reset stats.
                
> 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:dev-subscribe@qpid.apache.org


[jira] [Commented] (QPID-3580) New feature request: It would be nice to have a means to "reset" statistics counts on QMF Managed Objects

Posted by "Fraser Adams (Commented) (JIRA)" <ji...@apache.org>.
    [ 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:dev-subscribe@qpid.apache.org