--load: multi-process load generator (--load-workers) for higher throughput

Aperta
#2,914 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript

Direzione di ricerca

Start by reading issue #2838 and its item 6 for the histogram and existing load generator guarantees. Trace the shared engine and the --load command entry point, then identify how concurrency, rate, request budgets, worker control, and result thresholds are handled. Done means --load-workers merges worker results into one summary while preserving the stated guarantees.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement v2
The problem

The load generator runs in one Node process. In the #2838 author's measurements it trailed a bare SDK client by ~18% throughput at concurrency 10–50, so at high load the generator, not the server, can become the bottleneck.

Proposal

--load-workers <n> forks n generator processes, each running the shared engine with a share of the concurrency, rate and request budget, and merges their results into one summary. The histogram from #2838 (item 6) makes the latency merge exact. The merged summary must keep every current guarantee: the rate is spread across processes, the circuit breaker and Ctrl+C reach all workers, and thresholds judge the merged result.

Split out of #2838 (item 9, "further ideas"), which covered items 1–8. Filed as follow-up work rather than built there, at the maintainer's request.

Lingua principale
TypeScript
Stelle
11.2k
Fork
1.6k
Merge medio
3h 52m
PR unite (30g)
142

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelcontextprotocol/inspector

Tutte le issue di modelcontextprotocol/inspector

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.