docs: socket-analysis guide — RTT bands & clustering for data teams#42
Merged
Merged
Conversation
New docs/socket-analysis.md: a methodology guide for finding the natural RTT bands statistically (min_rtt on a log scale; GMM+BIC for adaptive, drift-aware bands; Jenks/KDE simple alternative; Snowflake quantile quick-win), with labeling/validation against dest ASN/geo and per-DC/over-time tracking. Adds multi-feature clustering (HDBSCAN) and other groupings (throughput, loss, congestion algo, per-ASN, diurnal), a worked SQL→Python example, and a pitfalls section (per-socket grain, cumulative counters, µs units, survivorship, app-limited throughput, drift). Cross-linked from the docs hub and parquet doc. Co-Authored-By: Claude Opus 4.8 <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.
Adds
docs/socket-analysis.md— the analysis companion to the Parquet docs, for a data/analytics team that wants to find the natural RTT bands (and other socket groupings) in the fleet statistically.What it covers
min_rtt(not srtt) on a log scale.socket_cookie+hostname+netns), filtering (ESTABLISHED, loopback, survivorship), unit conversions, cumulative-counter handling, deriving the DC dimension.NTILE/APPROX_PERCENTILE(quick win, with the quantiles≠modes caveat); labeling/validating againstdest_asn/geo/port; tracking centroids per (DC, day).{log min_rtt, log throughput, retrans_rate, rel jitter, log cwnd}via K-means/GMM/HDBSCAN (recommended — finds the outlier band as noise); validation.Notes
parquet-format.md.🤖 Generated with Claude Code