Rollback Made It Worse: 5-Layer CI/CD Auto-Rollback Architecture and 4 Production Pitfalls

Overview 2:47 AM, the alert chat exploded. A payment service’s P99 latency spiked from 80ms to 1200ms after a new version went live. The on-call engineer hit rollback immediately. kubectl rollout undo executed successfully, old version Pods came back up, traffic shifted back. The result? The service went completely down — because the new version had run a database migration script that changed the status column in the orders table from varchar(20) to tinyint....

October 3, 2026 · 22 mins · 4596 words · Xu Baojin

Zero-Failure K8s Migration of 120 Microservices: 6 Pitfalls Nobody Talks About from a 3-Month Real Migration

Overview Migrating 120+ microservices from traditional VM deployments to Kubernetes sounds like a standard project: write Dockerfiles, build a cluster, migrate services, shift traffic. In planning meetings, everyone thinks three months is enough. In practice, you discover that the real challenges aren’t about “how to get services running” — that’s just helm install — but about pitfalls nobody warned you about: circular dependencies in service graphs, in-memory state loss during stateful migration, CNI performance cliffs at scale, DNS caching traps during canary traffic shifts, ConfigMap bloat, and monitoring metric gaps after migration....

October 1, 2026 · 27 mins · 5746 words · Xu Baojin

Stop Configuring Servers by Hand: A Complete Guide to Packer Golden Image Pipelines from Build to Security Scanning

Overview 2 AM, alert fires. Investigation reveals a server running an outdated OpenSSL version with known vulnerabilities. Security team asks: how many more machines are in the same state? You don’t have an answer. That’s the cost of configuring servers manually. Each machine gets its own apt install, producing environments that drift apart. Someone forgot a patch, someone installed extra packages, someone changed a kernel parameter without documenting it. When things break, you realize—you have no idea how many “configuration drift” variants are running in production....

September 29, 2026 · 25 mins · 5210 words · Xu Baojin

New Service OOMed 2 Hours After Launch: Replacing Manual Approval with a 7-Dimension Production Readiness Gate

Overview 1:47 AM. Phone buzzed. Alert channel exploded. A newly launched recommendation service at a ride-hailing project went OOMKilled on all 3 Pods less than 2 hours after launch. Memory spiked from 800MB to the 2GB limit, the kernel killed the process, Kubernetes restarted the Pod, and it got killed again. Loop. Users were routed to the fallback path. P99 latency shot from 80ms to 2000ms. The postmortem found the root cause....

September 27, 2026 · 22 mins · 4618 words · ABao

Cache Hit Rate from 58% to 94%: Building a CDN Monitoring System and 5 Production-Grade Troubleshooting Decisions

Overview After deploying a CDN, many teams stop at glancing at the hit rate number on the vendor’s console. Hit rate at 90%? Looks fine, moving on. Then one day the origin bandwidth gets maxed out, pages take 8 seconds to load, user complaints flood in — and you discover that 90% was the request hit rate, not the byte hit rate. Large files were all going back to origin, while small requests inflated the number....

September 24, 2026 · 20 mins · 4104 words · Xu Baojin

VPC Peering Became Your Bottleneck: Cloud-Native Network Architecture Selection and 5 Production-Grade Decisions

Overview At 2 AM, the alert group for a ride-hailing project exploded. The order service P99 latency spiked from 80ms to 600ms, and client-side timeouts were spreading. After a full round of troubleshooting, the culprit turned out to be VPC Peering — the cross-VPC call volume between two core business VPCs had saturated the concurrent connection limit of a single Peering link during peak hours. Meanwhile, 3 out of 12 new Peering connections created via Full Mesh for another recently launched VPC failed due to CIDR overlap, causing routing table chaos that sent some traffic through suboptimal paths....

September 22, 2026 · 25 mins · 5314 words · Xu Baojin

Pushing the Same Image 3 Times to 3 Environments? CI/CD Artifact Promotion Pipeline Layered Design and 4 Production Decisions

Overview You’ve probably seen this release workflow: a developer builds a Docker image, tags it as dev, and pushes it to the dev registry. After testing passes, they re-tag it as staging and push it again. Finally, for production, they tag it as prod and push a third time. Same image, built once, pushed three times with three different tags. This seems fine — until one day you discover that the image validated in staging and the image running in prod are not the same artifact at all....

September 19, 2026 · 24 mins · 5110 words · Xu Baojin

3,000 Lines of HCL Nobody Dares to Touch? 5 Production Decisions and Migration Pitfalls of Redoing IaC in a Real Programming Language with Pulumi

Overview A team has been running Terraform for three years. Their main module has grown to 3,000 lines of HCL, with deeply nested variable definitions, multiple providers, and for_each loops that make code review a nightmare. Every change is like defusing a bomb—the pull request gets reviewed five times, tested in three environments, and the final plan output scrolls for 200+ lines before anyone clicks apply. The last guy who understood the module structure left two months ago, and the handover doc is an abandoned Notion page....

September 17, 2026 · 16 mins · 3398 words · Xu Baojin

Promised 99.9%, Got 0.7 Yuan Back: SLA Clause Breakdown and 6 Engineering Decisions for Internal Design

Overview Your company uses a cloud service with an SLA that clearly states 99.95% monthly availability. One night, the service goes down for 30 minutes. You file a compensation claim with the cloud provider. The calculation goes roughly: downtime as a fraction of total monthly minutes, multiplied by your monthly fee. Assuming you pay 1000 yuan/month, that’s 30 minutes divided by 43,200 minutes times 1000, giving you about 0.7 yuan....

September 15, 2026 · 33 mins · 6998 words · Xu Baojin

14-Day Change Freeze Still Blew Up P0: 5 Engineering Decisions from Manual Freeze to Dynamic Change Windows

Overview Fourteen days before Double 11 one year, an e-commerce platform initiated a full change freeze—all non-emergency changes were frozen, CI/CD pipeline gates were closed, and only a security patch channel remained. The ops team breathed a sigh of relief. This time, it would be stable. At 2 AM on the day of the big sale, the payment pipeline P0 alert blew up. The root cause wasn’t new code. It was a configuration change deployed 3 days before the freeze—a rate-limiting rule’s whitelist had the wrong IP range....

September 12, 2026 · 30 mins · 6243 words · ABao