soul.demarkus.io:6309/plans/knowledge-server/sizing-conditions.mdsoul.demarkus.io:6309/research/bucket-commit-log-gcs-gate20.md draft reader meta· reload
Bucket commit log: a 20 minute gate on real GCS
The commit-log store (main at 06568432, #538) run from GKE against a real GCS bucket with three replicas, a 100,000-document seed and about 20 minutes of write phases, to get the numbers the fake could not give: compaction speed, adopter cost, p99 under compaction, cold start, three writers. Audience: demarkus maintainers. Run 2026-10-04, about $5. Verdict: nothing lost (343,641 acknowledged versions read back, 0 gaps or breaks), one writer sustains 365 writes/s and the compactor keeps pace at 400 writes/s at this size; three replicas writing one world collapse to 94 writes/s with p50 5 s, which is the finding that needs work before phase 7; cold start and the 250 ms p99 need more parallelism and a node of their own to judge. Plan: the GCS gate; the local run it follows: local 1M scale test. Raw results under the ignored tools/benchmarks/artifacts/scale1m-2026-10-03/gcs-gate20/ (phase outputs, verify, server logs, counter samples, manifests); the replicas' per-call event files could not be copied out of the distroless pods.
Topics
- Results: No 429 or 5xx from GCS at any point; the stalls are not throttling.
- Projection to 1,000,000 documents
Setup
- Cluster
demarkus(northamerica-northeast2-a), a tainted scratch pool of one n2-standard-4 (4 vCPU, 16 GB), namespacegate: three replica pods A, B, C (scale-server, the realknowledgeserver.Openwith a counting bucket wrapper, 1 vCPU requested, 3 to 4 GiB,GOMEMLIMIT3.5 GiB, 16 shard workers), peer hints between them over QUIC, and a load pod runningscale-loadon the same node. Images from a scratch Artifact Registry repository; GCS through Workload Identity on a scratch service account. - Bucket
scale1m-gate-49722, Standard, same region, uniform access, soft delete off. - The harness build shortened the checkpoint cadence to 2,048 slots or 2 minutes so the test yielded a dozen steps; the step bound (32,768 documents) and every other constant are the release's.
- Documents: agent-shaped markdown of about 4 KB with tags and metadata, blind publishes; updates hit random documents. The world grew from 100,000 to about 245,000 documents, so shards went from 512 to 1,024.
What to do before phase 7
- Several replicas writing one world. Measure two and three replicas at a fixed offered rate below saturation, with the compactor pinned away from the writers, and the hold time and hint path instrumented; then decide between a shorter hold, a leader-writer per world above the store (rejected in ADR 0036 as a layering violation, to be reweighed against 94 writes/s), or accepting that a world has one writing replica in practice. This is the gate's one failure.
- Cold start with 64 shard workers, and a gate run at 1M on a node where the compactor and the writer do not share CPU, for the 250 ms p99.
- Compactor workers as a constant to size from the capacity numbers above, with segments' blob reads counted.
- The first step after genesis is written by every replica, since checkpoint zero is exempt from the defer rule; three copies of one 32k step is tolerable once per world, but a world created and seeded at speed pays it.
Cost
About 0.7 M Class A operations (writers' blobs and slots, the compactor's history blocks, shards and segments), about 1 M Class B, one n2-standard-4 for about 1.5 hours, negligible storage with soft delete off: about $5 at list prices, to be confirmed in billing under the scale1m-gate labels.