Repository navigation
fix(proxy-supervisor): re-probe a fresh predecessor instead of grabbing epoch 0 - #111
Merged
Merged
Conversation
…ng epoch 0 The rev-49 simultaneous agent+proxy roll on talos exposed it: under node load a single 1s admin probe in initStartEpoch failed transiently, the supervisor concluded "no live predecessor" and started at epoch 0 — bind-colliding with the live predecessor on the base-id domain socket (errno 98) and crash-looping (restartCount 4) until the predecessor yielded. The heartbeat is LIVE-gated by construction, so a fresh heartbeat means the predecessor served within the stale window; the two signals must agree before deciding. initStartEpoch now re-probes while the file is fresh but admin is unconfirmed — resolving to epoch+1 when admin confirms, or to epoch 0 once the heartbeat goes stale. The wait is bounded by predecessorStale. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Owner
Author
talos-main validation (rev 50, fixed image
|
bpalermo
added a commit
that referenced
this pull request
Jun 10, 2026
…#120) - docs/workload-requirements.md: how a workload joins the mesh (SA-derived service name, managed label, annotations), the outbound listener calling convention, the two workload-side settings required for hitless rolls (minReadySeconds, native preStop sleep) with the validated termination sequence, and the exact retry semantics clients get for free. - 002 audit doc: status header was stale ("no fixes applied"); all findings landed in #109/#110/#111. Co-authored-by: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Found during the post-merge (rev-49) re-pin on talos-main, which rolled the agent and proxy DaemonSets simultaneously: under that load, a single 1s admin probe in
initStartEpochfailed transiently, the new pod concluded "no live predecessor" and started at epoch 0 — colliding with the live predecessor on the base-id hot-restart domain socket (errno=98) and crash-looping (restartCount: 4on one node) until the predecessor exited. Self-healing, but a crash-loop where a short wait should be.Fix
The heartbeat file is LIVE-gated by construction (written only while the writer's Envoy is admin-LIVE), so a fresh heartbeat is strong evidence the predecessor is alive.
initStartEpochnow requires the two signals to agree: while the file is fresh but admin unconfirmed it re-probes (500ms interval), resolving to epoch+1 when admin confirms or to epoch 0 once the heartbeat goes stale (≤8s bound). One transient probe failure can no longer trigger the epoch-0 collision.Validation
🤖 Generated with Claude Code