smallnest / rpcx

Best microservices framework in Go, like alibaba Dubbo, but with more features, Scale easily. Try it. Test it. If you feel it's better, use it! 𝐉𝐚𝐯𝐚有𝐝𝐮𝐛𝐛𝐨, 𝐆𝐨𝐥𝐚𝐧𝐠有𝐫𝐩𝐜𝐱! build for cloud!
https://rpcx.io
Other
8.08k stars 1.16k forks source link

failed to dial server: dial tcp: missing address #802

Closed mylxy closed 1 year ago

mylxy commented 1 year ago

采用k8s做服务发现,做集群,比如A 服务扩展三个副本,A1,A2,A3 每个副本都是rpc Server及client,比如A1 client连接 A2,A3 server client的初始化代码如下

c.xclient = client.NewXClient(surface.FishServerPath, c.config.FailMode, client.SelectByUser, c.discovery, client.DefaultOption) c.xclient.SetSelector(NewFishSelector(c.event))

没有配置心跳,采用tcp协议传输,目前集群正,但 failed to dial server: dial tcp: missing address 这个warn告警日志特别多,请问为什么,告警日志期间,服务器也未发生重启,服务也未重新部署image

smallnest commented 1 year ago

注册的node节点不对就会报这个问题。你是自己实现的注册discovery 和selector,看看你拼装的格式是啥