GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — CI check: projection reads on the reader connection by vifar · Pull Request #1 · vifar/t3code Conversation
Owner
Runs the project's own CI against this branch. The upstream PR (pingdotgg#23689) cannot start its workflows until a maintainer approves them (GitHub's first-time-contributor gate for fork pull requests). This PR runs the same workflows in the fork, where there is no such gate, so the checks are known to pass before anyone spends an approval on them. The branch is identical to the upstream PR's head. The upstream PR is the one to review.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionspingdotgg#22570) Co-authored-by: Claude Opus 5.5 <[email protected]> …ingdotgg#22557) Co-authored-by: Claude Opus 5.5 <[email protected]> …ingdotgg#22575) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> …#22561) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> …event-driven (pingdotgg#22565) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> …ing parent (pingdotgg#22581) Co-authored-by: syberia <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> …g#22588) Co-authored-by: Claude Opus 5.5 <[email protected]> …tgg#22589) Co-authored-by: Claude Opus 5.5 <[email protected]> …#22591) Co-authored-by: Claude Opus 5.5 <[email protected]> …gdotgg#22592) Co-authored-by: Claude Opus 5.5 <[email protected]> …dotgg#22593) Co-authored-by: Claude Opus 5.5 <[email protected]> …gdotgg#23205) Co-authored-by: Claude Opus 5.5 <[email protected]> …card (pingdotgg#23282) Co-authored-by: Claude Fable 5.1 <[email protected]> …ingdotgg#22777) Co-authored-by: Claude Opus 5.5 <[email protected]> …uests (pingdotgg#23034) Co-authored-by: Claude Opus 5.5 <[email protected]> …sed (pingdotgg#23170) Co-authored-by: Claude Opus 5.5 <[email protected]> …ngdotgg#23096) Co-authored-by: Vishal <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: PR Batch Tester <[email protected]> Co-authored-by: Vishal Doshi <[email protected]> …ingdotgg#23361) Co-authored-by: Claude Opus 5.5 <[email protected]> …ingdotgg#23106) Co-authored-by: PR Batch Tester <[email protected]> Co-authored-by: Nikita Maximilian Grimm <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> …tch (pingdotgg#23023) Co-authored-by: Claude Opus 5.5 <[email protected]> … Activities (pingdotgg#23327) Fixes pingdotgg#15682. Takes over pingdotgg#23035. Co-authored-by: Taylor Dolezal <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> …gg#23117) Co-authored-by: Claude Opus 5.5 <[email protected]> …ingdotgg#23124) Co-authored-by: Claude Opus 5.5 <[email protected]> pingdotgg#23389) Co-authored-by: PR Batch Tester <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> …desktop updates (pingdotgg#23113) Co-authored-by: PR Batch Tester <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> pingdotgg#23454) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> …ingdotgg#23135) Co-authored-by: PR Batch Tester <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> … columns (pingdotgg#23502) Co-authored-by: PR Batch Tester <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> …onnection
The MCP read path is the server's hottest read: every `t3_thread_read` goes
through `getThreadRecords`, and the shell list goes through
`getShellSnapshot` and `getThreadShell`. All three ran on the writer
connection, so a read had to take the write lock.
On a host whose state database is large and whose writer is busy, that is
where the time goes. Measured on such a host, over a ten-minute window:
```
MCP tool calls: 1,857 in ~10 minutes (peak 506 in one minute)
DB lock waits > 100 ms: 1,608 (518 seconds of lock wait in that window)
correlation calls/min vs
total lock wait/min: r = 0.751
sqlite ops by connection:
18,408 (writer, read) <-- reads also go through the writer
234 (writer, write)
```
78.5% of every query in that window ran inside an MCP call. The worst single
lock wait was 6,622 ms, on
`SELECT payload_json FROM orchestration_v2_projection_nodes WHERE node_id = ?`.
The reader connection already exists - `nodeSqliteClient` starts a reader
worker for a file-backed database, and `NodeSqliteClient.readOnly` routes a
read to it. It was barely used: 8 transactions in the window, averaging
497 ms, which is the reader pool starved exactly when the writer is busy.
These three reads are pure reads, so they belong on the reader. The change
moves them and nothing else: the queries, the transaction shape and the
results are unchanged.
The lock-wait measurement's writer inserted rows with columns that `orchestration_v2_projection_checkpoints` does not have, and the insert was wrapped in `Effect.ignore`, so every row was rejected and the "under write load" measurement had no write load in it. The writer now uses the table's own columns, generates a unique scope per row, and does not swallow failures: the test counts the rows the writer reports and counts the rows on disk, and asserts they are the same. Both measurements now assert the lock wait is reported, so the before/after is compared on the measure the server logs. The writer signalled its milestone only after every insert had finished, so the read ran against a writer that was already done. The measurement was of a read with no write load in it, which is the opposite of what the test claims to measure. The milestone is now signalled part way through the inserts, and the writer keeps writing while the read runs. The test asserts that the writer was still going when the read started, so the overlap is pinned rather than assumed.
Owner
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |