xiaokai-wang / nginx-stream-upsync-module

For stream protocol. syncing upstreams from etcd or consul and so on, dynamically updating backend servers attribute, not need to reload nginx for tcp protocol, stream configure.
175 stars 48 forks source link

[error] 139441#0: recv() failed (111: Connection refused) [error] 139441#0: upsync_recv: recv error with upstream: "consul_test" #46

Open hello-llc opened 3 years ago

hello-llc commented 3 years ago

Hi: 这是报错信息

配置信息是这样的: upstream consul_test { server bigdatatest1:21050;# 这个固定的,不用理 upsync 127.0.0.1:8500/v1/kv/upstreams/consul_test/ upsync_timeout=3000ms upsync_interval=500ms upsync_type=consul strong_dependency=off; upsync_dump_path /usr/local/nginx/conf/upsync_test.conf; include /usr/local/nginx/conf/upsync_test.conf; } server{ listen 21052 so_keepalive=on; proxy_connect_timeout 10; proxy_timeout 900; proxy_pass consul_test; }

什么原因呢?

感谢!

xiaokai-wang commented 3 years ago

![Uploading image.png…]()

hello-llc commented 3 years ago

图片

[error] 23094#0: upsync_check_key: invalid ip in /bigdatatest2:21050 [error] 23094#0: upsync_replace_peers: no servers to replace "consul_test" [error] 23094#0: upsync_process: upstream del/replace peers failed [error] 23094#0: [WARN] upsync_timeout: timed out reading upsync_server: 127.0.0.1:8500 [error] 23094#0: [WARN] upsync_timeout: timed out reading upsync_server: 127.0.0.1:8500

现在报错信息变成这样了

这是consul日志 图片