Admission-shedding control panel

Live platform.pressure readout + in-page load generator. When pressure crosses the admission threshold, ctx.shed('background') returns true and the entry below shows the real reason. Use "Simulate shed" to demo the surface without driving real load.

Current pressure

... WS: disconnected
subs/conn
0.00
publish/s
0
heap
0%
RSS MB
0

publishRate (last 30s)

Waiting for first tick...
peak: 1 pub/s

Load generator

Each button publishes N no-op events on demos:pressure:noise. Small bursts (≤200) fire in one wire-batched call; larger bursts spread over ~1.5s so the adapter's 1Hz pressure sampler observes a sustained rate across multiple windows. After the burst, the handler checks ctx.shed('background'); if it fires, a real shed event lands in the log below. The publishRatePerSec threshold is set to 500/sec in svelte.config.js so +1000 / +5000 reliably trip shedding.

Shed log (0)

  • No shed decisions yet.