Repository navigation
Conversation
Translate a publication HTTP capture into cores needed at chosen request rates, with optional headroom and a core budget.
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.
Summary
Add
fleet-size/to translate a publication page-load capture into cores needed at chosen request rates:cores = (CPU ms/response) × (target responses/s) / 1000Optional
--headroom(a fraction;0.3is 30%) and--max-coresto flag cells over a budget. This is a translation of the retained one-core CPU/response column, not a multi-core run.Why
The HTTP capacity page only prints cores for 10,000 responses/s. A different rate, or a reserve on top of the measured CPU cost, currently means recomputing that table by hand. Keeping the formula on the publication capture, and refusing smoke or generator-limited files, makes the 10,000 responses/s table a special case of the same command.
How to try it
The default invocation matches the published 10,000 responses/s table.
--jsonwrites the structured plan. Exit status2means at least one cell exceeded--max-cores.Notes
node --test fleet-size/fleet-size.test.mjs.BENCHMARK_PROTOCOL.md, andpage-load/README.mdpoint atfleet-size/.package.jsonor the HTTP/renderer source lists.Demo