This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
benchmarks: raise 26.10.1's HTTP body limit on the served batch arms, disclose it, and make lean_http say why a refusal broke the pipe - #238
Merged
Conversation
…imit; raise it on the batch arms, disclose it, and make the client say why (#237) The 26.10.1 campaign's served ArcadeDB graph arm failed at sf10, both durability classes, as `Broken pipe`. The server log says the batch load was refused because the request body exceeded `arcadedb.server.httpBodyContentMaxSize` (new in 26.10.1, default 100 MiB; the October pin had no limit). The graph lane streams one POST per load: persons plus KNOWS at sf10 is about 200 MiB, the sf1full message half 1.46 GiB (measured from the lane's own lines), the cross-model lane's 500k-product load about 812 MiB. runner.py: one constant (HTTP_BODY_MAX_BYTES, 64 GiB) applied by _with_http_body_limit to exactly the arms that POST to /api/v1/batch (arcadedb_graph_server, which the l2 and restart lanes share, and arcadedb_e2_server), read back from GET /api/v1/server?mode=default into server_http_body_max_bytes, with a source field and the engine's own default. The loader stays one streaming request. overrides.py: the registered override arcadedb_http_body_limit (carriers, check, sentence, says, companions, not in force on the October pin), and the query cap's `says` gains `query` so the two sentences stay distinguishable. page_check NOT_PRINTED, PROTOCOL.md section 7, CAMPAIGN.md section 7 row 75, FAIRNESS.md F15. lean_http.py: a request that dies while it is being sent (BrokenPipeError, ConnectionResetError) now reads the answer the server already sent and puts its status and first 500 bytes in the ConnectionError. The retry rules are unchanged. Tests: the registry and its carriers against the runner and against the lane sources, the flag on every batch arm with one value above the largest planned body (estimate derived in the docstring), the stamp and its check, the read-back against a stub server, and the client against a fake TCP server that answers 413 and closes while the client is still sending. Closes #237 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Closes #237
The 26.10.1 campaign's served ArcadeDB graph arm failed at sf10 in both durability classes (
[Errno 32] Broken pipe). The server log says the batch load was refused because the request body exceededarcadedb.server.httpBodyContentMaxSize, which is new in 26.10.1 (default 100 MiB; the October pin had no limit). The graph lane streams one POST per load, so every large served bulk load is refused.What changes:
runner.pytakes one constant (HTTP_BODY_MAX_BYTES, 64 GiB, a value that never binds) and applies it with_with_http_body_limitto exactly the arms that POST to/api/v1/batch:arcadedb_graph_server(the l2 lane and the restart lane's graph model share it) andarcadedb_e2_server. The loader stays one streaming request per load. Every other served ArcadeDB arm loads through the command endpoint in small requests and carries no flag, and the embedded arms have no HTTP body.It is declared and disclosed the way the query cap is:
overrides.pyregistersarcadedb_http_body_limit(carriers, a check against the runner's constant, a generated sentence,sayspatterns, companions, and not in force on the October pin, which has no such setting). The runner reads the effective value back fromGET /api/v1/server?mode=defaultintoserver_http_body_max_bytes, withserver_http_body_max_sourceand the engine's own default (schema:database, which the cap uses, does not list server-scoped settings). There is a row in PROTOCOL.md section 7, row 75 in CAMPAIGN.md section 7, and a clause in FAIRNESS.md F15. The query cap'ssayspatterns gainquery, because the new sentence also names a limit and the embedded arm and would otherwise satisfy the cap's gate.The client's blind spot is fixed too. When sending the request dies with BrokenPipeError or ConnectionResetError,
lean_http.pyreads the answer the server already sent and puts its status and first 500 bytes in theConnectionError. The retry rules are unchanged.Largest planned bodies, measured from the lanes' own lines: sf1full message half 1.46 GiB (3,163,871 vertices and 13,581,644 edges), e2 at 500k products 812 MiB, sf10 persons and KNOWS about 200 MiB. 64 GiB is 44 times the largest.
Laptop proof on
arcadedb-c25:26.10.1with the lane's ownArcadeGraphServer.build(160.9 MiB in one request): without the flag the load is refused and the fixed client now saysthe server had already answered 413 Request Entity Too Large: ... Configure 'arcadedb.server.httpBodyContentMaxSize' to increase the limit; with the runner's own container environment the same load succeeds (85,000 persons and 1,802,817 KNOWS, equal to theexpectedEdgeCountsent), andobserve_serverstamps 68719476736 with the engine's default 104857600.Tests: the full experiments suite passes (565 passed and 20 skipped with
BENCH_ENGINE_COMMIT=417314c18and the e4 artifact directory present; origin/main gives 551 passed and 20 skipped). Without those two, 46 tests fail or error identically on origin/main and on this branch. New tests cover the registry against the runner and against the lane sources, the flag on every batch arm with one value above the largest planned body, the stamp and its check, the read-back against a stub server, and the client against a fake TCP server that answers 413 and closes while the client is still sending (the tests fail on the old client).This changes nothing the running campaign has already measured. Mini picks it up at its next
git pull, which is for the maintainer to time.🤖 Generated with Claude Code
https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi