Tag: sre
Posts tagged sre:
-
Three Generations of a 30 TB/Day ClickHouse Fleet: Non-CAS vs. CAS, What Broke, and a Blueprint for Self-Managed S3 — 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.
-
Meet chinit: Running ClickHouse on Plain Cloud VMs Without Missing Kubernetes — 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.
-
Why ClickHouse Looked 30% Busy While Maxed Out: The 125 MB/s EBS gp3 Wall — 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.
-
Why the Fix Didn’t Fix It: Stopping a 16.8M-Request S3 API Storm in a ClickHouse Fleet — 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.
-
One Binary to Bootstrap a Node: Why chinit Replaced 3,600 Lines of Bash — 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.
-
Destroy, Then Create: The Ordering Rule That Keeps Static-IP ClickHouse Replaceable — 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.
-
The Five-Round Brawl to Make Schema Convergence Automatic: Bootstrapping ClickHouse Tables That Refuse to Converge — 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.
-
The Roster, the Journal, and the Bookmarks: What Actually Happens When You CREATE a Replicated ClickHouse Table — 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.
-
A Field Map of ClickHouse Storage: Disks, Object Stores, and Metadata in the Source — 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.
-
From an Empty EC2 Box to a Cluster Member: What Bootstrapping ClickHouse on AWS Actually Means (and What chinit Does at Every Step) — ‘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.
-
Dead Projections and Useless FINAL: Tuning ClickHouse Tenant Databases by Reading the Source — 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.
-
The Cloud-Neutral Bootstrapper That Wasn’t: Auditing chinit for Azure and What It Taught Us About Portability — 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.
-
The S3 Path Bug Nobody Sees: Silent Config, Shattered Tenants, and a CAS-Ready Fix — ClickHouse silently ignored a storage config element on every boot, and every tenant’s parts landed in one shared bucket root. How I proved it live, why zero-copy deprecation makes per-replica paths mandatory, and the policy shape that makes CAS a drop-in later.
-
Teaching an Operator Without Kubernetes: Building chctl From the Altinity Source — Our ClickHouse cluster runs on EC2, not Kubernetes. So we took the Altinity operator’s Go source apart, kept the parts that never touched a Pod, and turned them into a CLI that renders configs, syncs schemas, and gates keeper restarts. Here’s what was reusable, what wasn’t, and the five live bugs the rollout caught.
-
The Fleet That Could Not Heal Itself: TLS Storms, Dead DNS, and What ‘Self-Healing’ Actually Requires — A four-hour load soak started with 2,284 errors an hour and ended with zero. Between them: a loopback TLS storm invisible to every health check, a cluster config that listed dead nodes by design, an internal CPU monitor that disagreed with the autoscaler, and the discovery that ‘self-healing’ means the failure has to be visible first. Every fix, with source permalinks.
-
Boot Sequence as a Contract: How a Self-Managed ClickHouse Node Comes Up (and How It Fails) — The 18-step boot pipeline behind a scalable self-managed ClickHouse cluster — what each step does, which failures abort and which warn, and the production findings that forced the ordering: identity before render, secrets before render, criticality as a first-class property.
-
The Honest Cost Model: Load-Testing a Log Stack Until the Bill Tells the Truth — Paper estimates said one thing; a month of 30 TB/day load tests said another. The measured cost model for a ClickHouse-on-EC2 log pipeline — compute, queue, and storage priced per GB with TTL as the only real lever — and the seven lessons that turned a $4,600/month blind spot into a line item you can dial.
-
When df Lies: keep_free_space, Effective Disk Headroom, and a Fleet That Grows Its Own Volumes — A ClickHouse node showed 30% free in df while merges failed on NOT_ENOUGH_SPACE — the keep_free_space reservation makes df lie by exactly the reservation size. The disk-autoscale design that grows EBS volumes and ext4 online before parts explode.
-
ClickHouse Config Is Not YAML: What One Re-Render Taught Me About Replica Identity — I replaced hand-written ClickHouse cluster XML with the Altinity operator’s own config generator. One shard macro later, every table silently re-keyed itself in Keeper. A tour of the identity machinery most ClickHouse posts skip.
-
The Self-Terminating Alarm: When Per-Host Scale-In Kills Every Scale-Out — A per-host CloudWatch alarm wired to ASG scale-in terminates its own metric source, stays ALARM forever, and re-kills every scale-out after each cooldown. The anatomy of an autoscaling wedge, and the aggregate-alarm design that fixes it.
-
Why I Draw ClickHouse Data Flows (and Why EC2 Beat Kubernetes for This Cluster) — The three Mermaid diagrams behind a self-managed ClickHouse cluster — network topology, ingest path, query path — and the honest reasons EC2 beat Kubernetes for it.
-
Three Days of Keeper Silence: How a Lost Metric Push Made a Healthy Cluster Blind — A ClickHouse Keeper monitor sat INSUFFICIENT_DATA for three days — not because the keeper was down, but because a bash-to-Go port silently dropped one line. The alarm design lesson: silence is not health.
-
What Breaks with ClickHouse CAS, and How to Decide If You Should Run It — The CAS failure modes that matter on a real cluster — mount refusal, identity drift, phantom hosts breaking ON CLUSTER DDL, GC wedges — plus the weighted scorecard for choosing between CAS, SharedMergeTree, and plain replication, with costs and exit costs.
-
Adopting the Pattern: A Migration Guide for Declarative Node Bootstrap and Lease Identity — The arc closes with the practitioner question: how would another team take this from posts to their own fleet? A staged migration guide — inventory the boot surface, extract the spec, build the pipeline engine, port the operations in-process, then lease the identity — with the ordering that worked, the traps that cost us live cutovers, and what not to port. For anyone running stateful replicas on a scaling group, on any cloud.
-
Who Decides What a Node Is Called? Lease Identity for an Ephemeral Stateful Fleet — Stateful replicas in a horizontal scaling group are a contradiction: the group replaces instances freely, but replication paths, Keeper registrations, and per-replica data prefixes key on names that must outlive the instance. This is the lease-based identity pattern that resolves it — a conditional write, a TTL, a renewal heartbeat, and a drain protocol — and the five production findings that shaped each part. Written so you can apply it to any replicated fleet, on any cloud.
-
Operating Self-Managed ClickHouse: Golden Images, Bootstrap, and Runbooks — Golden AMIs, two-stage bootstrap, rolling config refresh, and the runbook gaps plain-EC2 ClickHouse owes you versus the Kubernetes operator.
-
Dissolving the Second Binary: How chinit Absorbed Its Own Companion CLI — chinit started life beside a companion CLI that ran the database operator’s domain code — two binaries, one process boundary, argv plumbing, and a release pipeline each. This is the story of dissolving that second binary into chinit’s in-process operations: the typed request seam that replaced argv, the release-tag lesson that broke our gates twice, and why one binary per node is the right end state. The pattern generalizes to any fleet tooling.
-
Running ClickHouse Readers on Spot: The Stable-Identity Problem — A DynamoDB ordinal claimer gives spot-launched ClickHouse readers a stable replica name across instance generations.
-
Same Incident, Five Models: Rank Investigators Without Mixing the Exam — Random CI reruns mix model skill with incident difficulty. Freeze one checkout outage, swap only the bound model, and rank on Correct first, then wall time and new input tokens.
-
Session Efficiency Should Not Beat Accuracy — We labeled a score 0-100 and watched a perfect, cheap, fast agent run print 125. Cap budget bonuses at 1.0 so efficiency never grades above how often you were Correct.
-
Hybrid Plan Mode: Smart Planner, Generate Digs — Plan roots already route to planning; digs default to tool calling. Putting a high-thinking reasoning model on every task makes workers slow. Use a thinking model for the planner and a normal chat model for digs.
-
AI Agent Runtime: What to Measure Before You Buy — Buyer checklist for an AI agent runtime: loop, tools, gates, and an eval receipt — with numbers from a real multi-model triage bench.
-
How to Evaluate an AI Agent for Root Cause Analysis — Evaluate AI agent root cause analysis with a 13-point evidence scorecard. Catch unsupported claims, reward honest unknowns, then compare latency and cost.
-
Reasoning vs Generate Models for Tool-Heavy Agents — Merits and demerits of reasoning vs normal chat models on a live Grafana triage job — elapsed time, tokens, Theory style, and when each earns the bill.
-
Hierarchical vs Single-Agent on a Dual-Part Observability Job — When a hierarchical ReAcTree planner earns its tax on alert+logs triage — and when a single-agent ReAct loop is the better default. Real ratios from a six-combo bench.
-
Observability Tools Agents Actually Call on Triage — From live combo benches: the short Grafana/Loki tool set that showed up in successful closes — and the dead ends that burned turns.
-
What Reasoning Models Write When You Ask Them to Triage — Same alert+logs prompt, three model classes. How their Theories diverge: leak vs measurement artifact, and what that means for operators.
-
Six Model×Orchestration Combos on One Alert+Logs Job — Same dual-part observability prompt across three model classes and single-agent ReAct vs hierarchical ReAcTree. Wall, tokens, cost, correctness, and an efficiency score you can steal.
-
What Is ReAcTree? Hierarchical Agent Trees for Long-Horizon Work — Plain English: ReAct is one reason→act→observe loop. ReAcTree is a tree of agent nodes with sequence, parallel, and fallback control flow — for SRE-style tool-heavy jobs.
-
Cursor paging for spilled agent tool output — When observability tool results spill to disk, agents should page with opaque cursors, not grep the preview and declare every pod Unavailable.
-
Weekly Reflection: Context Engineering Beat the Language Wars — Weekly reflection: context engineering over language wars, plus public libraries and servers for write/select/compress/isolate with multi-language or MCP clients.
-
Observation Masking Cut Token Cost 43%—Then Lost the RCA — Context engineering A/B: observation masking (tool-result clearing) made an AI SRE agent ~43% cheaper—then failed equal-evidence RCA. Scorecard + knobs.
-
Debug AI Agent Failures: One Zip Per Conversation — Support said the AI investigation went wrong. Give one conversation debug zip—not per-execution scavenger hunts—then grade batches into product gates.
-
Why AI SRE Feels Stuck Before the First Tool Call — On-call sees ‘the bot is stuck’ while vault re-checks and MCP catalog re-index burn cold start. Measure time to the first useful tool call.
-
From Vibes to Contracts: How We Rebuilt Agent Evals Around an Industry Standard — From vibes to contracts: how we rebuilt agent evals around eval sets, rubrics vs criteria, a grader stack, and pass^k reliability.
-
Canary First: Lessons from Black-Box Consistency Evals for Live SRE Investigate — Canary-first evals for live SRE investigate: check the canary before burning judge tokens, and never treat a draft RCA as done.
-
AI SRE Agent Benchmarks: Wall Time, Tool Calls, Tokens, and ReAcTree Tax — AI SRE agent benchmarks: wall time, tool calls, tokens, and ReAcTree tax — fair A/B numbers so you know when orchestration is worth the cost.
-
Reasoning Effort Is Not a Free Upgrade for Tool-Heavy Agents — Reasoning effort is not a free upgrade for tool-heavy AI agents. Live SRE A/Bs: blanket high timed out, adaptive low→high dug deeper.
-
Single-Agent vs Multi-Agent Orchestration: How to Choose — Single-agent vs multi-agent for SRE triage: a fair A/B, what each shape wins at, and a decision framework so you stop defaulting to either.
-
What Are SRE AI Agents? — What are SRE AI agents? AI for incident triage, diagnostics, and RCA with bounded autonomy — not a chatbot and not open-ended remediation demos.
-
Don’t Invent PromQL: Measure the Alert Rule Query First — Alert title said latency; the rule was ClickHouse. AI SRE agents that invent PromQL from titles ship wrong RCA. Measure the stored query first.
-
SRE for Agentic Systems: Why Uptime Isn’t Enough Anymore — SRE for agentic systems: uptime isn’t enough. Judgment SLOs and how to measure agentic drift when the agent can be ‘up’ and still wrong.
-
AI Agent Loop Detection — Don’t Throw Away the Answer — AI agent loop detection can erase a good answer. Preserve the best evidence-backed result when a stalled run ends — don’t throw the work away.
-
Empty PromQL ≠ Missing Data: Fix AI SRE Scope Blindness — A Grafana no_data result applies to one query and time range; check labels, time, data source, and tool failures before reporting missing evidence.
-
AI Agent Root Cause Analysis — Evidence Discarded After the Lead — An incident agent can collect a useful metric lead and omit it from the final report; check time windows, unrelated alerts, and transcript-to-summary consistency.
-
Be Creative. Don’t Invent. — When an incident agent reaches an empty result, broaden searches using recorded identifiers instead of guessing rule IDs or measurements.
-
Ungrounded Synthesis Must Read as Hypothesis — If a check finds unsupported details in an AI-written incident analysis, correct the primary message rather than hiding the warning in a note.
-
AI Agent Root Cause Analysis — Curiosity Before Confidence — For AI-assisted incident analysis, record required checks, return missing fields together, and limit confidence to what the evidence supports.
-
Is the Task Actually Done? — Completion Loops for Production Agents — Check an AI agent’s deliverable and tool outcomes before reporting a goal as complete; return unverified work explicitly when checking stops.
-
When Your AI Agent Scorecard Lies — An AI agent scorecard can grade the wrong work; check trace identity, coverage, and evaluations before using its reliability or quality scores.
-
AI Agent Hit Max Turns? Deliver Partial RCA, Not Apology — When an incident agent reaches a model-call limit, preserve observed findings and label a partial analysis incomplete.
-
The Hypothesis Ladder — Ruling Things Out Before You Narrate — A structured way to investigate service incidents: identify the affected system and onset, test competing explanations, and report uncertainty.
-
From Demo to Deploy — Failure Modes with Receipts — Questions for evaluating AI incident-response pilots: recorded evidence, staged checks, approval policies, and test results beyond a fluent demo.
-
Beyond Confluence Runbooks: Why GitOps Triage Steps Matter in the AI Era — Beyond Confluence runbooks: why GitOps triage steps matter for AI agents — version-controlled procedures that change with your stack.
-
Your RCA Agent Doesn’t Need Another Runbook — It Needs a Map — Your RCA agent doesn’t need another runbook — it needs a map. Topology, gates, and verify-first navigation beat a forty-page notebook.
-
AI Agents Call Truncated Grafana ‘No Data’—It’s Spill — Large tool results get preview-truncated; AI SRE agents invent ‘Unavailable.’ Spill recovery and COMPLETE/PARTIAL/FAILED fix dishonest RCA.
-
How We Debug Multi-Stage AI Agent Workflows — How to debug multi-step and multi-stage AI agent workflows and execution logs — green one stage at a time, score tool effects not transcripts.
-
Evidence-Based Verification — Don’t Trust Self-Report, Check the System — Evidence-based verification for AI agents: don’t trust self-report — pull proof from ArgoCD, Datadog, and systems of record, then let Go own pass/fail.
-
Evidence-Gated RCA — Prove, Then Narrate — Evidence-gated RCA for AI SRE agents: prove with receipts, then narrate. Fixed stages, structural evals, and token-aware tool loops.
-
AI Incident Triage for SREs — What Actually Helps On-Call — AI incident triage for SREs — what actually helps on-call versus demo theater. Canonical copy now on StackGen.
-
When the Operator Asks to Correlate, Make It a Gate — Natural-language correlation goals need server-side gates — not hope the LLM remembers to search prior incidents.
-
Same Alert, Different Verdict: Entry Path Is Context — Don’t paste the alert in the UI and wonder why Slack gave a different impact score — entry path carries investigation context.
-
Slack Is a Triage Board, Not a Log Dump — Make incident replies in Slack scannable: show counts, findings and uncertainty, with links to evidence and searchable Activity.
-
Stop Re-Investigating the Same Alert — Reuse recent incident findings for follow-ups on the same alert, with a clear way to investigate again when evidence changes.
-
Service Rendered Efficiently: SRE AI Is Not an Engineering Credibility Project — Service Rendered Efficiently: judge AI investigation by whether it helps on-call reuse results, understand uncertainty, and hand off work.