Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

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
tae898 merged 1 commit into
mainfrom
fix-served-body-limit
Oct 6, 2026
Merged

tae898 merged 1 commit into
mainfrom
fix-served-body-limit

Conversation

@tae898

@tae898 tae898 commented Oct 6, 2026

Copy link
Copy Markdown

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 exceeded arcadedb.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.py takes one constant (HTTP_BODY_MAX_BYTES, 64 GiB, a value that never binds) and applies it with _with_http_body_limit to exactly the arms that POST to /api/v1/batch: arcadedb_graph_server (the l2 lane and the restart lane's graph model share it) and arcadedb_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.py registers arcadedb_http_body_limit (carriers, a check against the runner's constant, a generated sentence, says patterns, companions, and not in force on the October pin, which has no such setting). The runner reads the effective value back from GET /api/v1/server?mode=default into server_http_body_max_bytes, with server_http_body_max_source and 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's says patterns gain query, 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.py reads the answer the server already sent and puts its status and first 500 bytes in the ConnectionError. 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.1 with the lane's own ArcadeGraphServer.build (160.9 MiB in one request): without the flag the load is refused and the fixed client now says the 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 the expectedEdgeCount sent), and observe_server stamps 68719476736 with the engine's default 104857600.

Tests: the full experiments suite passes (565 passed and 20 skipped with BENCH_ENGINE_COMMIT=417314c18 and 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

…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
@tae898
tae898 merged commit 3eafa06 into main Oct 6, 2026
2 checks passed
@tae898
tae898 deleted the fix-served-body-limit branch October 6, 2026 15:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Served ArcadeDB bulk loads are refused by 26.10.1's 100 MiB HTTP body limit: raise it on the batch arms, disclose it, and make the client say why

1 participant