Description
I am deployed Apache APISIX on my Ubuntu system and using the ai-proxy plugin as an LLM router. During operation, I encountered an intermittent problem: "openai-base.lua:366: failed to connect to LLM server: timeout" appears periodically, but then recovers after some time. I configured various configurations from different LLM manufacturers in the routing list, including Doubao, Qwen, and DeepSeek. This problem occurred for each manufacturer's model. However, directly using the official base URL provided by the LLM vendors works without any problems.
After extensive analysis, I haven't been able to identify the root cause. Any help from the community would be greatly appreciated!
Environment
- APISIX version (run
apisix version): 3.16.0
- Operating system (run
uname -a): Ubuntu 24.04.3
- OpenResty / Nginx version (run
openresty -V or nginx -V): openresty/1.27.1.2
- etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info): etcd Version: 3.5.4
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run
luarocks --version):
Description
I am deployed Apache APISIX on my Ubuntu system and using the ai-proxy plugin as an LLM router. During operation, I encountered an intermittent problem: "openai-base.lua:366: failed to connect to LLM server: timeout" appears periodically, but then recovers after some time. I configured various configurations from different LLM manufacturers in the routing list, including Doubao, Qwen, and DeepSeek. This problem occurred for each manufacturer's model. However, directly using the official base URL provided by the LLM vendors works without any problems.
After extensive analysis, I haven't been able to identify the root cause. Any help from the community would be greatly appreciated!
Environment
apisix version): 3.16.0uname -a): Ubuntu 24.04.3openresty -Vornginx -V): openresty/1.27.1.2curl http://127.0.0.1:9090/v1/server_info): etcd Version: 3.5.4luarocks --version):