[rabbitmq-discuss] Bug in message_stats from /api/queues?

Gavin M. Roy gmr at meetme.com
Wed May 8 21:32:35 BST 2013


Thanks for clearing it up. I do see get/get_no_ack values, just was
confused on the nomenclature.

Is the value of deliver_get to reduce computation on the management UI?

On Wed, May 8, 2013 at 3:53 PM, Simon MacMullen <simon at rabbitmq.com> wrote:

> On 08/05/2013 7:20PM, Gavin M. Roy wrote:
>
>> I'm seeing what I think is a counter bug in the message_stats data
>> structure for queues in 3.1.0, going back as far as I've tested (2.8.5).
>>
>> I am assuming this is a counter of deliveries via Basic.Get. Am I
>> correct in this assumption?
>>
>
> No. It's the sum of all deliveries of any type (i.e. deliver +
> deliver_no_ack + get + get_no_ack).
>
> So I don't think you're seeing a bug.
>
> Cheers, Simon
>
>  If so, It seems that the deliver_get counter is incremented for every
>> delivery of any type. As a generalization, I we do not use Basic.Get so
>> we were confused when we saw this # bubble up.
>>
>> Notice the values directly mirror the deliver #'s for each example:
>>
>> "message_stats": {
>>      "ack": 18,
>>      "ack_details": {
>>          "rate": 0.0
>>      },
>>      "deliver": 18,
>>      "deliver_details": {
>>          "rate": 0.0
>>      },
>>      "deliver_get": 18,
>>      "deliver_get_details": {
>>          "rate": 0.0
>>      },
>>      "publish": 18,
>>      "publish_details": {
>>          "rate": 0.0
>>      }
>> }
>>
>> "message_stats": {
>>      "deliver_get": 1487430,
>>      "deliver_get_details": {
>>          "interval": 21632564,
>>          "last_event": 1368035461427,
>>          "rate": 0.6419989978358597
>>      },
>>      "deliver_no_ack": 1487430,
>>      "deliver_no_ack_details": {
>>          "interval": 21632564,
>>          "last_event": 1368035461427,
>>          "rate": 0.6419989978358597
>>      }
>> }
>>
>> "message_stats": {
>>      "ack": 2412673,
>>      "ack_details": {
>>          "interval": 22354531,
>>          "last_event": 1368035461744,
>>          "rate": 0.3999437877321085
>>      },
>>      "deliver": 2412673,
>>      "deliver_details": {
>>          "interval": 22354531,
>>          "last_event": 1368035461744,
>>          "rate": 0.3999437877321085
>>      },
>>      "deliver_get": 2412673,
>>      "deliver_get_details": {
>>          "interval": 22354531,
>>          "last_event": 1368035461744,
>>          "rate": 0.3999437877321085
>>      },
>>      "publish": 480894,
>>      "publish_details": {
>>          "interval": 10504228,
>>          "last_event": 1368035452340,
>>          "rate": 0.47599880733738836
>>      }
>> }
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130508/e07646ca/attachment.htm>


More information about the rabbitmq-discuss mailing list