go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

There might be etcd failures when deployed in k8s

Open qingcha1 opened this issue 2 years ago • 6 comments
trafficstars

{"level":"warn","ts":"2023-08-03T03:38:03.071Z","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0001c1340/10.0.2.62:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = "transport: Error while dialing dial tcp 0.0.0.0:2379: connect: connection refused""}

问题1:每小时有近1000次连接失败情况

qingcha1 avatar Aug 03 '23 07:08 qingcha1

问题2:连接ip应该是10.0.2.62,为什么报错信息会是0.0.0.0

qingcha1 avatar Aug 03 '23 07:08 qingcha1

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Question 2: The connection ip should be 10.0.2.62, why the error message is 0.0.0.0

Issues-translate-bot avatar Aug 03 '23 07:08 Issues-translate-bot

对了,go-zero版本是v1.3.4,因为使用go-zero较早,版本差异太大,目前没办法升级到最新版本

qingcha1 avatar Aug 03 '23 07:08 qingcha1

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


By the way, the go-zero version is v1.3.4, because go-zero was used earlier, the version difference is too large, there is no way to upgrade to the latest version

Issues-translate-bot avatar Aug 03 '23 07:08 Issues-translate-bot

0.0.0.0 might be from your configuration. We didn't write any 0.0.0.0 for etcd config.

Better to upgrade go-zero to latest version, we've updated etcd client lib.

kevwan avatar Aug 04 '23 15:08 kevwan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 09 '24 01:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 07 '24 02:11 github-actions[bot]