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

Simon MacMullen simon at rabbitmq.com
Wed May 8 20:53:45 BST 2013


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
>      }
> }
>
> Is this a bug that should be representing Basic.Get counts or a stat we
> can discard?
>
> Regards,
>
> Gavin
> --
>
> Gavin M. Roy
> Chief Technology Officer
>
> <http://www.meetme.com/>
> 100 Union Square Drive
> New Hope, PA 18938
> p. +1.215.862.1162 x263
> f. +1.215.862.0465
>
> <https://www.facebook.com/pages/MeetMe/21931227129><https://twitter.com/meetme><http://www.youtube.com/user/MeetMeVideos>
>
> The public market leader in social discovery. (NYSE MKT: MEET)
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


More information about the rabbitmq-discuss mailing list