You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
proxy: the 1 s app connect_timeout (#1122) fires on loopback when the node is CPU-starved — 111 destination 503 UF in two handoff brackets, each retry costs ≥1 s #1128
Soak 2026-10-02 (main 231498f): the destination proxies logged 111 × 503 UF connection_timeout to 127.0.0.1:8080 (w04 37, w05 74), all inside the two CPU-starved handoff brackets (#1093: 05:31Z on w04, 06:54Z on w05) and none attributable to pod teardown — the case #1122 was written for. A loopback connect normally completes in microseconds; under run-queue starvation the Envoy worker does not get to process the connect completion within 1 s. All 111 were retried by the source and k6 saw 0 failures, but each retry adds ≥1 s, which is what pushes the node-local prober (2 s budget) into a timeout.
Options: keep 1 s (it is what makes pod teardown hitless) and fix the starvation (#1093); or make the timeout count only from when the worker actually ran (not possible in Envoy config); or 1.5 s with the CNI DEL hold raised to match (readyProbeDelTimeout >= 2*AppConnectTimeout is pinned by a test). Decide after #1093's 2-worker change — if the starved brackets disappear this needs nothing. Evidence: session scratchpad soak-nightly-1002/GRADE.md.
Closing: this is a symptom of #1093 (CPU oversubscription during a handoff), not a defect of its own. Any timeout is a bet on scheduling latency, and on a 4-core node that is 99–100% busy something loses it; the 111 destination 503 UF were all retried by the source (k6 0 failures), which is the trade #1122 chose on purpose.
Correction to the mechanism stated above. "The Envoy worker does not get to process the connect completion within 1 s" is probably wrong: once the worker runs, the event loop handles a completed connection before an expired timer. The more likely cause (not verified — the listen-overflow counters live in the pod's network namespace and are not exported) is the starved APP not calling accept() fast enough: its listen queue fills, the kernel drops the SYN, and Linux retransmits it after exactly 1 s (initial RTO), i.e. just past the timeout.
The one sizing question that remains is recorded on #1093: a 1 s connect timeout equals the kernel's first SYN retransmit, so it has no tolerance for a single dropped SYN; ~1.5 s would survive one retransmit but needs the CNI DEL hold to grow from 2 s to 3 s (readyProbeDelTimeout >= 2*AppConnectTimeout). Decide after the 2-worker change — if the starved brackets disappear, nothing is needed. Capacity guidance goes into the runbook.
Activity
bpalermo commentedon Oct 2, 2026
Closing: this is a symptom of #1093 (CPU oversubscription during a handoff), not a defect of its own. Any timeout is a bet on scheduling latency, and on a 4-core node that is 99–100% busy something loses it; the 111 destination
503 UFwere all retried by the source (k6 0 failures), which is the trade #1122 chose on purpose.Correction to the mechanism stated above. "The Envoy worker does not get to process the connect completion within 1 s" is probably wrong: once the worker runs, the event loop handles a completed connection before an expired timer. The more likely cause (not verified — the listen-overflow counters live in the pod's network namespace and are not exported) is the starved APP not calling accept() fast enough: its listen queue fills, the kernel drops the SYN, and Linux retransmits it after exactly 1 s (initial RTO), i.e. just past the timeout.
The one sizing question that remains is recorded on #1093: a 1 s connect timeout equals the kernel's first SYN retransmit, so it has no tolerance for a single dropped SYN; ~1.5 s would survive one retransmit but needs the CNI DEL hold to grow from 2 s to 3 s (
readyProbeDelTimeout >= 2*AppConnectTimeout). Decide after the 2-worker change — if the starved brackets disappear, nothing is needed. Capacity guidance goes into the runbook.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr