Azure-docs: App Service auto-scale - Service Bus queue active messages definition

Created on 22 Jun 2020  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

When auto-scaling based on a Service Bus queue I can't find a definition for:

  • Messages processed
  • Active messages processed

What does "active" mean and what in contrast is "not active". Does active means messages waiting to be processed in the queue ("unprocessed"), and messages processed means messages that were removed from the queue? Would be easier to remove the "processed" from the seconds, like:

  • Processed messages (Tooltip: messages that were processed and are no longer in the queue)
  • Active/Unprocessed messages (Tooltip: messages present in the queue and ready to be processed)

Also what is the outcome when using SUM vs Average in this situation.

Is SUM the total per instances, while Average is the average of the division per instances?

BTW I'm opening this because I couldn't find it anywhere else.

image

image


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Azure-Monitosvc Pri2 assigned-to-author autoscalsubsvc awaiting-product-team-response product-question triaged

Most helpful comment

@spelluru thanks for the active messages definition.

However, I still don't understand the difference in the auto-scaling options:

  • Messages processed
  • Active messages processed

From the consumer perspective it is clear to me what "active" means, but how about the auto-scaling rule?

All 6 comments

@shilpasharmaAM . Can you provide some help here?

Based of the https://docs.microsoft.com/en-us/rest/api/servicebus/queues/get

Messages processed: The number of messages in the queue
Active messages processed: Number of the active messages in the queue, topic or subscription

Documentation will be updated to reflect the above, thanks for calling it out.

In terms of the time grain statistics, "Average" indicates that the metrics obtained during the preset or set timegrain will be aggregated by taking the average per instance. Whereas "Sum" indicates that the metrics obtained during the preset or set timegrain would be added per instance.

@shilpasharmaAM thanks for the response

Still not clear to me, I don't understand what "active" means, and if a message is "processed", why is it still in the queue?

Can we get more clarification?

Hi @epomatti . The concept of "Active messages" is discussed in the Service Bus documentation. @spelluru Can you provide a specific piece of documentation that explains the difference? I went looking and couldn't find it myself. It would also be helpful to update this documentation to mention what the term active means. https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-metrics-azure-monitor given the question from epomatti and my difficulty.

Including Ashish @axisc for any follow up questions.

https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-counters#message-count-details
Messages in the queue or subscription that are in the active state and ready for delivery. The messages are available to be received.

Messages can be in deferred state (https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-deferral) or scheduled state (https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-sequencing#scheduled-messages) - They are not active and not ready for delivery.

@spelluru thanks for the active messages definition.

However, I still don't understand the difference in the auto-scaling options:

  • Messages processed
  • Active messages processed

From the consumer perspective it is clear to me what "active" means, but how about the auto-scaling rule?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments