Production load test findings

k6 2.4.0Updated Dec 1, 2026

Summary

Using 1,000 QA accounts in production, we sent 1,000 workout-generation requests at 200 journeys/min and another 1,000 at 250; all returned HTTP 201. A separate read-only test at 1,000 VUs recorded two GET /user/preferences timeouts at k6's 10-second limit. Backend monitoring separately reported 150–190 Define Session timeouts per five minutes and saved-session fallbacks, but those events are not correlated with the k6 requests. HTTP 201 alone does not confirm a fresh generation.

1. Backend-reported Define Session timeouts

The backend alert summary reported 150–190 Define Session timeouts every five minutes during the load-test window, a 10-second engine timeout, and a saved session returned as fallback. It also quoted engine CPU at about 25%.

Source
Monitoring alert summary shared in Slack. The underlying metric chart/export, exact bucket timestamps, and trace IDs were not included with the k6 artifacts.
Reported engine behavior
150–190 timeout events per five-minute interval; 10-second timeout; saved-session fallback served.
Reported CPU
About 25%. The metric source, statistic (average or peak), instance coverage, and exact time bucket are not available here.
k6 response behavior
All 1,000 generation POSTs in each of the two high-rate runs returned HTTP 201. The script checked the status code and did not classify fallback content as a failure.
Account context
The 1,000-account pool was created for this test. The tester reported that only the test team was using the app during these runs. No real-user IDs or account identifiers are included in this report.
Important: “0 HTTP 5xx” does not mean the generation engine succeeded every time. If the API returns HTTP 201 after serving a fallback, k6's current status-only check records that request as successful.

Rate is unconfirmed: 15–19% applies only if the reported timeout count covers the same 1,000 generation attempts and each POST maps to exactly one engine attempt. The run starts and ends cross standard five-minute boundaries; the alert buckets and engine-attempt denominator have not been matched to k6.

2. Generation runs to correlate with the alert

These are the two production stages that each issued 1,000 requests to POST /ai-workout/generate. The arrival rate is generations per minute; it is not the number of simultaneous active users.

Swipe horizontally to see all columns.

Run / rateUTC windowManagua local timeGeneration requestsHTTP resultPeak active VUsGeneration p95
200 journeys/min × 5 min
prod-strong200x5-20261130-01
Nov 30, 23:38:39.127–23:43:39.614 UTCNov 30, 17:38:39–17:43:39 (UTC−6)1,000 POSTs
6,000 total requests
1,000 × 201
0 k6 HTTP failures
9806.6 ms
250 journeys/min × 4 min
prod-strong250x4-20261130-01
Dec 1, 00:07:17.007–00:11:17.771 UTCNov 30, 18:07:17–18:11:17 (UTC−6)1,000 POSTs
6,000 total requests
1,000 × 201
0 k6 HTTP failures
9990.2 ms

Each journey used a unique QA account once in that run, issued four reads, one generation POST, and one post-generation workout-list read. The script rotated valid workout profile inputs, including duration, environment, target muscles, and session equipment. It did not retry failed requests.

Candidate buckets only: if monitoring uses UTC-aligned five-minute buckets, the 200/min run intersects 23:35–23:40Z and 23:40–23:45Z; the 250/min run intersects 00:05–00:10Z and 00:10–00:15Z. Match against the alert's actual timestamps and timezone, including engine work that completed after the HTTP request.

3. Separate k6 finding: read-only burst timeouts

This was a different profile from the workout-generation runs. It used 1,000 VUs to send four authenticated, read-only GETs per account in sequence. No workout generation, writes, or retries occurred.

Peak load
1,000 VUs
Observed
3,579 of 4,000 planned requests before k6 aborted
Timeouts
2 status-0 timeouts, both on GET /user/preferences
Client timeout
10 seconds

Run prod-readonly-step1000vus-20261201-02 · 2026-12-01 13:42:08.350–13:42:18.369 UTC · 07:42:08–07:42:18 Managua (UTC−6).

Swipe horizontally to see all columns.

EndpointRequests observedHTTP / timeout resultp95p99Max
GET /user/preferences978976 × 200 · 2 × status 0 timeout3,628.7 ms7,302.5 ms7,838.7 ms
GET /equipment/categories906906 × 2002,977.1 ms3,020.8 ms7,534.2 ms
GET /equipment/all862862 × 2002,947.1 ms5,323.6 ms7,431.6 ms
GET /ai-workout/my-workouts833833 × 2004,062.5 ms4,158.2 ms6,322.7 ms
Observed client timeouts: Two GET /user/preferences requests hit k6's 10-second timeout (error 1050, status 0) at 13:42:18.355186Z and 13:42:18.357073Z. k6 received no HTTP response; the data does not identify which component delayed it.

The fail-fast abort left 421 planned requests unissued; they are not additional failures. The preceding 750-VU stage completed 3,000 requests with HTTP 200. Stages from 800 to 999 VUs were not tested, so the results do not establish an exact capacity threshold.

Health-check limit: /version returned HTTP 200 at 13:46:43.724Z with the same build, about 4 minutes 25 seconds after this stage ended. That confirms the version endpoint answered at that later time; it does not establish that all backend components were healthy during the burst.

4. Backend evidence that would close the gap

The current evidence establishes the HTTP response seen by k6 and the separate timeout count reported by monitoring. It does not connect those two views to the same engine attempts.

Correlate by run and time bucket

  • For each generation window, count incoming POST /ai-workout/generate requests and Define Session engine attempts.
  • For the same five-minute buckets, separate completed generations, engine timeouts, and saved-session fallbacks.
  • Include request/trace IDs where retained, or aggregate by minute if IDs are unavailable.
  • State whether a fallback still returns HTTP 201 and whether the response identifies fallback use.

Locate where time was spent

  • Engine duration percentiles and timeout count, plus queue depth and active worker/concurrency counts.
  • Latency and errors for downstream model/AI calls and database or cache operations.
  • Connection-pool wait/saturation, worker restarts, and per-instance CPU/memory for the exact windows.
  • For the 25% CPU value, identify the metric, aggregation, instance coverage, and aligned time range.
  1. Run the same 200/min and 250/min buckets against the alert timeline. The UTC and Managua windows are listed above.
  2. Reconcile denominators. Compare engine attempts, timeout events, fallbacks, and generation POSTs before calculating an error percentage.
  3. Make fallback visible to the test. Expose a response field/header or metric that distinguishes a fresh generation from a saved-session fallback, then count fallbacks as unsuccessful generations even when HTTP is 201.
  4. After a fix, repeat the same rate stages. Compare the same request counts, engine outcomes, response timings, and backend metrics.

Root cause is not confirmed. A CPU reading near 25% alone cannot rule out queueing, worker concurrency limits, or waiting on a downstream service. Those are investigation paths, not conclusions from the current report.

5. Scope and production data impact

Test scope

  • Production API build 973b6c7fe746ed4f582c75c9e41e72facc283d2c; k6 2.4.0.
  • 1,000 pre-created QA accounts. The test script did not call login, registration, password recovery, chat, scans, cardio, uploads, or crew routes.
  • High-rate journeys varied valid workout parameters and each made one generation POST.
  • The latest 25–1,000 VU stepwise run was read-only and performed no writes.

Recorded write impact

  • Across the report's campaign, 4,042 generation POSTs were recorded: 4,040 returned HTTP 201; two returned HTTP 400 because the local test profile had a stale Stairs equipment ID.
  • The stale test ID was corrected before the 200/min and 250/min stages; each then generated 1,000 HTTP-201 sessions.
  • k6 did not delete generated sessions or restore usage. Persistence or quota impact of the two HTTP-400 attempts is unknown.
  • No account emails, user IDs, access tokens, API keys, or raw per-account data are included here.
How to interpret the load results
  • The 200/min and 250/min runs completed 1,000 journeys and 6,000 HTTP requests each with no k6 HTTP failures; all generation POSTs returned 201.
  • The separate paced preferences-only ramp reached 1,000 load VUs and completed 2,872 preference reads plus 67 version checks with no failed HTTP requests. It had one read per account per minute, so it is not directly comparable to the synchronized four-read burst.
  • In the stepwise read-only series, all requests returned HTTP 200 through 750 VUs. Overall request p95 was 6.5 s at 500 VUs and 5.3 s at 750 VUs despite no HTTP errors; 1,000 VUs produced the two preference timeouts. These timings show slowdown but do not locate its cause.
  • The earlier pair of immediate 1,000-VU multi-endpoint bursts also timed out on preferences: the raw k6 built-in http_reqs time series records 154 and 64 status-0 timeouts (218 total) across 4,704 observed requests. Custom endpoint failure counters differ because both runs aborted with requests in flight; the built-in HTTP samples are used for this timeout count. These bursts are separate from the generation-rate stages and the later read-only step sequence.

Embedded summary JSON

This is one self-contained HTML file with no links to separate JSON or NDJSON files. The viewer contains a curated summary of selected k6 runs and the reported alert, not the original raw k6 exports. Copy or download a sanitized JSON summary if the backend needs a separate data file.

The JSON pane can scroll horizontally on a phone.


      
      

The engine-alert dataset is marked as reported, not independently verified. Account identifiers and credentials are deliberately omitted.