Add benchmark rate-limit bypass flag#4
Open
shaiananvari8 wants to merge 1 commit into
Open
Conversation
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
Adds an explicit opt-in benchmark rate-limit bypass mode for
tools/benchmark.pyso load-test runs can request operator-approved bypass behavior without changing default benchmark traffic./claim #1
Changes
--bypass-rate-limitand--bypass-rate-limit-headerCLI options.X-ZeroEye-Benchmark-Bypass-Rate-Limit: truerequest header through latency, throughput, stress, soak, and spike workers when the bypass flag is enabled.docs/OPERATIONS.md.tools/validate_benchmark_rate_limit_bypass.pyfor focused local validation.Testing
python -m py_compile tools/benchmark.py tools/validate_benchmark_rate_limit_bypass.pypassed using the bundled Python runtime.python tools/validate_benchmark_rate_limit_bypass.pypassed.python tools/benchmark.py --endpoint http://127.0.0.1:9/health --bypass-rate-limit --concurrency 1 --timeout 0.1 latency --requests 1completed and showed the bypass header request path. The endpoint was intentionally closed, so the single request failed as expected while the CLI completed successfully.git diff --checkpassed with only Git's Windows line-ending normalization warnings.python build.py -m backendwas run with a workspace-local home so diagnostic packaging could complete. The backend module failed locally becausecargois not installed in this Windows environment, and the generated diagnostic artifacts are committed:diagnostic/build-94e0fb08.jsonanddiagnostic/build-94e0fb08.logd.Checklist
LLM assistance disclosure: implemented with OpenAI Codex assistance and manually reviewed before submission.