Handle ASB queue-length management throttling (pipeline detection)#5604
Draft
ramonsmits wants to merge 1 commit into
Draft
Handle ASB queue-length management throttling (pipeline detection)#5604ramonsmits wants to merge 1 commit into
ramonsmits wants to merge 1 commit into
Conversation
…tling Azure Service Bus throttles management operations (GetQueuesRuntimeProperties) used to read queue lengths. The SDK retries the HTTP 429 responses internally, so the throttling never surfaced as an exception and was invisible in the logs while still showing on the namespace dashboard. Observe the 429 responses via a PerRetry pipeline policy on the management client, log a warning once per throttling episode, and reactively back off the query interval (exponential up to 1 min, recovering gradually) until throttling clears. The ServiceBusException(ServiceBusy) catch remains as a fallback for the retries-exhausted case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detects Azure Service Bus management throttling via a PerRetry HTTP pipeline policy (observes the 429s the SDK retries away) and reactively backs off the queue-length query interval, logging a warning once per throttling episode.
One of two alternative approaches for the same issue; the other (#5605) disables the SDK retries instead.