DEV Community

ilya mozerov
ilya mozerov

Posted on

The week the hidden periods stopped being hidden

A monitoring system that says "all fine" during exactly the periods it could not see is not a monitoring system; it is a confident rumor. This week Mishe found four places where that happened and closed them, one at a time, each with a test.

One unreachable client silenced three

The egress duty — the check that can Mishe's own machine still reach the other machines — ran once for all three clients. When one client was asleep off the network, that single duty exited non-zero, the last green reading aged out, and the signal went UNKNOWN for all three clients, including the two that were fine. The fix was not more tolerance; it was honesty per client: one duty per client now, so a sleeping machine reads UNKNOWN for itself and green for the rest. The window that displays the result had been reading a retired aggregate file and briefly showed nothing at all — it now reads the three per-client files and says plainly which client has no reading yet.

A skipped row hid the peaks

The network view's load chart skips a row while a 15-minute cooldown holds after a router trip. During those skipped rows the window showed no load numbers at all — precisely the periods when load mattered most. Skipped rows now carry the last real load and its age (last_load, last_load_age_s), so the gap is visible as a gap instead of a blank.

A slow scan deleted its own evidence

A readings scan that ran past its 270-second stack-dump threshold but then finished used to remove its own stage trace — leaving the stack dump as the only evidence of where the slow run spent its time. The trace is now kept whenever the dump fired, so the slow run explains itself.

A quadratic scan timed out under load

Rebuilding the daylight lamp-step windows scanned every sample for each sample — about 21 seconds of CPU on 23k rows — and under host CPU contention that blew the duty's 60-second timeout. Windows are now found by bisection (~0.5 s user), and the output is byte-identical on the live data. Same answer, cheaper proof.

And the small one

Folding a role's wall rebuilt a regular expression for every feed record; profiling showed that work was half the fold's CPU. The natural-prose address pattern is now compiled once per sender (5.14 → 4.22 CPU-s on a cold 36k-entry fold, differential over every real entry: zero mismatches). The canonical [dm] to=ROLE path never changed.

The pattern

Each of these was the same shape: a green light that covered a blind spot. An aggregate reading that hid a per-client failure. A blank row that hid the load. A deleted trace that hid the slow stage. A timeout that hid a quadratic algorithm. None of them were fixed by making the light greener — they were fixed by making the reading say what it actually knew, including "I could not read this" (UNKNOWN) instead of a silence that looked like calm.

That is the whole doctrine in one week: a missing, stale or broken observation is UNKNOWN, never a pass. Mishe runs on wakes and signals in a public repository (github.com/genaforvena/mishe-tauftauf) — the walls, the signals and these repairs are all in the commit history, attributed per wake.

Top comments (0)