Skip to content

docs(openspec): amend the large deploy body of add-load-tests - #1380

Merged
TheMeinerLP merged 2 commits into
mainfrom
docs/openspec-amend-load-test-large-body
Nov 28, 2026
Merged

TheMeinerLP merged 2 commits into
mainfrom
docs/openspec-amend-load-test-large-body

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

The proposal for the load test suite promised that the 200 MB deploy would be streamed from the generator in chunks. k6 cannot send
a streamed body, so the spec could not be built as written. Each virtual user would hold its own full copy of the 200 MB body, and
the load generator would run out of memory before Ingot was under any real load. The numbers would then describe the generator,
not the server.

This amendment changes what is measured. The body is generated for each iteration, sent once and released. The 200 MB size runs
with a concurrency cap that comes from the memory limit of the generator pod, and a run refuses to start when that cap does not
fit. Generating the body happens before the request, so the measured request time leaves it out. The code follows in a separate
pull request.

Closes nothing, and changes no server code, image, chart or configuration.

Type of change

  • docs - documentation only
  • fix - bug fix
  • feat - new feature
  • refactor - internal change without behaviour change
  • perf - performance improvement
  • test - tests only
  • build / ci / chore - tooling, dependencies, pipelines
  • Breaking change (configuration, API or behaviour that existing deployments rely on)

How was this tested?

  • openspec validate add-load-tests --strict --no-interactive reports the change as valid.
  • git diff origin/main --stat lists only files under openspec/changes/add-load-tests/.
  • No en dash or em dash appears in the added lines.
  • The k6 request body type was checked in the installed @types/k6 (RequestBody accepts a string, an object or an ArrayBuffer,
    and no stream), which is the fact the amendment rests on.

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md (English, imperative, one of feat, fix, docs, refactor, test, build, ci, chore, perf)
  • Tests cover the change, or the change is not testable and I explained why above (not applicable: OpenSpec text only)
  • ./gradlew build passes locally (not applicable: no Kotlin or build change)
  • Documentation and configuration samples are updated if the change is user-facing
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

The spec asked for the 200 MB deploy body to be streamed in chunks and
not held per virtual user. k6 cannot send that: k6/http accepts a
request body only as a string, an object or an ArrayBuffer, and every
virtual user keeps its own copy of what it holds. The load generator
would hit its own memory limit before the Ingot pod it measures, so the
number would describe the generator, not Ingot.

D10 now generates the body per iteration, sends it once and drops it,
so at most one body exists per in-flight request. The 200 MB size gets
its own executor whose concurrency is capped by the memory limit of the
generator pod, and the run refuses to start when the cap does not fit.
Generation happens before the request, so the measured request duration
excludes it. The code is group 9 of tasks.md and ships as fix(loadtest).
Task 9.4 named task 9.9 as the source of the memory values, but the
measurement is task 9.10, which runs after the code is in place.
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 4a230f3 Nov 28, 2026
41 checks passed
@TheMeinerLP
TheMeinerLP deleted the docs/openspec-amend-load-test-large-body branch November 28, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant