Repository navigation
Peer RTT histogram mixes two probers with different connection reuse (stream ≈ 3 RTT, pipeline ≈ 1 RTT) #22853
Replies: 2 comments
|
The SRTT part is visible in the exact Your reported p99 also follows from the bucket widths. The 99th-percentile rank is 19.8 of 20, with 10 observations below 102.4 ms and the other 10 somewhere in the next bucket. Prometheus interpolates linearly for classic histograms, so it puts the estimate at For a site-specific rule while the metric is shared, a ratio above an existing bucket boundary is directly measurable. For example, |
Yes, on both ends. It just never got split out in the metric.
This has come up before. #11100 traced the bimodal histogram to the two probers. #11137 added nearly your label (
One catch if a label lands: the mixin alert doesn't |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Peer RTT histogram mixes two probers with different connection reuse (stream ≈ 3 RTT, pipeline ≈ 1 RTT), so p99 > 150 ms fires on healthy links above ~35 ms
Hi etcd team, I'd like to check whether the following is intended. I may have misread the code.
Environment: etcd v3.6.6, 3 members, peer traffic over TLS 1.3, network RTT between members 2.7 / 23.7 / 35.7 ms (ping,
ssandmtragree, 0% loss).What I see: every link records 20 samples per 5 min, split exactly 10 and 10. On the 35.7 ms link, cumulative bucket counts are 10 at ≤ 0.0512, 10 at ≤ 0.1024 and 20 at ≤ 0.2048. The 15 m mean is ~75 ms, and
histogram_quantile(0.99, …)returns 0.2028 s. A capture shows a new TLS 1.3 connection every 4.0 s in each direction, and one probe takes ~111 ms from SYN to reply (about 3 round trips).Cause (v3.6.6):
rafthttp/transport.go:145-146, 313-314: apipelineProberand astreamProberper peer, both feeding the samerttSechistogram.rafthttp/util.go:51: the pipeline round-tripper is built with timeouts0, 0, sotimeout_transport.go:39setsMaxIdleConnsPerHost = 1024and the connection is reused (~1 RTT).rafthttp/util.go:60: the stream round-tripper is built withConnReadTimeoutandConnWriteTimeout, sotimeout_transport.go:36setsMaxIdleConnsPerHost = -1and every probe dials a fresh connection (~3 RTT: TCP, TLS 1.3, request).rafthttp/probing_status.go:36-37, 92: probes run every 4 s, and every 30 s each prober observesSRTT(). Two probers × 1 sample per 30 s gives the 20 samples per 5 min.Impact: the metric reads like network RTT, but half the samples include connection setup. On a link above ~34 ms RTT the slow samples exceed the 102.4 ms bucket edge, p99 interpolates above 150 ms, and the stock "member communication slow" alert fires on a healthy link.
Questions:
prober="stream|pipeline") or a separate metric, so users can alert on each? A note in the metric help text would also help.I haven't verified how
SRTTis smoothed inxiang90/probing. I can share sanitised captures or test a patch. Thanks for reading.Investigation sponsored by Obmondo.com
All reactions