-
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
Redis Streams Scaler Does Not Trigger on a Single Message #6478
Comments
I think you are right. As I see it, this was accidentally created during a refactoring. The code contains the following line:
The second return value (the boolean) determines whether the scaler is active. This becomes So that would explain your finding. Is this something you want to look into? No worries if not, maybe I'll look into it for a fix. |
Hi @rickbrouwer , Thanks for your detailed explanation! That makes sense and explains my findings clearly. I’m pretty busy these days, but I’d really appreciate it if you could look into this for a fix when you have the time. Let me know if there’s anything specific you’d need from me to help with the process. Thanks again! |
Description:
When using the Redis Streams scaler in KEDA, I’ve observed that scaling does not occur when there is only a single message in the queue. The scaling only happens when at least 2 messages are present, which is problematic for use cases where individual messages need immediate processing.
This behavior seems to be related to the logic in the Redis Streams scaler code, where the lag count is being checked.
Here is the trigger configuration I was using with v2.15.1:
and I had to change it to this one with v2.16.0 and v2.16.1:
Steps to Reproduce:
Expected Behavior:
Scaling should occur when there is a single message in the stream, as long as the lag count exceeds the activationLagCount (which is set to 0 in this case).
Actual Behavior:
Scaling only occurs when there are at least 2 messages in the stream, leading to delayed or missed processing for cases where only a single message arrives.
Additional Context:
This issue affects use cases where low-latency processing of individual messages is required. If any additional configuration is needed to support this behavior, it should be documented.
The text was updated successfully, but these errors were encountered: