<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://productionnotes.dev/feed.xml" rel="self" type="application/atom+xml" /><link href="https://productionnotes.dev/" rel="alternate" type="text/html" /><updated>2026-11-19T03:27:28+00:00</updated><id>https://productionnotes.dev/feed.xml</id><title type="html">Production Notes</title><subtitle>Production engineering notes on enterprise AI agents, workflows, and SRE — by Sabith K S, Principal Engineer at StackGen.</subtitle><author><name>Sabith K S</name></author><entry><title type="html">100 TB/Day ClickHouse on AWS: Continuous Spot Data Flows, NVMe Cache, and CAS Cold-Tier Cost</title><link href="https://productionnotes.dev/blog/clickhouse-100tb-day-cas-nvme-spot-data-flow/" rel="alternate" type="text/html" title="100 TB/Day ClickHouse on AWS: Continuous Spot Data Flows, NVMe Cache, and CAS Cold-Tier Cost" /><published>2026-11-19T01:00:00+00:00</published><updated>2026-11-19T01:00:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-100tb-day-cas-nvme-spot-data-flow</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="cas" /><category term="aws" /><category term="s3" /><category term="nvme" /><category term="spot-instances" /><category term="finops" /><category term="architecture" /><category term="d3" /><summary type="html"><![CDATA[An interactive D3 walkthrough of a 100 TB/day (3.04 PB/month) self-managed ClickHouse cluster on AWS with On-Demand writer-0 (backup-wake coordinator), Spot writer-1..9 and NVMe-cached Spot readers, NVMe hot-path compaction, and Altinity Antalya CAS — with exact 7-day and 33-day cluster cost math ($0.0015/GB to $0.0028/GB).]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/og-default.png" /><media:content medium="image" url="https://productionnotes.dev/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Three Generations of a 30 TB/Day ClickHouse Fleet: Non-CAS vs. CAS, What Broke, and a Blueprint for Self-Managed S3</title><link href="https://productionnotes.dev/blog/clickhouse-fleet-evolution-non-cas-to-cas-blueprint/" rel="alternate" type="text/html" title="Three Generations of a 30 TB/Day ClickHouse Fleet: Non-CAS vs. CAS, What Broke, and a Blueprint for Self-Managed S3" /><published>2026-11-18T16:30:00+00:00</published><updated>2026-11-18T16:30:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-fleet-evolution-non-cas-to-cas-blueprint</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="cas" /><category term="aws" /><category term="s3" /><category term="architecture" /><category term="chinit" /><category term="altinity" /><category term="sre" /><category term="cost-engineering" /><summary type="html"><![CDATA[We evolved a 30 TB/day self-managed ClickHouse cluster on AWS through three distinct architectures: naive S3-tiered ReplicatedMergeTree, tuned upstream 26.8 LTS without Content-Addressed Storage (CAS), and a source-tuned CAS fleet on Altinity Antalya + chinit v0.2.7. Here is the unbiased side-by-side comparison with live benchmark telemetry, the real pros and cons of CAS (including Code 246 UUID collisions, Code 48 suspended-versioning traps, asymmetrical reader merge storms, and shared-bucket blast radius), and a single-flag blueprint for future self-managed ClickHouse installations.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/fleet-evolution-non-cas-to-cas.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/fleet-evolution-non-cas-to-cas.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Meet chinit: Running ClickHouse on Plain Cloud VMs Without Missing Kubernetes</title><link href="https://productionnotes.dev/blog/announcing-chinit-clickhouse-vms-vs-operator/" rel="alternate" type="text/html" title="Meet chinit: Running ClickHouse on Plain Cloud VMs Without Missing Kubernetes" /><published>2026-11-18T14:30:00+00:00</published><updated>2026-11-18T14:30:00+00:00</updated><id>https://productionnotes.dev/blog/announcing-chinit-clickhouse-vms-vs-operator</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="chinit" /><category term="open-source" /><category term="kubernetes" /><category term="aws" /><category term="azure" /><category term="terraform" /><category term="nvme" /><category term="sre" /><summary type="html"><![CDATA[We open-sourced chinit (Apache-2.0) — a single Go binary that boots, scales, and self-heals ClickHouse on AWS EC2 and Azure VMs without a Kubernetes cluster. Here is how it works in plain English, an honest look at when it beats (and loses to) clickhouse-operator, and who it is built for.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/announcing-chinit-vms-vs-operator.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/announcing-chinit-vms-vs-operator.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Math of ClickHouse CAS on AWS: How Content-Addressed S3 Cuts Cold Storage from R× to 1×</title><link href="https://productionnotes.dev/blog/clickhouse-cas-cost-math-s3-deduplication/" rel="alternate" type="text/html" title="The Math of ClickHouse CAS on AWS: How Content-Addressed S3 Cuts Cold Storage from R× to 1×" /><published>2026-11-18T06:30:00+00:00</published><updated>2026-11-18T06:30:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-cas-cost-math-s3-deduplication</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="cas" /><category term="aws" /><category term="s3" /><category term="finops" /><category term="cost-engineering" /><category term="terraform" /><category term="altinity" /><summary type="html"><![CDATA[An S3 Gateway Endpoint makes the network wire between your VPC and S3 free ($0/hr, $0/GB) — once you close every missing route table and region-less CLI call. What it does NOT make free is storing R physical copies of every cold part across R replicas ($0.023/GB-month × R) or paying $5 per million PUTs to write them. Here is the exact cost math for Altinity Antalya's Content-Addressed Storage (CAS) at 30 TB/day (912,000 GB/month), the four engineering traps we hit enabling it in Terraform and CI, and how CAS takes end-to-end log ingestion down to $0.0026/GB (0.26¢/GB) at 7-day retention and $0.0038/GB (0.38¢/GB) at 33-day retention.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/cas-cost-math-s3-deduplication.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/cas-cost-math-s3-deduplication.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Why ClickHouse Looked 30% Busy While Maxed Out: The 125 MB/s EBS gp3 Wall</title><link href="https://productionnotes.dev/blog/clickhouse-ebs-iowait-illusion-125-mbs-gp3-wall/" rel="alternate" type="text/html" title="Why ClickHouse Looked 30% Busy While Maxed Out: The 125 MB/s EBS gp3 Wall" /><published>2026-11-18T06:30:00+00:00</published><updated>2026-11-18T06:30:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-ebs-iowait-illusion-125-mbs-gp3-wall</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="aws" /><category term="ebs" /><category term="gp3" /><category term="iowait" /><category term="performance" /><category term="finops" /><category term="sre" /><category term="mermaid" /><summary type="html"><![CDATA[During a 30 TB/day synthetic log soak on AWS, our ClickHouse writers showed 64 concurrent background merges while CPU user utilization sat at 25–35%. Why wasn't ClickHouse using the remaining CPU? mpstat and iostat revealed the illusion: 0.00% idle, 65–69% iowait, and 100% disk utilization pinned at the exact 125 MB/s EBS gp3 default throughput cap — using only ~805 IOPS. Raising gp3 throughput to 500 MB/s and 4,000 IOPS costs $20/month per writer (versus $262–$344/month to add a writer node) and flipped CPU user utilization from 25.6% to 89.4% within 20 seconds online.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/og-default.png" /><media:content medium="image" url="https://productionnotes.dev/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Why the Fix Didn’t Fix It: Stopping a 16.8M-Request S3 API Storm in a ClickHouse Fleet</title><link href="https://productionnotes.dev/blog/stopping-s3-api-storm-clickhouse-fleet/" rel="alternate" type="text/html" title="Why the Fix Didn’t Fix It: Stopping a 16.8M-Request S3 API Storm in a ClickHouse Fleet" /><published>2026-11-18T06:00:00+00:00</published><updated>2026-11-18T06:00:00+00:00</updated><id>https://productionnotes.dev/blog/stopping-s3-api-storm-clickhouse-fleet</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="aws" /><category term="s3" /><category term="s3queue" /><category term="ebs" /><category term="finops" /><category term="self-healing" /><category term="sre" /><summary type="html"><![CDATA[We shipped shared S3Queue keeper paths, hash-ring filtering, and online EBS disk autoscaling — and AWS Cost Explorer still billed $84.05 in a single partial day for 16.8 million Tier-1 S3 requests. Checking the live fleet against the supposed fixes uncovered five interlocking bugs: a TabSeparated quote-escape parser bug that dropped and recreated S3Queue every five minutes, 64 GiB hot disks hitting move_factor=0.1 with 10 MiB wide parts, an EBS WaitForModification state bug that timed out before resize2fs, a Nitro NVMe enumeration swap, and Launch Templates that had never actually rolled.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/s3-api-storm-five-fixes.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/s3-api-storm-five-fixes.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Free Is a Route, Not a Setting: The S3 Gateway Endpoint at 30 TB/day</title><link href="https://productionnotes.dev/blog/s3-gateway-endpoint-30tb-day/" rel="alternate" type="text/html" title="Free Is a Route, Not a Setting: The S3 Gateway Endpoint at 30 TB/day" /><published>2026-11-18T05:30:00+00:00</published><updated>2026-11-18T05:30:00+00:00</updated><id>https://productionnotes.dev/blog/s3-gateway-endpoint-30tb-day</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="aws" /><category term="s3" /><category term="networking" /><category term="finops" /><category term="terraform" /><category term="cost-engineering" /><category term="mermaid" /><summary type="html"><![CDATA[The S3 Gateway Endpoint costs $0/hr and $0/GB — and at 30 TB/day it is the difference between a ~$70/month network bill and a ~$2,700–$9,300/month silent tax. But the endpoint being free and the endpoint being USED are two different guarantees, separated by three independent failure modes: a route-table edit, a cross-region bucket, and a hardcoded URL. This is the anatomy of the $0.045/GB trap, the arithmetic that makes it invisible until it isn't, and the three plan-time guards that turn 'free' from a hope into an invariant — with the real Cost Explorer numbers from a ClickHouse log fleet that got the audit before the bill arrived.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/s3-gateway-endpoint-vs-nat.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/s3-gateway-endpoint-vs-nat.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Don’t Ship Tarballs to a Column Store: ClickHouse Compression from S3Queue to MergeTree</title><link href="https://productionnotes.dev/blog/clickhouse-compression-end-to-end-s3/" rel="alternate" type="text/html" title="Don’t Ship Tarballs to a Column Store: ClickHouse Compression from S3Queue to MergeTree" /><published>2026-11-17T22:30:00+00:00</published><updated>2026-11-17T22:30:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-compression-end-to-end-s3</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="compression" /><category term="zstd" /><category term="s3queue" /><category term="s3" /><category term="mergetree" /><category term="finops" /><category term="cost-engineering" /><category term="mermaid" /><summary type="html"><![CDATA[A 30 TB/day log pipeline touches compression three separate times: raw .log.gz delivery in S3, staged NDJSON files read by ClickHouse's S3Queue engine, and columnar MergeTree blocks on disk. Confusing those three layers leads to the classic mistakes — wrapping single streams in .tgz archives, burning CPU on gzip-9, leaving staged NDJSON uncompressed, or letting wide parts turn 1.97 TB/day of ZSTD data into 16 million S3 PUT requests. Here is what ClickHouse's C++ source actually supports at each boundary, and how to make the whole chain cost-effective.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/clickhouse-compression-stages-s3.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/clickhouse-compression-stages-s3.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">One Binary to Bootstrap a Node: Why chinit Replaced 3,600 Lines of Bash</title><link href="https://productionnotes.dev/blog/chinit-one-binary-node-bootstrap/" rel="alternate" type="text/html" title="One Binary to Bootstrap a Node: Why chinit Replaced 3,600 Lines of Bash" /><published>2026-11-17T16:00:00+00:00</published><updated>2026-11-17T16:00:00+00:00</updated><id>https://productionnotes.dev/blog/chinit-one-binary-node-bootstrap</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="go" /><category term="sre" /><category term="bootstrapping" /><category term="cloud-init" /><category term="infrastructure" /><category term="automation" /><category term="mermaid" /><summary type="html"><![CDATA[Every self-managed database fleet has one: the boot script nobody reads, templated by the IaC tool, drifting from reality. This is the story of replacing ours with chinit — a single Go binary that treats node bootstrap as a declarative spec, a state file, and a retry engine — what the design got right, what three days of live cutovers taught us, and how to tell when your fleet is ready for the same move.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/chinit-one-binary-node-bootstrap.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/chinit-one-binary-node-bootstrap.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Loading Dock and the Clipboard: What a ClickHouse S3Queue Table Actually Is</title><link href="https://productionnotes.dev/blog/clickhouse-s3queue-loading-dock-fundamentals/" rel="alternate" type="text/html" title="The Loading Dock and the Clipboard: What a ClickHouse S3Queue Table Actually Is" /><published>2026-11-16T20:00:00+00:00</published><updated>2026-11-16T20:00:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-s3queue-loading-dock-fundamentals</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="s3queue" /><category term="s3" /><category term="ingest" /><category term="fundamentals" /><category term="keeper" /><category term="eli5" /><category term="mermaid" /><summary type="html"><![CDATA[Two earlier posts tuned a slow S3Queue backlog and fixed a one-node ingest bottleneck — both assume you already know why a log pipeline stages files in S3 and what a queue table does with them. This is the missing starting point: from the naive INSERT-directly architecture and its three failure modes, through the staging pattern, to one file's full journey through an S3Queue table — discover, claim, parse, insert, mark — with the Keeper clipboard that makes claiming safe across a fleet. Written for SQL people, one five-year-old picture throughout, no prior queue knowledge assumed.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/s3queue-loading-dock-clipboard.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/s3queue-loading-dock-clipboard.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Postgres Was a Filing Cabinet. ClickHouse Is a Warehouse: From Zero to SharedMergeTree for SQL People</title><link href="https://productionnotes.dev/blog/clickhouse-for-postgres-people-warehouse-mergetree/" rel="alternate" type="text/html" title="Postgres Was a Filing Cabinet. ClickHouse Is a Warehouse: From Zero to SharedMergeTree for SQL People" /><published>2026-11-16T17:00:00+00:00</published><updated>2026-11-16T17:00:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-for-postgres-people-warehouse-mergetree</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="postgres" /><category term="mergetree" /><category term="sharedmergetree" /><category term="replication" /><category term="columnar-storage" /><category term="fundamentals" /><category term="mermaid" /><summary type="html"><![CDATA[Everything ClickHouse does sounds weird until you know what it's optimized against. A zero-to-hero walk for people who already know SQL — starting from a five-year-old's question, building the MergeTree model piece by piece with Postgres analogies at every step (indexes, partitions, WAL, autovacuum, replicas), then the two replication designs and why ClickHouse Cloud's SharedMergeTree is the logical end of the same ideas. No prior column-store knowledge assumed.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/postgres-filing-cabinet-vs-clickhouse-warehouse.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/postgres-filing-cabinet-vs-clickhouse-warehouse.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Destroy, Then Create: The Ordering Rule That Keeps Static-IP ClickHouse Replaceable</title><link href="https://productionnotes.dev/blog/clickhouse-destroy-then-create-static-ips/" rel="alternate" type="text/html" title="Destroy, Then Create: The Ordering Rule That Keeps Static-IP ClickHouse Replaceable" /><published>2026-11-16T16:00:00+00:00</published><updated>2026-11-16T16:00:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-destroy-then-create-static-ips</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="terraform" /><category term="opentofu" /><category term="aws" /><category term="ec2" /><category term="keeper" /><category term="sre" /><category term="infrastructure" /><summary type="html"><![CDATA[A golden-image roll failed twice with InvalidIPAddress.InUse before I understood why: create_before_destroy flags propagate through the dependency graph, and a flag on an unused TLS certificate was flipping my static-IP database nodes to the wrong replacement order. A tour of Terraform's ForcedCBDTransformer, plan-JSON ordering, and why quorum members and exclusive resources demand destroy-then-create.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/destroy-then-create-static-ips.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/destroy-then-create-static-ips.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Five-Round Brawl to Make Schema Convergence Automatic: Bootstrapping ClickHouse Tables That Refuse to Converge</title><link href="https://productionnotes.dev/blog/clickhouse-schema-convergence-five-rounds/" rel="alternate" type="text/html" title="The Five-Round Brawl to Make Schema Convergence Automatic: Bootstrapping ClickHouse Tables That Refuse to Converge" /><published>2026-11-16T00:00:00+00:00</published><updated>2026-11-16T00:00:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-schema-convergence-five-rounds</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="aws" /><category term="bootstrapping" /><category term="chinit" /><category term="keeper" /><category term="replication" /><category term="go" /><category term="automation" /><category term="sre" /><category term="mermaid" /><summary type="html"><![CDATA[A fleet of ClickHouse nodes kept booting with no tables, and every fix revealed the next layer: a SQL splitter that shredded comments into syntax errors, a replica-registration conflict that made CREATE refuse by design, a coordination outage that looked like success, a macro that broke the recovery command itself, and an ingest table that had no business existing on one node at all. The five-round story of teaching a bootstrapper to converge a cluster's schema with no human in the loop — and the install-time validation idea that would have prevented three of the rounds.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/schema-convergence-five-rounds.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/schema-convergence-five-rounds.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Roster, the Journal, and the Bookmarks: What Actually Happens When You CREATE a Replicated ClickHouse Table</title><link href="https://productionnotes.dev/blog/clickhouse-replicated-table-roster-journal-bookmarks/" rel="alternate" type="text/html" title="The Roster, the Journal, and the Bookmarks: What Actually Happens When You CREATE a Replicated ClickHouse Table" /><published>2026-11-15T20:00:00+00:00</published><updated>2026-11-15T20:00:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-replicated-table-roster-journal-bookmarks</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="replication" /><category term="keeper" /><category term="zookeeper" /><category term="mergetree" /><category term="fundamentals" /><category term="sre" /><category term="mermaid" /><summary type="html"><![CDATA[Every hard ClickHouse replication bug — 'replica already exists,' nodes booting with no tables, a recovery command that rejects its own path — makes sense the moment you can picture the three things a CREATE actually builds: a membership roster in the coordination service, a shared journal every replica reads from, and a per-replica bookmark. The plain-English mental model that makes the advanced debugging stories readable: what registers where, who fetches what from whom, what macros really are, and why 'apply the same DDL forever' is safe.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/replicated-table-roster-journal-bookmarks.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/replicated-table-roster-journal-bookmarks.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">A Field Map of ClickHouse Storage: Disks, Object Stores, and Metadata in the Source</title><link href="https://productionnotes.dev/blog/clickhouse-storage-classification-source/" rel="alternate" type="text/html" title="A Field Map of ClickHouse Storage: Disks, Object Stores, and Metadata in the Source" /><published>2026-11-15T19:09:00+00:00</published><updated>2026-11-15T19:09:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-storage-classification-source</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="storage" /><category term="s3" /><category term="disks" /><category term="source" /><category term="sre" /><summary type="html"><![CDATA[After the silent key_prefix bug, I stopped guessing and read ClickHouse's disk registry in the source. Four registrations, three choices per disk, and the default [a-z]{3}/[a-z]{29} key template that explains exactly where the bucket-root prefixes came from. Every claim has a permalink.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/storage-classification-source-map.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/storage-classification-source-map.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">From an Empty EC2 Box to a Cluster Member: What Bootstrapping ClickHouse on AWS Actually Means (and What chinit Does at Every Step)</title><link href="https://productionnotes.dev/blog/clickhouse-aws-bootstrap-chinit-walkthrough/" rel="alternate" type="text/html" title="From an Empty EC2 Box to a Cluster Member: What Bootstrapping ClickHouse on AWS Actually Means (and What chinit Does at Every Step)" /><published>2026-11-15T17:00:00+00:00</published><updated>2026-11-15T17:00:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-aws-bootstrap-chinit-walkthrough</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="aws" /><category term="ec2" /><category term="bootstrapping" /><category term="chinit" /><category term="go" /><category term="infrastructure" /><category term="sre" /><category term="automation" /><category term="mermaid" /><summary type="html"><![CDATA['Bootstrap a node' hides about twenty jobs behind two words. This is the complete walkthrough: every AWS primitive a ClickHouse node touches between instance launch and its first served query — the golden AMI, the user-data wrapper, the role spec, the lease claim, the disk mounts, the secret resolution, the config render, the recurring jobs — and what the chinit bootstrapper does at each of its twenty-four steps. Written for engineers who want the whole picture in one place, every term defined at first use.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/aws-chinit-bootstrap-walkthrough.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/aws-chinit-bootstrap-walkthrough.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Dead Projections and Useless FINAL: Tuning ClickHouse Tenant Databases by Reading the Source</title><link href="https://productionnotes.dev/blog/clickhouse-tenant-tuning-from-source/" rel="alternate" type="text/html" title="Dead Projections and Useless FINAL: Tuning ClickHouse Tenant Databases by Reading the Source" /><published>2026-11-15T16:00:00+00:00</published><updated>2026-11-15T16:00:00+00:00</updated><id>https://productionnotes.dev/blog/clickhouse-tenant-tuning-from-source</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="performance" /><category term="storage" /><category term="mergetree" /><category term="optimization" /><category term="sre" /><summary type="html"><![CDATA[A fresh-install optimization pass on a multi-tenant ClickHouse cluster — a projection that doubled storage but could never run, a FINAL that forced 20-second merge-on-read, and the Keeper path that blocks per-database tenancy. Every fix verified in the 26.8 source before it shipped.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/tenant-tuning-from-source.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/tenant-tuning-from-source.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Cloud-Neutral Bootstrapper That Wasn’t: Auditing chinit for Azure and What It Taught Us About Portability</title><link href="https://productionnotes.dev/blog/chinit-azure-portability-audit/" rel="alternate" type="text/html" title="The Cloud-Neutral Bootstrapper That Wasn’t: Auditing chinit for Azure and What It Taught Us About Portability" /><published>2026-11-15T00:00:00+00:00</published><updated>2026-11-15T00:00:00+00:00</updated><id>https://productionnotes.dev/blog/chinit-azure-portability-audit</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="azure" /><category term="aws" /><category term="go" /><category term="bootstrapping" /><category term="infrastructure" /><category term="multi-cloud" /><category term="sre" /><category term="mermaid" /><summary type="html"><![CDATA[chinit was designed cloud-neutral — a provider factory, capability probes, a conformance suite. Then we pointed it at the Azure port and found four Fatal assumptions baked into the 'shared' pipeline, an 18-release pin drift, and a checksum gate that could never match. The audit that made the bootstrapper actually portable, and the uncomfortable lessons about what 'cloud-neutral' really costs.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/chinit-azure-portability-audit.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/chinit-azure-portability-audit.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">S3Queue Is a Multi-Node Engine: Stop Bottlenecking Ingest on One Writer</title><link href="https://productionnotes.dev/blog/s3queue-multi-node-ingest-fanout/" rel="alternate" type="text/html" title="S3Queue Is a Multi-Node Engine: Stop Bottlenecking Ingest on One Writer" /><published>2026-11-14T20:00:00+00:00</published><updated>2026-11-14T20:00:00+00:00</updated><id>https://productionnotes.dev/blog/s3queue-multi-node-ingest-fanout</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="s3queue" /><category term="s3" /><category term="ingest" /><category term="keeper" /><category term="load-testing" /><summary type="html"><![CDATA[Our S3Queue drained from exactly one node while four writers idled — because the queue table only existed on one of them. The engine is natively distributed: every node claims different files through Keeper, exactly-once, and each node's commit caps apply per node. The load test that proved the bottleneck, the one-paragraph fix, and the ClickHouse source that makes the fan-out safe.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/s3queue-multi-node-ingest-fanout.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/s3queue-multi-node-ingest-fanout.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Graviton Roulette: The Day NVMe Device Names Broke Our Boot (and the Disk-Label Guard That Saved Root)</title><link href="https://productionnotes.dev/blog/gravitron-nvme-enumeration-boot-disk-guard/" rel="alternate" type="text/html" title="Graviton Roulette: The Day NVMe Device Names Broke Our Boot (and the Disk-Label Guard That Saved Root)" /><published>2026-11-14T17:00:00+00:00</published><updated>2026-11-14T17:00:00+00:00</updated><id>https://productionnotes.dev/blog/gravitron-nvme-enumeration-boot-disk-guard</id><author><name>Sabith K S</name></author><category term="clickhouse" /><category term="aws" /><category term="ec2" /><category term="gravitron" /><category term="ebs" /><category term="devops" /><category term="linux" /><summary type="html"><![CDATA[We resized the fleet to Graviton and the metadata EBS volume stopped being /dev/nvme1n1. A node bootstrapper that relabels disks by device name nearly ran e2label against the root filesystem — stopped only by an accident of partition tables. A tour of Graviton NVMe enumeration, device-by-label resolution, and the three guards a boot-time disk step needs.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/graviton-nvme-boot-disk-guard.svg" /><media:content medium="image" url="https://productionnotes.dev/assets/images/diagrams/clickhouse/graviton-nvme-boot-disk-guard.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>