Add independent pipeline auto-tuning tool#14
Open
Toti330 wants to merge 5 commits 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
tools/tune_pipeline.py, a standalone external benchmark orchestrator for worker threads, writer threads, and commit count.Why this is useful
It replaces ad-hoc one-off environment changes with repeatable, randomized sweeps. Each candidate runs 3 times by default, reports min/median/max throughput, and recommends the smallest candidate within
95.00%of the best median. It also reports the efficient ceiling before performance falls below that threshold.Implementation
--test worker,--test writer, and--test commitsweeps.time.perf_counter()outside the application, avoiding application throughput-reporting artifacts.--dry-runexecutes 0 workloads and changes 0 files.--test-onlysetsTEST_ONLY=1: it requires an existing schema, bypasses schema/checkpoint work, and rolls each COPY transaction back so it persists 0 rows.--allow-db-writesand explicit--start-seed.--apply-torequests confirmation for every individual environment setting; rejecting one continues with the remaining recommendations.Independence
This PR is based directly on
mainand can be reviewed or merged independently. It does not require the other diagnostics branches.Verification
python3 -m unittest -v test_tune_pipeline.py: 4 passed.python3 -m py_compile tune_pipeline.py test_tune_pipeline.pypassed.cargo test --all-targetspassed.TEST_ONLY=1andCHECKPOINT_FREQUENCY=none.Generated by GPT-5.6 Terra & Sol. Ideas from the author; implementation by AI.