fix(pipeline): soften idle keepalive backoff#1325
Closed
yyoyoian-pixel wants to merge 3 commits into
Closed
Conversation
Previous cap of 2s caused ~1200 requests/5min idle with 15 deployments. New escalation: 20ms→80ms→200ms→500ms→2s→5s→10s→20s. After 15+ consecutive empties, sessions poll every 20s. Estimated idle reduction: ~1200/5min → ~200/5min. Zero latency impact on active traffic — select! races timer against client reads, so real data fires immediately. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…mpties The previous idle_tier > 1 threshold stopped polling after just 2 empty responses, starving server-initiated data (push notifications, responses) until the client happened to send something. This widens the ramp so the tunnel keeps polling through early idle tiers and only goes full-stop after 5 consecutive empties. Any server response now fully resets idle state instead of barely recovering on small payloads. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
idle_tier > 1(2 empties) toidle_tier > 4(5 empties) — the tunnel was going silent too fast, starving server-initiated dataidle_tierto 0 — previously small payloads (<1KB) barely recovered idle stateall_legacygate from fix(pipeline): stop idle keepalive polls, reduce idle requests #1322 so mixed fleets keep polling for long-poll peersTest plan
🤖 Generated with Claude Code