Open samsu-lb opened 6 months ago
are there any error logs? Please provide self contained examples so that it's easier to reproduce this bug.
Thanks for the reply, client connection log:
No relevant files were found after the stream log was enabled. Configuration: nginx_config: stream: enabled: true access_log_format: >
I would appreciate step by step example that leads to this error.
Build apisix and forward multiple mysql instances through streams through multiple tcp ports to achieve the above problems
Description
The first one forwards mysql and port 9500 can run normally. The second forwarding mysql, port 9400 failed to run, Doesn't it support multiple TCP ports to enable forwarding?
Configuration related: stream_proxy: # TCP/UDP proxy tcp: # TCP proxy address list
services: apisix: image: apache/apisix:${APISIX_IMAGE_TAG:-3.7.0-debian} restart: always volumes:
network_mode: host
ports:
Server ports 9400 and 9500 have been started normally
The first one that works normally 9500 port: { "upstream": { "nodes": { "mysql-1": 1 }, "type": "roundrobin" } }
The second one doesn’t work properly 9400 port: { "server_port":9400, "upstream": { "nodes": { "mysql-2": 1 }, "type": "roundrobin" } }
Environment
apisix version
): apache/apisix:3.7.0-debianuname -a
): Linux ip-10-10-8-120 6.2.0-1017-aws #17~22.04.1-Ubuntu SMP Fri Nov 17 21:07:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linuxopenresty -V
ornginx -V
): nginx:1.19.0-alpinecurl http://127.0.0.1:9090/v1/server_info
): bitnami/etcd:3.4.15luarocks --version
):