The Report Was Empty for Three Days Before Anyone Noticed: Data Reliability Is Not Job Success
Overview Nine in the morning. Someone in the operations group chat asks: why is yesterday’s GMV report empty? I check the scheduler. Three jobs, all successful. The ETL log has no ERROR, just one informational line: processed 0 records. Watermarks advanced normally to 23:59 yesterday. Four green curves on the dashboard. Then I look at the target table. Yesterday’s partition: zero rows. This is the classic failure mode of data reliability....
The Cleanup Script Exited 0 and Reported Success — Then Scaling Blew Up Three Days Later: 7 Shell Safety Audits to Run Before Any Script Goes to Production
Overview Start with the conclusion: an exit code of 0 does not mean the script behaved. That sounds obvious, yet every year it burns someone in a production environment in a slightly different way. Last year, on an e-commerce order fulfillment system, I hit this: a cleanup script that ran every night at 1 a.m. and pruned old release directories under /data/apps/order-api/releases/. It had run for two years with nothing but a clean clean done in the log....
The Second Cable Broke the Intranet: Route Isolation on Multi-Homed Linux Hosts and the Trade-offs of Three Approaches
Overview Two NICs in one server — one on the office network, one on a dedicated line — looks like the simplest topology in the world. But the moment you put a gateway on that second NIC as well, or add a default route to “send some traffic over the dedicated line”, the entire egress path can flip without warning: ping works for some destinations and not others, existing connections keep running, and every new connection times out....
Updated the ConfigMap, the App Still Reads the Old Value: Three Breakpoints in K8s Config Delivery
Overview At 1 AM I got a report about intermittent 429s. We had load-tested during the day and concluded that the rate limit on one path was set too low. So I changed a single number: rate_limit: 200 became rate_limit: 800. The kubectl apply succeeded, and kubectl get cm app-config -o yaml clearly showed 800. Twenty minutes later, the 429s were still there. I cat’ed the file inside the pod. It still said 200....
Prometheus Was Down for 2 Hours and My Phone Never Rang: 6 Blind Spots in Self-Monitoring and a 3-Tier Heartbeat Backstop
Overview A monitoring system has an awkward property: it is the whistle-blower for every incident you have, and when it breaks there is no second whistle. Architecturally this is the “who watches the watcher” problem. In practice it is far more dangerous than it sounds, because Prometheus-class systems mostly fail quietly: the process is up, the port is open, Grafana panels still refresh, and the curve is still that nice green line....
38,412 Orders Corrupted by a Correction Script: 5 Defense Layers and 7 Traps in Production Data Repair
Overview It was 0:47 a.m. and a reconciliation alert woke me up on the living room couch. Not the “some box is burning CPU” kind of alert — this was a number out of the payment reconciliation job: 37,904 orders whose status disagreed with their payment records for the day. Two hours later we knew the whole story. At 22:10 someone ran a “status correction” script. The script had passed review....
Local Plan Says No Changes, CI Wants to Rebuild 37 Resources: 5 Gates for Pinning Terraform Dependency Versions
Overview On a Thursday afternoon in the second half of last year, I was doing something deeply boring at my desk: renaming a variable in an old module. It used to be name, which is too vague; name_prefix says what it means. Three lines of HCL. I ran terraform plan locally three times and got No changes. Your infrastructure matches the configuration. every single time. I opened the PR, merged it, and the CI plan job failed....
Four Egress IPs Caved Under 20K Long-Lived Connections: Diagnosing SNAT Port Exhaustion and 5 Production Decisions for Cloud Egress Governance
Overview At 01:47 the payment channel’s callbacks started failing. Not a full outage — intermittent: seven or eight out of ten succeeded, the remaining two or three timed out on connect. Egress QPS on the application was flat, node CPU, memory and bandwidth were all normal, ss on the hosts showed only a few hundred TIME_WAIT sockets, and ephemeral port usage was sparse. The on-call engineer’s first instinct was that the counterparty’s endpoint was flapping....
63% of Red Builds Were False Alarms: 6 Engineering Decisions for Detecting, Quarantining, and Governing Flaky Tests in CI
Overview At 2 AM, the main branch of an e-commerce platform went red again. The on-call developer’s reaction was well-practiced: open the pipeline, glance at the failing test case name, skip the logs, and post “just rerun it” in the chat. Ten minutes later: green. Merge continues. This is not an isolated case. Whenever I review CI health for clients, I run into the same phenomenon almost every time: a team’s first reaction to a red build is not “what broke?...
Cloud Disk Attach Stuck for 30 Minutes: 6 Engineering Decisions for K8s CSI Storage, from Ghost VolumeAttachments to Self-Healing
Overview It was 2:40 AM when the on-call phone rang. A StatefulSet running the order database was doing a rolling update, and two of its three replicas were stuck in ContainerCreating for twenty minutes straight. kubectl describe pod gave only a vague FailedMount, kubectl get events was spamming FailedAttachVolume, and nobody could say which step it was stuck on. I have run into this failure more than once. And the interesting part is that, every time, the root cause was almost never “the storage broke” — the disk was fine, and the cloud console happily showed the volume as healthy....