Repository navigation
docs(openspec): amend the large deploy body of add-load-tests - #1380
Merged
Merged
Conversation
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.
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 onlyfix- bug fixfeat- new featurerefactor- internal change without behaviour changeperf- performance improvementtest- tests onlybuild/ci/chore- tooling, dependencies, pipelinesHow was this tested?
openspec validate add-load-tests --strict --no-interactivereports the change as valid.git diff origin/main --statlists only files underopenspec/changes/add-load-tests/.@types/k6(RequestBodyaccepts a string, an object or anArrayBuffer,and no stream), which is the fact the amendment rests on.
Checklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally (not applicable: no Kotlin or build change)