-
Notifications
You must be signed in to change notification settings - Fork 447
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: timeout #279
Comments
the error log: 2024/08/06 15:49:01 [debug] 384947#384947: *171134 [lua] base_plugin.lua:24: access(): executing plugin "rate-limiting": access |
Just give us a minimal example that could reproduce this problem. You can also use OpenResty XRay to see if there are any off-CPU events. |
The gateway kong uses Redis to limit the service flow, and the gateway and redis services are closed in the same computer room. The timeout time set by the gateway as a client is 50ms |
@zhuizhuhaomeng Hello, do you have any ideas on this problem? Please give me some guidance. Thank you |
@liukaiyuliukaiyu |
I'm having the same problem that @liukaiyuliukaiyu mentioned. I created a custom plugin in Kong with this library and have several timeouts connecting and doing authentication through Redis. My setup is with Kong Db-less in and Redis-Cluster, both in Kubernetes on the same nodes (sometimes). A few errors /debug messages from my setup: Already tried to increase the connection timeout to bigger values, and the problem remains. Any idea or guidance to try to find this issue? My redis connection settings
|
Kong/kong#13473 |
@liukaiyuliukaiyu did you already apply any mitigation or workaround for this issue? |
We plan to upgrade the machine specifications or traffic splitting to solve this problem, but it has not been implemented yet. If you have any new progress and solutions, please leave a message and communicate in time, thank you! |
Whether the redis client will block the nginx event loop in implementation, or the read timeout is caused by lua's own coroutine scheduling, because I found that the redis server responds quickly, and the redis client will appear in the timeout caused by not being able to read the response within 50ms
The text was updated successfully, but these errors were encountered: