Repository navigation
perf(executor): class L gets 26Gi / 18GB, because a realistic 10M standardize needs more than 8GB of DuckDB (#558) - #1501
Merged
Merged
Conversation
…ndardize needs more than 8GB of DuckDB (#558) #558's 10M run on er-dev, with a realistic-cardinality corpus, failed standardize with Out of Memory (7.4/7.4 GiB) at class L's 14Gi / 8GB: - on #1475's single-file layout, after 3 minutes; - on #1496's 500-row files, after 4.5 minutes, at 13.2 of 14 GiB. The old layout's earlier pass at 10M was on a low-cardinality corpus. Every runner-l shape has at least 32 GiB (c5ad, c6id or c8id.4xlarge; m6id has 64), and L used 14 of it. L is now 26Gi with DuckDB at 18GB, which keeps DuckDB strictly below the container (the D-SIZING invariant) and leaves room for the node's daemonsets. That means one L pod per node. The dev namespace already admits at most two L pods, since ephemeral storage refuses a third: 2 x 26Gi + app = 57Gi of the 80Gi quota. helm template renders ER_DUCKDB_MEMORY_LIMIT=18GB with 26Gi requests and limits. infrastructure.md §6.5, batch-orchestration-design and the quota comment are updated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 30, 2026 09:38 — with
GitHub Actions
Inactive
This was referenced Nov 30, 2026
athvin
added a commit
that referenced
this pull request
Nov 30, 2026
… corpus fits in memory (#558) (#1504) #558's 10M run kept failing standardize with Out of Memory: at 8GB (7.4/7.4 GiB), and after #1501 raised class L, at 18GB (16.7/16.7 GiB). Its working set grows with the corpus and DuckDB doesn't spill enough of the projection plus the current-version window. Locally, 2M rows need more than 1.5GB. The corpus is now standardized in buckets of hash(source_system, source_record_id): a CREATE TABLE AS for bucket 0, then an INSERT per further bucket. The window partitions by exactly that key, so every version of a record shares a bucket, and the union of the buckets is the single statement's result. Bucket count is ceil(rows / 1M); ER_STD_ROWS_PER_BUCKET overrides it. One bucket (any corpus up to 1M) is the same SQL as before. Both the person and account builders use it. Measured locally (2M rows, 1.5 GB limit, 12 threads, 500k-row buckets): standardize passes in 278 s with all 2,000,000 rows. std_hashes now also builds base_10 in 3-row buckets and requires the same table, both directions of EXCEPT ALL. build_int_std_records_with takes the bucket size, so the test doesn't touch the process env. Co-authored-by: bmoore813 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This branch was previously deployed
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.
Closes #558
What
Class L becomes 26Gi with DuckDB at 18GB (was 14Gi / 8GB). The references that state L's size are updated.
Why
#558's 10M run failed standardize OOM at 8GB on both raw layouts (7.4/7.4 GiB). Every runner-l node has at least 32 GiB, and L used 14 of it.
Proof
helm templaterendersER_DUCKDB_MEMORY_LIMIT=18GBwith 26Gi requests and limits.make skills-checkok. The proof is #558's 10M rerun on this build, which goes in the ledger.Risk & rollback
One L pod per runner-l node now, where there were two. The dev namespace was already limited to two concurrent L pods by ephemeral storage, and 57Gi fits its 80Gi memory quota. Rollback:
git revert <merge-sha>.Post-merge ledger
Closed by: unclosed
mainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not:
imagesbuilt, or correctly never ran because nothing that goes intoan image changed:
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion:
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change:
Donethrough the automation rather than byhand, and the issue closed:
(a skill, a reference, memory) — or nothing new was learned:
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
🤖 Generated with Claude Code