One Error Log Pinged Me 400 Times: Two-Tier Log Alerting That Tells 'It Happened' Apart From 'It Is Happening'

Overview At 1:12 a.m. on a night in August, my phone started buzzing and would not stop. Checkout was broken on an e-commerce platform. A downstream connection pool behind the payment gateway had been saturated, the checkout service retried in a tight loop, and the logs filled up with PAYMENT_GATEWAY_TIMEOUT. The on-call engineer found the root cause within seven minutes, reset the pool ceiling and the retry count, and traffic was back to normal by 1:59 a....

October 30, 2026 · 42 mins · 8765 words · Xu Baojin

Waiting on Three Approvals to Fight a Fire at 3 AM: 6 Engineering Decisions for Production Break-Glass Access and Audit Trails

Overview At 3:17 AM, my phone rang during a shift at an e-commerce platform. Payment success rate had dropped from 99.7% to 89%, and the order pipeline was starting to back up. The on-call engineer quickly pinned down the root cause: during the previous canary rollout, a single network ACL rule had been deleted by mistake, so payment callback traffic could no longer reach the backend cluster. The fix itself was trivial — add the rule back, or revert that config commit....

October 27, 2026 · 39 mins · 8298 words · Xu Baojin

3 Untracked Resources at 2 AM: 6 Engineering Decisions for Terraform Drift Detection and Remediation

Overview At 2 AM on a Wednesday, my on-call phone buzzed during a shift at a mobility platform. The alert channel lit up with a Prometheus notification — the production ALB (Application Load Balancer) showed abnormal traffic distribution. One backend ECS instance had its weight suddenly set to 0, even though the machine was alive and healthy. Investigation revealed: someone had manually modified the ALB listener rule through the cloud console the previous day, setting one ECS instance’s weight from 50 to 0....

October 23, 2026 · 32 mins · 6706 words · Xu Baojin

40% of a 350K Monthly Bill Was Idle: 6 Production Decisions from Tag Attribution to Cost-as-Code in FinOps

Overview At the end of the month, a CTO stared at a 350K RMB cloud bill and asked: “Where did all this money go?” Nobody could answer. 120 ECS instances, 3 K8s clusters, 50+ SLBs, scattered across two cloud accounts (Alibaba Cloud and Tencent Cloud). Finance only saw the aggregate bill. The engineering team only knew the instances they had created themselves. There was no unified view. Worse, after a full inventory, more than 40% of resources were running at under 30% utilization — idle ECS instances humming along, over-provisioned CPUs wasting cycles, Pods spinning empty during off-peak hours, and SLBs with no backend still billing by the hour....

October 20, 2026 · 24 mins · 4991 words · Xu Baojin

Database Connection Pool Blew Up Mid-Traffic-Shift: 6 Production-Grade Decisions for Blue-Green and Canary Deployment with Traffic Governance

Overview 2 AM. A ride-hailing platform’s payment service does a blue-green switch. The on-call engineer runs kubectl rollout to flip the Service selector, shifting traffic from blue to green. Everything looks fine — Pods are Ready, health checks pass, response latency looks normal. Three minutes later, the DBA chat explodes. Database connections spike from 200 to 1,200, the connection pool is maxed out, and five downstream services all time out. Root cause: the green environment’s app version updated the ORM framework, and the default pool size jumped from 20 to 100....

October 17, 2026 · 23 mins · 4898 words · Xu Baojin

One Namespace Ate 80% of Cluster Memory: 4 Production-Grade Decisions for K8s ResourceQuota Multi-Tenant Governance

Overview The night before a major promotional event, all Pods in the test environment were stuck in Pending. kubectl top nodes showed node CPU usage at 35% and memory under 50%. The Deployment YAML had reasonable requests and limits. The problem? Not a resource shortage — the “ledger” was maxed out. A namespace’s ResourceQuota had hit its ceiling, and the admission controller was rejecting all new Pod creation requests. This incident forced me to re-examine the entire chain of K8s namespace-level resource governance....

October 15, 2026 · 16 mins · 3339 words · Xu Baojin

5000 Alerts Nobody Reads: 6 Architecture Decisions from Fragmented to Unified Observability

Overview A friend of mine complained last year: his company deployed Prometheus, ELK, and Jaeger — three separate tool stacks maintained by a 7-person ops team. They spent 4 hours a day just triaging alerts. One night at 3 AM, the payment service hit a P0 incident, and it took 42 minutes from alert trigger to root cause identification. The root cause was a database connection pool configuration change causing slow query buildup....

October 13, 2026 · 21 mins · 4396 words · Xu Baojin

From 60% Toil to 20%: A 5-Level SRE Team Maturity Model and 6 Engineering Decisions for Quantitative Self-Assessment

Overview When I took over an operations team in 2021, I ran a simple audit: 12 people, 40 hours per week each, averaging 24 hours spent on manual ticket handling, service restarts, and disk space cleanup. That’s 60% toil. Of the remaining 16 hours, half went to status meetings. Actual engineering time: under 8 hours per week per person. Everyone was busy, but the system was still unstable. MTTR sat at 40 minutes, availability at 99....

October 10, 2026 · 23 mins · 4780 words · Xu Baojin

Pods OOM Killed at 3 AM: From working_set Blind Spots to a Memory Warning System in 5 Production Decisions

Overview 3 AM. The alert group exploded. Five pods were OOMKilled and restarted within 10 minutes. The on-call engineer opened Grafana, and every pod’s working_set was still 200MB below its limit—80% utilization. Monitoring looked fine. The pods died anyway. This is not an isolated case. When I was doing a Kubernetes migration for a new-energy logistics platform, I dealt with this exact pattern—“monitoring is green but pods die”—more than 10 times....

October 9, 2026 · 21 mins · 4427 words · Xu Baojin

When Your Self-Hosted Terraform Backend Cracks at 30 Engineers: 6 Engineering Decisions and a TCO Ledger from Moving to HCP Terraform

Overview Monday stand-up, our platform engineering team at a mobility platform was reviewing last week’s incidents: 17 state lock conflicts, two production environments broken by a “helpful” colleague running apply manually, and one set of credentials sitting in plaintext in CI logs. The root cause wasn’t a single operator error—it was our self-hosted Terraform backend (Git repo + S3 state bucket + DynamoDB lock + hand-made CI scripts) that had stopped holding up once the team grew from 5 to 30 engineers....

October 7, 2026 · 40 mins · 8382 words · ABao