-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Storage Queue Scaler: should report both visible and invisible message count to compute queue length. #4002
Comments
Hi, |
I am not really sure why this was implemented this way. Ahmed will know better. |
Let's wait till @ahmelsayed has time to answer us before continue with the PR |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
@ahmelsayed, do you have more info? |
@JorTurFer @moria97 I think this fix has introduced a bug for me. It no longer scales down if there are invisible messages in the queue (Which is good). However, it also keeps scaling up on these invisible messages. Was this expected behavior, if yes is there some way to disable this behaviour |
Hi, |
Report
From Azure Storage Queue document, queue messages should be set to invisible state when pulled from queue for processing, deleted when processing completes and be visible again when processing fails. So when computing queue length for scaling, it's better to consider both visible and invisible messages like in the get-queue-length documentation instead of counting those visible only.
Expected Behavior
Use correct queue length to count both visible and invisible messages.
Actual Behavior
Count only visible messages.
Steps to Reproduce the Problem
None
Logs from KEDA operator
KEDA Version
None
Kubernetes Version
None
Platform
None
Scaler Details
Azure Storage Queue
Anything else?
No response
The text was updated successfully, but these errors were encountered: