-
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 7.0 Streams - use Lag instead of pending #3127
Comments
Hey @Jouse82 BTW, are you willing to contribute with this? |
We should have the capability to configure which approach to use given this is only in Redis 7 as well |
Prerequisites: The threshold for stream and consumer group is obtained from yaml. If
Then scale If there is no
and,
Then scale I think this will maintain backward compatibility to some extent, how about this? |
I'm not an expert on Redis but it sounds good |
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. |
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. |
I'm worried of the performance hit this brings with the XRANGE command, which iterates all entries from the My team is using Redis 6 in production and since we don't have the |
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. |
@JorTurFer can you please check the PR addressing this feature by my colleague @mikelam-us addressing this issue? We are both willing to maintain the Redis implementations: |
Thanks @krishnadurai & @mikelam-us ! |
Implented in 2.11 |
Based on e2e tests I'd say that yes and it's not properly updated docs |
Can I help updating the docs? |
Thanks for the proposal! ❤️ |
Existing Redis Streams scaler uses the Xpending which may be completely false information. XPending only shows the number of read but unacked messages and therefore may not reflect the queue status.
Redis 7.0 has introduced a new metric "Lag", which shows the amount of unread messages for a Stream and Group.
XINFO stream group
This should be the made available for the Redis streams scaler to use instead of the Xpending.
The text was updated successfully, but these errors were encountered: