Repository navigation
fix(client): time probe RTT on the open connection, log lane coverage - #2248
Merged
Merged
Conversation
Probe RTT timed connect + handshake + hole punch, so a cold dial to a nearby holder read 200-330 ms while a peer with a warm connection read ~30 ms. On a testnet bundle pull of Mistral 7B this made proxy warming route through lon1 "instead of the best holder (300.8ms)" although nbg1 and fra1 hold the blob ~30 ms away. - probe: time the request/response exchange only, then wait up to 500 ms for hole punching to select a direct path and take its RTT when lower. Cold probes now match ping (nbg1 35 ms, lon1 15 ms, fra1 55 ms, bcl 115 ms). ADR 005 negative updated to match. - scheduler: log the first plan and each lane's block coverage at debug, so a range that waits on one holder can be traced to coverage. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Code Coverage OverviewLanguages: Rust Rust / code-coverage/cargo-llvm-covThe overall line coverage in commit 00dabf2 in the Show a line coverage summary of the most impacted files.
|
6 tasks done
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.
Why
A testnet
decdn bundle pullof Mistral 7B (29 GB) from a UK client showed two problems:probe_oncemeasured connect + TLS handshake + relay + hole punch. A cold dial to nearby holders read 200-330 ms, while a peer with a warm connection read ~30 ms. Proxy warming then routed through lon1 "instead of the best holder (300.8ms)", even though nbg1 and fra1 hold the blob about 30 ms away.What
probe: times only the request/response exchange on the open connection. It then waits up to 500 ms for hole punching to select a direct path, and uses that path's QUIC RTT when it is lower. The ADR 005 negative now describes this.scheduler: logs the first plan (pending byte runs) and each lane's block coverage at debug.Evidence
Cold
decdn probeagainst testnet nodes, before and after, with ICMP ping for comparison:A peer that stays on the relay for longer than the grace still reads its relay RTT. The ADR documents this.
Test plan
cargo nextest run --workspace: 4338 passedcargo clippy --workspace --all-targets --all-features,RUSTDOCFLAGS="-D warnings" cargo doc🤖 Generated with Claude Code