404human Projects Writing Build logs Learning Books Progress
Rust · Zola
zsh · 404human@dev:~ Tab complete · ↑↓ history · type help

Service Monitor build log M1 · 1.2

Checkpoint 1.2: the coordinator that refuses to queue

Slots fire on the interval grid under try_acquire bounds — one attempt per slot, no overlap, no catch-up; a saturated worker records 'missed', never a queue storm.

Published
Read time
1 min read
Kind
experiment
at a glance
Goal
Slots fire per interval and results are collected — one attempt per slot, no overlap, no catch-up, stale generations dropped.
Built
Interval-grid coordinator with try_acquire concurrency bounds (20 global, 2 per origin, 1 per monitor); a probe still running at the next tick records the slot as missed.
Result
3 end-to-end tests in tests/schedule.rs · saturated workers → missed rows, never a queue storm
Code
akira-shirase-oss/monitoring-service · main @ bf13126

What changed: every monitor gets a slot on the interval grid, and the concurrency bounds — 20 global, 2 per origin, 1 per monitor — are try_acquire, not queues. When a probe is still running at the next tick, that slot is recorded as missed, never parked for later.

The decision that matters: a monitor under pressure degrades honestly instead of queueing attempts and then stampeding the target the moment it recovers. Most schedulers hide load by deferring it; this one reports it. missed is a first-class committed outcome — the system saying “I was too busy to look” as data, not silence.

Proof: 3 end-to-end tests in tests/schedule.rs — saturated workers produce missed rows, never a queue storm.