-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Rate-limiting plugin doesn't work properly #2495
Comments
Whether postgres will affect this? |
ShinEDL
changed the title
Rate-limiting plugin doesn't work
Rate-limiting plugin doesn't work properly
May 4, 2017
Sometimes it even dosen't work anymore...let all request be proxied... |
There was a recent PR that seems related; can you have a look at #2481 and see if this solves your problem? |
@p0pr0ck5 At last, I found that if I set redis_database to 0, it work fine. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
I created a rate-limiting plugin which limit by consumer and set policy to "redis", but it doesn't work properly.
Steps To Reproduce
1.Create a api named "api_test"
2.Create a consumer named "consumer_test" and add a key of key-auth for it.
3.Create a key-auth plugin apply to "api_test".
4.Create a rate-limiting plugin which apply to "consumer_test" and "api_test", set policy to "redis".
Other configuration is default, and redis_host and redis_password is correct.
5.Run two request to "api_test", it can work properly (one proxy, one limited). However, one second later, I run another request to "api_test", it can proxy.
ps: 1. the interval is one minute;
2. redis server can't find the key about rate-limiting.
Additional Details & Logs
The text was updated successfully, but these errors were encountered: