Skip to content

Spec ICMP burst sampling: limits, execution budget, and form exposure - #410

Closed
fclairamb wants to merge 1 commit into
mainfrom
feat/icmp-burst-sampling
Closed

fclairamb wants to merge 1 commit into
mainfrom
feat/icmp-burst-sampling

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

Two specs in specs/todos/, from a churn post-mortem. A user deleted his
account believing solidping's sampling floor was one ICMP sample per 10
seconds. It is not, and the reason he thought so is a missing form field.

2026-09-21-01 — limits and the execution budget.
Lowering the interval floor from 100ms to 50ms is free: interval only adds
delay, so a denser burst is a shorter run, not a longer one. But lowering it
alone changes little, because the execution budget never looks at count. The
same timeout value is used both as the per-packet read deadline and as the
whole-execution budget (timeout + 1s), while a burst needs
count × timeout + (count-1) × interval. That works out to a usable timeout of
11ms at count: 10, interval: 100ms.

Worse, performICMPPings appends a failure for every packet it did not reach,
and those land in packets_sent / packet_loss_pct. So a burst that meets real
loss blows its budget, truncates, and reports packets that were never
transmitted as lost
— on the check whose entire purpose is measuring loss.
That half is a bug today, independent of any limit change.

2026-09-21-02 — the form.
The ICMP module declares ownedKeys: ["host"]. The checker accepts six fields;
the form offers one. count and interval have always been API-only, which is
why the user never found them. Includes the round-trip hazard to watch:
assembleSubmittedConfig currently preserves these keys as passthrough, so
adding them to ownedKeys must not silently clear an API-set config.

Spec 01 should land first, or together with 02 — shipping the form over the
current budget defect would hand people a control that produces wrong numbers.

Bounds verified against production with validate_check, not read off the
source: {count:10, interval:"100ms"} valid, count:20 and interval:"50ms"
both rejected.

🤖 Generated with Claude Code

A user churned believing 10s was the sampling floor. count/interval already
exist but the form owns only `host`, and the execution budget ignores `count`,
so any burst that meets loss is truncated and reports inflated packet loss.

Co-Authored-By: Claude Opus 5 <[email protected]>
@fclairamb

Copy link
Copy Markdown
Owner Author

Closing in favor of the batch branch: both specs (ICMP burst limits/budget + form exposure) were merged into batch/2026-09-21 and are being implemented there; the implementation PR supersedes this spec-only PR.

@fclairamb fclairamb closed this Sep 21, 2026
fclairamb added a commit that referenced this pull request Sep 21, 2026
… exposure (#411)

Batch branch for 2026-09-21, implementing three specs (all archived
under `specs/done/2026/09/`):

## Status page sections can now follow a check group (spec
2026-09-20-02)
- Third selector shape `{"checkGroupUid": "..."}` alongside `all` /
`labels`; UID or slug accepted on input, canonical UID stored.
- Deleted-group semantics: the rule matches nothing, managed rows drop
on reconcile (including after group deletion), and the admin payload
exposes `selectorGroupMissing` — now on **both** the section list and
the page-detail payload the editor reads.
- Dashboard: fourth "By group" membership mode, missing-group amber
alerts, publication matcher support, Name → Slug → Membership dialog
ordering, mobile-safe 4-option control, en/fr/de/es locales, docs.

## ICMP burst sampling (spec 2026-09-21-01)
- Limits: `count` 1–600, `interval` 50ms–60s (legacy-valid configs still
validate).
- Split execution budget: per-packet `timeout` is no longer the
whole-burst budget; `BurstBudgeter` sizes it as `count × timeout +
(count-1) × interval` + margin — the truncation/over-reported-loss
defect is gone.
- fping-style concurrent send/collect loop: run time `(count-1) ×
interval + timeout`, independent of loss; unsent packets shrink
`packets_sent` instead of counting as lost; `rtt_ms_jitter` (population
std-dev) computed in the same min/max/avg loop.

## ICMP burst fields in the form (spec 2026-09-21-02)
- `count`, `interval`, `packet_size`, `ttl` surfaced in a collapsed
section with a live one-line explainer; interval gated at `count ≤ 1`;
API-created values survive unrelated edits (round-trip tests); Go
validator stays the single source of bounds.

## QA
- Backend: `make build-backend lint-back test` green; dash0 build/lint
(no new errors), unit tests, docs build green.
- Full dash0 Playwright suite on a fresh side-car test server: **846
passed / 12 skipped** — this gate caught and fixed a real bug (selector
diagnostics missing from the page-detail payload) plus three
never-executed assertions in the group-selector e2e.

Supersedes #410 (spec PR, merged into this branch).

---------

Co-authored-by: Claude Opus 5 <[email protected]>
@fclairamb
fclairamb deleted the feat/icmp-burst-sampling branch October 26, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant