You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right, the plugin does not support authentication with Redis yet. But on a closer look, it looks like the client we use does provide support for the same.
To verify you can check for the keys in Redis cache and its value. Also if you have multiple nodes, your actual rate limit would be limit * number of nodes, since the policy is local so the counter is not shared.
I see that you have already raised a PR for 1. I'll verify the change once and let you know.
Hi Team,
Firstly, Thanks for the plugin. Can you please help me in answering below questions ?
2022/12/09 22:43:54 [error] 2090#0: *8567 [lua] rediscluster.lua:238: fetch_slots(): failed to fetch slots: NOAUTH Authentication required.;NOAUTH Authentication required., context: ngx.timer, client: 10.240.1.209, server: 0.0.0.0:8443
2022/12/09 22:43:54 [error] 2090#0: *8567 [kong] connection.lua:96 failed to connect to Redis: nil, context: ngx.timer, client: 10.240.1.209, server: 0.0.0.0:8443
Plugin Config:
{"name":"scalable-rate-limiter","config":{"redis_keepalive_timeout":60000,"redis_pool_size":4,"second":null,"redis_send_timeout":100,"hour":null,"redis_max_redirection":2,"redis_max_connection_attempts":2,"redis_backlog":1,"policy":"batch-redis","redis_port":6379,"redis_host":"redis-cluster-0.redis-cluster-headless.redis-cluster.svc.cluster.local","day":null,"batch_size":2,"limit_by":"service","redis_connect_timeout":200,"minute":5,"redis_read_timeout":100,"error_message":"API rate limit exceeded","header_name":null},"created_at":1670625790,"service":null,"route":{"id":"0abbce6b-f987-494b-96bb-38f9ae43dde2"},"protocols":["grpc","grpcs","http","https"],"consumer":null,"id":"ed409aa0-27b1-42b1-8359-9e59ac4c44ac","tags":null,"enabled":true}
Kong Version: 2.8.1
The text was updated successfully, but these errors were encountered: