-
Notifications
You must be signed in to change notification settings - Fork 69
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
PR Accept for Resetting the Keys / Removing the Existing Keys #37
Comments
Hi Romit,
Yes sort of. The library uses a pretty novel algorithm called GCRA. What it ends up storing is a "TAT", or theoretical arrival time. Check out the implementation for full details, but it's pretty easy to see this at work for yourself.
Then from another console:
Only one value is stored, so it's easy to do with with the built-in
If the intent here is to change a user's rate, I'd recommend the simpler option of just deleting their key and then start issuing new |
Thanks a Lot, that makes more sense and is much cleaner and simple. |
Hey @romitmisra1 , The results of Can you double-check your setup and take a look at your logs on the master and each replica to make sure there's nothing that looks amiss? One failure case that I can think of, for example, would be in the redis-cell plugin was loaded on the master, but not on replicas (I'm not sure exactly what would happen in that case, but there's a decent chance it would result in the same symptoms that you're seeing). If everything looks fine, if you come up with a basic set of commands to bring up a cluster with a similar configuration to yours, I'll dig in and see if I can find what's not working. |
Thanks Brandur, I have already started debugging the code, and will get back with the detailed logs. |
Sounds good! Thanks. |
@romitmisra1: I hope that you are well. Could you give us an update on how this worked out for you? |
Hi,
I have started using the module to integrate with our deployment. I am not 100 percent sure but so far from the Observed Behaviour, it seems that once the CL.THROTTLE commands gets executed the Key Entry is made, and subsequent CL.THROTTLE, use the entry to process the rate limit quota.
Working On A PR for the following, but wanted to discuss before hand if I have interpreted this correctly:-
1.Removing a Key Altogether
2.Resetting / Updating a key with new Rate Limit Tuple
Waiting for your response
Thanks
Romit
The text was updated successfully, but these errors were encountered: