Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Zalando Engineering 9 min read Incident mediumAdept

Thundering herd of circuit breakers

A client's circuit breaker stayed open for hours because its half-open probes hit a service that the HPA had scaled down to three pods. The sparse probes succeeded, the breaker closed, and the withheld traffic arrived at once, queued for over 100 ms per request, timed out and re-opened the breaker. Each cycle lasted only about three seconds, too short for CPU-averaged autoscaling to notice. Zalando found the cycle by exporting OpenTelemetry traces as CSV into a bespoke uPlot visualizer that plots hundreds of traces at once. Suggested fixes are autoscaling on queue depth or concurrency, longer or heavier half-open probes, pre-scaling before the breaker closes, load shedding, and propagating cancellations.

Related posts

  • How one quadratic webhook handler pinned our autoscaler at its ceiling

    Sentry mediumAdept

    Sentry's Control RPC deployment sat pinned at its 256-pod autoscaler ceiling (normally ~32) because three GitLab integration bugs combined. A four-year-old grouping bug attached 2,000+ installations to one shared Integration record, a webhook backfill fix enabled webhooks across all of them, and an N² installation lookup in assignment sync made each webhook trigger up to millions of cross-silo RPC calls. A misleading P95 busyness KEDA metric and asymmetric scale-up/scale-down rates masked the cause for weeks, until a per-method RPC breakdown exposed a 10x jump in one method. The fix cut average pods from ~150 to ~42 (about 72%). Lessons: verify scaling metrics actually fall as pods are added, break RPC volume down by method, and hunt N+1/N² calls that cross network boundaries.

  • Slowing Down to Speed Up – Circuit Breakers for Slack’s CI/CD

    Slack Engineering mediumAdept

    Slack added orchestration-level circuit breakers to Checkpoint, its CI/CD orchestration service, to stop cascading failures between internal systems such as GitHub Enterprise, Jenkins, test environments, Flannel, Vitess and search. CI/CD request volume grew about 10% month over month, and vertical and horizontal scaling had stopped keeping up. Checkpoint's background jobs query dependent-service health in Prometheus through Trickster. When thresholds are exceeded, the breakers open, deferring or shedding test jobs, and they close again when the services recover. The Hacklang implementation drops the half-open state because job retries and cached TTL queries handle recovery, fails closed when metric lookups error, and notifies engineers whenever a breaker changes state.

  • A Recap on May/June Stability

    Neon mediumAdept

    Neon's May and June 2025 incidents were caused by a load surge from agentic AI platforms. Database creation rose more than 5x and branch creation more than 50x. In May, US regions hit Kubernetes scaling limits around 10,000–12,000 concurrent database pods: EKS etcd memory, pod start times, network configuration and API rate limits. Stopgap tuning raised risk until the horizontally scaled "Cells" architecture shipped. In June, branch metadata growth in the Postgres-backed control plane caused query plan drift, vacuum pressure and expensive billing queries. Fixes include stricter limits on every workload dimension, tests with high-branch-count scenarios, defensive query rewrites, moving billing data to an analytical store, and splitting start/suspend hot-path logic into a small isolated service.

  • Not just another network latency issue: How we unraveled a series of hidden bottlenecks

    Datadog Engineering mediumAdept

    Recurring high-startup-latency pages on every deployment of Datadog's usage estimation `counter` service traced back to four stacked bottlenecks rather than one. The fixes were raising CPU for a throttled Envoy sidecar, patching a Linux kernel bug that pinned all traffic to the first of eight AWS ENA transmit queues, and moving to network-optimized EC2 instances after bandwidth-allowance-exceeded metrics revealed hypervisor packet drops. A Kubernetes preStop hook with a maintenance-mode key then kept Envoy from routing requests to terminating remote-cache pods. With p99 latency back under 100 ms, the team scaled the remote cache down 6x, saving hundreds of thousands of dollars a year, and now alerts on ENA bandwidth and pod- and host-level network drop metrics.

  • Continuous Load Testing

    Slack Engineering mediumAdept

    Slack moved to running its Koi Pond load-testing clients continuously, 24/7, against an organization 4x the size of its largest customer. Performance regressions get caught on every deploy without the cost of spinning up test environments. Making this safe required an Automatic Shutdown service that polls Prometheus via Trickster and stops tests when thresholds are breached (e.g. API success below 95% for five minutes), partial shutdown and Emergency Stop controls, DynamoDB-backed persistence so the Keeper survives pod restarts, and automated token generation via cron, job queues, exponential-backoff retries and encrypted S3 storage. A gradual rollout from 5,000 to 500,000 clients with cross-team communication produced zero off-hours pages in six months, and an ad-hoc test that once took a day of effort now takes minutes.

The quest for software engineering knowledge.

Look:
Layout: