Commit Graph
3 Commits
Author SHA1 Message Date
Noel Sabia 8a13257a6e chore: normalize load timestamps and mark local test credentials 2026-11-14 06:44:44 +01:00
Noel Sabia b3146e0862 docs: record 120-client SSE load, train and fallback results
Add staffing timing to the integration harness and commit the verified
run: small train 171ms, forecast train 3.6s, SSE propagation 15ms,
120/120 clients for 300s with 0 drops and p95 5.6ms, 20 heartbeats at
15s, FastAPI-down fallback from the snapshot, and recovery in 1.6s.
2026-11-14 06:43:30 +01:00
Noel Sabia ac7ceca7ec test: repeatable integration harness and 120-client SSE load tool
Add scripts/integration.sh, which starts the real FastAPI and Go API,
trains small and forecast through POST /api/train, checks SSE scenario
propagation, heartbeat, reconnect, then kills FastAPI to verify snapshot
and last-good forecast fallback before restarting it for recovery.

Add scripts/sse-load, a standard-library load generator that holds 120
concurrent SSE streams for five minutes, posts scenario changes, records
p50/p95/p99 event latency, drops and heartbeat cadence, and exits
non-zero when a contract threshold is missed. Add unit tests, make
targets and README documentation.
2026-11-14 06:33:29 +01:00