Repository navigation
The deployment guide lists the ClickHouse codec settings Loom works best with - #143
Merged
Merged
Conversation
…est with How to turn on enable_quantized_codec and allow_suspicious_codecs on self-managed ClickHouse and ClickHouse Cloud, and how to move an existing install onto them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ve rebuild commands that run where an operator is Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…and cover a held chain setting Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…build block through uv, and give it the cluster once Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
…ors the way the gate does, and link the requirements row Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…unt vectors at the width the gate probes Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
…each setting gives without an unmeasured adjective Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ck its copy Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… point at CODED_TABLES for the list Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…-setting rules instead of repeating them, and point the vector-storage bullet at the rebuild steps Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
…nd drop the repeated settings link Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… the hand-run SQL uses, and say Cloud holds the chain setting by default Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…it with FINAL as the gate does, and reflow the section Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…d gate-failing namespaces the way the gate reads them Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…do by when they ran, and say how to stop the block Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…old-copy drop, and re-request them with their purge flag Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Copying and post-swap repair can restore erased rows, while rebuild and rollback copies are not fully covered by erasure. Drain pending work and stop writers until checks and cleanup finish. Signed-off-by: Lareb Zafar <[email protected]>
…r rebuild copies Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
A SQL client can connect to a different default database even when it uses the Loom account. Use the same explicit database name as the other operator queries. Signed-off-by: Lareb Zafar <[email protected]>
…t its served multiplier, and say the abort file stops only rebuilds Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ribe coded vector columns as the fresh install makes them Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ebuild copy, and scope the coded-column sentence to CODED_TABLES Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…s to the deployment's settings, and state the database note once Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…vector tables a second model creates Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
…of restating them, and name every place a fetch multiplier can be set Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…-storage bullet Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…y the vector-storage pointer Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Replacing the shared monotonic clock can expire the model-call switch snapshot on a short-uptime runner. Replace only the hold module clock so unrelated caches keep real time. Signed-off-by: Lareb Zafar <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ild steps Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…m, and name the partition-key procedure Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…er FINAL, and stop when the common width is not the served one Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… per-table re-embeds, and run the tool with the deployment's environment Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
7 of 9 tasks
A long integration run can outlive the session token. Fresh per-test credentials keep the one-hour lifetime and preserve caller-supplied keys. Signed-off-by: Lareb Zafar <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
… buffers on a timeout, and run the credentials child without the parent's addopts Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
… size Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
An adaptive queue may flush its first request immediately after an idle period. Use a fixed window for the shared-flush assertion and drain tasks even if the cleanup flush fails. Signed-off-by: Lareb Zafar <[email protected]>
Clear graph-write buffers and timers at teardown so model transitions do not inherit pending work. Wait for a settings reset before reading the baseline on another worker, and check that cleanup succeeds. Signed-off-by: Lareb Zafar <[email protected]>
Merged
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.
Related: #115
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The deployment guide explains the ClickHouse codec settings, how to check their constraints, and how to rebuild existing vector tables after enabling them.
Why
Loom can start with plain vectors when a ClickHouse settings profile blocks the codec. Turning the settings on later does not rebuild existing tables. Operators need the setting checks, restart step and table-specific rebuild commands in one place.
Scope and risk
Documentation in the deployment guide and ClickHouse architecture page, cross-links from the maintenance and performance guides, plus corrections to shared test clocks, credentials, buffered inserts, graph flush timers and settings resets. The instructions distinguish a read-only setting already at 1 from a setting held at 0, describe quantization with or without the additional LZ4 chain, and list every coded table with its required rebuild flags.
The rebuild instructions cover empty or placeholder vectors, other vector widths, abandoned twins, rollback and dropping pre-rebuild copies. Rebuilds require a maintenance window with all writers stopped and pending operations drained. Every rebuild and rollback copy must be dropped before traffic resumes because those copies retain content outside normal erasure. Compression and search gains depend on the data; this change claims no fixed ratio or speedup.
Merge order: #144 lands first. This PR then updates the deployment guide's rebuild procedure to the tool as #144 leaves it (the width refusal, no post-swap repair,
arrayExists(x -> x != 0, <column>)in the manual checks, the grants and the--drop-pre-rebuildcheck) and keeps its link from the maintenance guide to that procedure.Compatibility, rollout and rollback
Tests
CodecSettings, the table list againstCODED_TABLES, and the rebuild commands against the CLI and its table-specific checks.make format-check,make lintandmake typecheckpassed.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (Claude Code and Codex): coding agents wrote and reviewed the documentation against the implementation. Independent review checked the settings, table list, rebuild flags and cleanup instructions.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass.