From fbae50530a51161eb72fc6974d5ddb7d9525dca1 Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Fri, 27 Nov 2026 00:54:11 -0500 Subject: [PATCH] docs(hubble): record the measured post-change numbers as-read (F10) Memory table now uses the 34 min steady-state sample (333.8/297.1/213.1 MiB against 330.2/309.1/194.5 before the roll), and the verification block carries the actual 30 min window result: rate and increase both 0 on all three nodes, counters flat at 31/31/30 for 30 min with the linode and siriussec rings 100% full. --- docs/hubble-event-loss.md | 42 ++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/docs/hubble-event-loss.md b/docs/hubble-event-loss.md index fb2ca21..e29eab0 100644 --- a/docs/hubble-event-loss.md +++ b/docs/hubble-event-loss.md @@ -85,22 +85,22 @@ memory for headroom the 24 h peak does not justify. The ring only accepts The ring stores `*v1.Event` pointers and keeps the events themselves alive; the delta is bounded by `(16383 - 4095) × retained bytes per event`. Measured with -`container_memory_working_set_bytes{pod=~"cilium-.*",container="cilium-agent"}` -(average of the last 30 min before the roll vs the same 30 min after, all three -agents restarted onto the new config): +`container_memory_working_set_bytes{pod=~"cilium-.*",container="cilium-agent"}`, +averaged over the 30 min before the roll (old 4095 agents) against a 34 min +uptime sample after all three agents restarted onto the new config: | node | before (4095) | after (16383) | delta | |---|---|---|---| -| siriussec | 330.2 MiB | 300.6 MiB | -29.6 MiB | -| linode | 309.1 MiB | 240.2 MiB | -68.9 MiB | -| rpi | 194.5 MiB | 222.6 MiB | +28.1 MiB | +| siriussec | 330.2 MiB | 333.8 MiB | +3.6 MiB | +| linode | 309.1 MiB | 297.1 MiB | -12.0 MiB | +| rpi | 194.5 MiB | 213.1 MiB | +18.6 MiB | -The deltas are dominated by restarting a month-old process (the old agents had -31 d of uptime and allocation growth); the ring itself is in the low single-digit -MiB at this event size. The honest statement is: **no measurable growth above -the restart noise; the largest observed node cost is +28 MiB on the Pi, and -linode (the tightest node, ~2 GiB available) went down.** Rejected alternative: -raising the capacity to 65535 to be safe is 4x this for no measured need. +The deltas straddle zero, i.e. the 12288 extra retained events are inside the +process's own allocation noise at this event size (they are pointers plus the +payloads that were already being allocated; the ring only delays their free). +The honest statement is: **no measurable growth; the Pi, the node with the +least headroom after linode, is +18.6 MiB.** Rejected alternative: 65535 "to be +safe" is 4x this for headroom the 24 h peak does not justify. ### Rollout @@ -152,17 +152,23 @@ window produces false silence, not false noise. ## Verification (live, 2026-11-27) ``` -# counter stops climbing — identical value 8 minutes apart, on all three nodes +# acceptance 1: 30 min window, after the last agent restart (05:19:48Z), read 05:53Z +$ promq 'sum by (node) (rate(hubble_lost_events_total{source="hubble_ring_buffer"}[30m]))' +0 node=rpi / 0 node=linode / 0 node=siriussec +$ promq 'sum by (node) (increase(hubble_lost_events_total{source="hubble_ring_buffer"}[30m]))' +0 node=rpi / 0 node=linode / 0 node=siriussec + +# counter stops climbing — flat for 30 min, with both big rings 100 % full $ promq 'sum by (node) (hubble_lost_events_total{source="hubble_ring_buffer"})' -31 rpi / 31 linode / 30 siriussec (05:20:50Z) -31 rpi / 31 linode / 30 siriussec (05:23:50Z) +31 rpi / 31 linode / 30 siriussec (05:23:47Z) +31 rpi / 31 linode / 30 siriussec (05:53:47Z) + +# ...and the depth is what holds it there, not luck: +# siriussec Current/Max Flows 16,383/16,383, linode 16,383/16,383, rpi 10,685/16,383 # the artefact is gone: 20 status calls + 20 s idle move nothing siriussec before: 30 after 20 status: 30 after +20s idle: 30 -# 30 min window after the last restart (acceptance 1): see the kanban card, -# hubble:lost_events_increase_30m = 0 on all three nodes - # flows still flow, L7 still on $ hubble observe --last 3 # each of the three agents returns flows, incl. http-request -- 2.52.0