timed out publish local member to cluster through raft #20364
Unanswered
godbestway
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi etcd community,
I’m trying to deploy an etcd node inside a Kubernetes cluster and have it join an existing etcd cluster that is running on three external VMs. To expose the external etcd service, I set up a load balancer in front of those VMs.
However, when my etcd node in Kubernetes attempts to connect to the external cluster through the load balancer, it always times out.
I got the logs like this
`
{"level":"info","ts":"2025-07-19T15:56:39.819778Z","caller":"etcdserver/server.go:798","msg":"initialized peer connections; fast-forwarding election ticks","local-member-id":"9c590d54aba2444b","forward-ticks":8,"forward-duration":"800ms","election-ticks":10,"election-timeout":"1s","active-remote-members":2}
{"level":"info","ts":"2025-07-19T15:56:39.822073Z","caller":"rafthttp/peer_status.go:53","msg":"peer became active","peer-id":"912320f6905136a4"}
{"level":"info","ts":"2025-07-19T15:56:39.822103Z","caller":"rafthttp/stream.go:412","msg":"established TCP streaming connection with remote peer","stream-reader-type":"stream Message","local-member-id":"9c590d54aba2444b","remote-peer-id":"912320f6905136a4"}
{"level":"info","ts":"2025-07-19T15:56:39.822870Z","caller":"rafthttp/stream.go:412","msg":"established TCP streaming connection with remote peer","stream-reader-type":"stream MsgApp v2","local-member-id":"9c590d54aba2444b","remote-peer-id":"912320f6905136a4"}
{"level":"info","ts":"2025-07-19T15:56:39.822913Z","caller":"rafthttp/stream.go:412","msg":"established TCP streaming connection with remote peer","stream-reader-type":"stream MsgApp v2","local-member-id":"9c590d54aba2444b","remote-peer-id":"25f42ca9e477cc46"}
{"level":"info","ts":"2025-07-19T15:56:39.919419Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"9c590d54aba2444b [term: 0] received a MsgHeartbeat message with higher term from 912320f6905136a4 [term: 21423]"}
{"level":"info","ts":"2025-07-19T15:56:39.919457Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"9c590d54aba2444b became follower at term 21423"}
{"level":"info","ts":"2025-07-19T15:56:39.919476Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"raft.node: 9c590d54aba2444b elected leader 912320f6905136a4 at term 21423"}
{"level":"warn","ts":"2025-07-19T15:56:46.742568Z","caller":"etcdserver/server.go:2165","msg":"failed to publish local member to cluster through raft","local-member-id":"9c590d54aba2444b","local-member-attributes":"{Name:dev-cluster-etcd ClientURLs:[https://dev-cluster-etcd.xxx.de:2379]}","request-path":"/0/members/9c590d54aba2444b/attributes","publish-timeout":"7s","error":"etcdserver: request timed out, possibly due to connection lost"}
{"level":"warn","ts":"2025-07-19T15:56:53.743527Z","caller":"etcdserver/server.go:2165","msg":"failed to publish local member to cluster through raft","local-member-id":"9c590d54aba2444b","local-member-attributes":"{Name:dev-cluster-etcd ClientURLs:[https://dev-cluster-etcd.xxx.de:2379]}","request-path":"/0/members/9c590d54aba2444b/attributes","publish-timeout":"7s","error":"etcdserver: request timed out"}
`
These are my Settings
`
Could someone help me understand what might be causing the timeout? And I have already checked the network issues, there's no deloyed networkpolicies and the firewalld on the other side allow everything. So i am really confused about this issue.
And I also tried many combination of the port 2380, like this
https://dev-cluster-etcd-0.etcd-headless.dev-etcd.svc.cluster.local:2380
But it also not work
Thanks in advance for any advice!
Beta Was this translation helpful? Give feedback.
All reactions