Repository navigation
fix: bootstrap demo peers from a fully qualified seed name - #86
Conversation
Pods resolve with ndots:5, so the seed Service name was tried under four search domains before the absolute one. On a node ~111 ms from CoreDNS (the Brev node over Tailscale) that ran past spctrld's 200 ms seed resolve timeout every time, and peers there stayed isolated. A trailing dot makes it a single lookup.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What
scripts/foodbolt-podsnow passes the seed Service as a fully qualified name with a trailing dot:--bootstrap=spctrld-peers-<run>.foodbolt.svc.cluster.local.:7000.Why
Peers scheduled on
brev-6ap3r0udj, the node that joined today, stayed isolated forever. That node is about 111 ms from CoreDNS over Tailscale; the AWS nodes are at most a few ms away.Pods resolve with
ndots:5, and the seed name has only four dots. Without the trailing dot, the resolver first tries the name under each of the four search domains (foodbolt.svc.cluster.local,svc.cluster.local,cluster.local,brev.local), each a round trip of at least 111 ms. That always ran past spctrld'sseedResolveTimeoutof 200 ms (internal/node/member.go), so the peer never contacted a seed. With the trailing dot it is one lookup of about 111 ms.Testing
On the live cluster:
Note
This is a workaround with a thin margin: 111 ms against a 200 ms limit. The proper fix belongs in spctrld: resolve seeds off the node loop with a timeout of a couple of seconds.
Summary by CodeRabbit