Repository navigation
feat(agent): protocol-aware TCP-connect liveness for TCP-floor services - #312
Merged
Merged
Conversation
Replaces the #305 stopgap (force PROTOCOL_TCP endpoints HEALTHY, skip the probe) with a real liveness signal. The HTTP delegated probe is inapplicable to a non-HTTP app, but the rest of the pipeline is protocol-agnostic above the probe: the agent does an HTTP GET to the health gateway whose health_check filter reflects the per-pod probe cluster's membership. Only the active checker on that cluster is HTTP-specific. - NewAppHealthProbeCluster gains a `tcp` flag: TCP services get a connect-only TcpHealthCheck (empty send/receive) against 127.0.0.1:<appPort> instead of the HTTP GET. A successful connect = healthy. - listener.go passes the pod's protocol (endpoint.aether.io/protocol) through. - liveness.go: drop the #305 TCP skip — the loop now probes TCP pods like everyone else and reads the connect-health the gateway reflects. EDS-mode flow is unchanged: TCP endpoints register UNHEALTHY, promote on first successful connect (warmup grace covers startup), demote when the app stops accepting connections. A dead TCP app (process up but not listening) is now detected instead of assumed healthy. The agent-side appHealth and the gateway are untouched (protocol-agnostic). Validate on talos: TCP service app up -> endpoint HEALTHY + floor 200; stop the app's listener -> endpoint UNHEALTHY (connect fails) -> traffic stops; restart -> recovers. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
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.
Replaces the #305 stopgap (force TCP endpoints HEALTHY) with real liveness. The whole health pipeline is protocol-agnostic above the probe — agent HTTP GET → health gateway → reflects the per-pod probe cluster's membership. Only the active checker changes: TCP services get a connect-only
TcpHealthCheckto127.0.0.1:<appPort>instead of an HTTP GET;liveness.godrops the #305 skip. A dead TCP app is now detected. 🤖 Generated with Claude Code