inspector icon indicating copy to clipboard operation
inspector copied to clipboard

--load: tracking list of enhancements (progress, time series, warm-up, more gates, raw samples, histogram, open-loop)

Open CloneOfAlex opened this issue 1 month ago • 3 comments

Which client?

All / shared core

The problem

--load reports one aggregate summary at the end of a run. Long runs are silent while they run, transient problems (a GC pause, a slow leak) vanish into one p99, warm-up skews short runs, only two thresholds exist, the per-call data cannot be exported, and memory grows with every call. These limit its use for longer and CI runs.

Solution you have in mind (optional)

  1. Progress — a one-line stderr status every few seconds (completed, ok, errors, current rate, rolling p50/p99); off with --quiet.
  2. Time series — per-interval buckets (--load-interval 1) with completions, errors and p50/p99 per bucket.
  3. Warm-up — --load-warmup <sec> excluded from the statistics.
  4. More percentiles and gates — p95 and p99.9 in the summary; --load-max-p50, --load-max-p95, --load-min-throughput.
  5. Raw samples — allow --output with --load to write NDJSON per call (start offset, latency, outcome, message); today it is rejected.
  6. Bounded memory — every latency is kept in an array and copied to sort; an HDR-style histogram keeps memory constant for multi-hour runs.
  7. Readable text output — without --format json the summary is the same JSON; a short table would suit a terminal.
  8. Open-loop mode — --load-open-loop: start on the rate grid regardless of in-flight calls and measure latency from the scheduled start, exposing queueing the current design hides.
  9. Further ideas — compare against a saved baseline (--load-baseline prev.json, fail on regression %); a load panel in the web UI on the shared core engine; session-churn mode (connect, call, disconnect per worker); notification fan-out load (resources/subscribe); a multi-process generator (--load-workers) — a single process trailed a bare SDK client by ~18% throughput at concurrency 10–50 in my measurements.

Alternatives or workarounds you have tried

External tools (k6, custom scripts), which lose the Inspector's transport/auth/OAuth setup — the reason --load was added in #2439.

Already built it locally?

No response

Before you submit

  • [x] I searched existing issues and this is not a duplicate.
  • [x] This is a request for the Inspector itself, not for the MCP specification or an SDK.

CloneOfAlex avatar Oct 28 '26 23:10 CloneOfAlex

Triage: Priority Low (total 4)

  • Severity 2 — --load reporting improvements for long and CI runs; current summary works
  • Urgency 2 — wanted eventually, nothing blocked on it
  • Bonuses: none (no milestone, assignee, epic, engagement or reporter-set priority)

Board: #28, Status Incoming (awaiting maintainer review — no milestone yet).

cliffhall avatar Oct 29 '26 03:10 cliffhall

Item 9 ("further ideas") is out of scope for this issue and is filed as follow-ups in v2.16.0:

  • #2910 compare against a saved baseline (--load-baseline)
  • #2911 web load-test panel on the shared engine
  • #2912 session-churn mode
  • #2913 notification fan-out load
  • #2914 multi-process generator (--load-workers)

Items 1–8 will land here.

cliffhall avatar Nov 05 '26 10:11 cliffhall

Shipped across #2915 (items 4, 6), #2916 (items 1–3) and #2917 (items 5, 7, 8; merge c6a98075). Item 9 is tracked in #2910–#2914.

cliffhall avatar Nov 05 '26 14:11 cliffhall