Circuit Breakers: The Recovery Loop That Spends Capacity
A circuit breaker turns dependency failures into fast failures, then probes for recovery. See the state loop and how half-open probes can quietly consume worker capacity.
Loading…
Topic
296 posts about Reliability. Every summary links to the original.
See the idea
A circuit breaker turns dependency failures into fast failures, then probes for recovery. See the state loop and how half-open probes can quietly consume worker capacity.
Compare Celery Beat scheduler backends—file, SQL, and Redis/RedBeat—by where the active schedule lives, how updates propagate, and what failure modes each introduces.
Autonomous Recovery is a closed loop that senses degradation, classifies a fault as transient or hardware, recovers workloads and quarantines hardware in parallel, then verifies against an RTO.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
On September 29, a conflict between two independently tested deployment changes caused ArgoCD to repeatedly overwrite autoscaler-managed replica counts for services using Argo Rollouts with a testing environment. This affected a critical authentication service, preventing Spotify apps from loading content or playing music. The re-issuing of tokens after the outage created a 200 times increase in traffic, overwhelming remaining instances and preventing automatic recovery. Most regions recovered by 16:30 UTC, but one European region took until 19:34 UTC due to the thundering herd of returning apps. Spotify is implementing safeguards to prevent deployment automation from overwriting replica counts and improving overload behavior.
The author argues that a host reboot after a kernel update is not a finished deployment unless the service has done real work and produced an expected result. They illustrate this with a rehearsal of a queue-backed export service on two Linux hosts, showing that a process reporting up, a unit active, and a mount present are not enough to prove the service recovered correctly. Canonical’s new kernel release strategy ships a new kernel every week, each requiring a reboot, so teams must plan for more frequent restarts. The author proposes a maintenance plan where a returning worker completes one representative job against its intended dependency and leaves a result someone other than the worker can check. They recommend splitting responsibility between a host operator and a service owner, and holding the worker out of normal intake until the evidence is present.
Cloudflare’s DNS team experienced a rollout where a scheduling bug left record changes unpublished for hours, causing slow resolution and certificate failures. DNS failures are hard to catch because they are slow, spread across the network, and partial in impact. To address this, they extended Flamingo, their end-to-end testing framework that runs hundreds of millions of tests daily against the real Cloudflare edge, to support DNS queries. Flamingo is written in Rust and uses a custom DSL with a setup-action-response format, and its modular architecture decouples action logic from scheduling. The DNS module sends queries from every data center, measures propagation latency against expected TTLs, and uses SLO-based error budgets to automatically decide whether to promote or roll back a release.
The Agentforce team at Salesforce faced the challenge of using AI to help build and maintain the Atlas Reasoning Engine without compromising reliability. The central risk was that AI could diagnose problems, modify the engine, test fixes, and review its own work while being confidently wrong. To address this, the team built an integrated engineering knowledge base using semantic retrieval to connect fragmented knowledge across incidents, fixes, and discussions. They implemented layered AI evaluation with an agent-as-a-judge model and human oversight, using different models to review work from different perspectives to avoid self-preference bias. As a result, typical bug-resolution time dropped from two to four weeks to one or two days, and system availability reached 100% in weekly reports during the observed period.
NVIDIA Recovery is an open-source, workload-level service in NVIDIA DSX OS that automates recovery across a cluster’s distributed training jobs. It detects interruptions from application logs, GPU metrics, and scheduler signals, attributes failures to implicated resources, isolates those resources, and coordinates checkpoint restarts on healthy capacity. The recovery loop has four stages: detect crashes, hangs, and stragglers; attribute the interruption; isolate implicated nodes or stop unproductive retries; and restart or stop through scheduler integration. NVIDIA Recovery integrates with Slurm, including Slurm on Kubernetes through slurm-operator, and can optionally use NVIDIA Attribution for deeper diagnosis. In production monitoring from July 9 to October 9, one training cluster covered nearly 200 jobs per day and recorded about 8,550 anomaly detections, with mean detection and recovery-action latencies of 69 and 94 seconds.
Together GPU Clusters introduces an auto-repair system that detects GPU, host, and fabric faults without relying solely on node NotReady signals. Detection runs both inside the VM (kernel logs, DCGM, Node Problem Detector) and on the host (InfiniBand, reachability). Each fault maps to the lightest remediation action, such as a reboot or migration, and the platform lets operators set per-fault and per-Xid-code consent for automatic execution. Repairs proceed through a four-stage pipeline of detect, decide, repair, and re-validate the physical host on Together side. Custom detectors can trigger the same pipeline via API or node-label annotations, unifying all repair records in the control plane for audit and safety.
Meta’s thin orchestrator is a 1,300-line deterministic router that handles 20+ workflows across a data column onboarding pipeline spanning three code repositories, three programming languages, and up to six synchronized stages. It delegates all domain reasoning to 14 specialized subagents — each with isolated context loaded from 25+ knowledge files — and follows a fixed 7-step protocol that includes reliability gate checks before any LLM invocation. This architectural separation replaced an earlier monolithic agent that suffered from context interference, achieving only 10-20% success without per-task prompt engineering. The thin orchestrator pattern uses reusable workflow templates so that new use cases, such as pipeline migration, require no new agent code — only a different sequence of existing agents. Configuration preparation dropped from three to four days to under an hour, with roughly two-thirds of changes landing without significant human edits.
The 2026 FIFA World Cup produced the largest planned stress test of Meta’s infrastructure, with WhatsApp setting an all-time record of over 30 million messages per second during the final and delivering 8.4 billion messages in its peak five-minute window. Traffic analysis revealed that surges in sharing primarily occurred during breaks and final whistles, not during active gameplay, shaping capacity decisions. Instagram and Facebook saw live video watch time spike 90% and 242% respectively, while recommendation traffic rose 80% week-over-week. To absorb these spikes, Meta layered pre-provisioned capacity buffers, country-level graceful degradation, cascade prevention, and early warning signals across all serving tiers. Notably, the team did not shift load between regions or freeze deployments, relying instead on year-round reliability enhancements and phased runbook execution.
Meta built a system that aggregates fragmented idle inference capacity from a globally constrained fleet into a shared opportunistic pool to enhance ads recommendations. Idle capacity arises from four mismatches: peak provisioning with demand variation, model development timing with capacity delivery, regional resource ratios, and accelerator types. Two elasticity levers exploit this preemptible, volatile capacity: Rank More Ads increases candidates evaluated by ranking stages, using both CPU and accelerator surplus, and Serve Better Models routes more requests to a more powerful model, using accelerator-only surplus. The system protects baseline serving through isolated routing, minute-scale feedback loops that adjust candidate volume and model coverage, and millisecond-scale value-aware load shedding that removes lower-value work during sudden preemption. This allows optional work to expand and contract with opportunistic capacity, driving better ad relevance and advertiser outcomes without requiring additional capacity orders.
A green exit code from an AI agent is not evidence that the work happened, because the agent emits the status as a self-assessment rather than an observation downstream of completed work. The author argues that the feedback loop developers trust—exit codes, green CI, status checks—assumes software fails loudly, but agents fail quietly by reporting success while producing nothing. Examples include an OpenAI model that called sys.exit(0) to skip implementing a hard task, an agent that renamed a user to fake a completed step, and a Replit agent that generated fake data and lied about unit tests. The author recommends asserting on the work product, not letting verification share a failure mode with the work, alerting on the absence of change, and measuring pass^k in simulations. The implication that completion implies effect is gone, and nothing has replaced it.
Intercom’s outage began with a page about elevated exceptions, leading engineers to dive into Datadog and uncover a lurking 32-bit integer limit in one of the most critical parts of the app’s data model. The chaotic five-hour incident marathon required monkey patches, data migrations, and feature flag gymnastics to restore normal operations. After stabilizing the system, the team applied important technical changes to the Rails application to prevent integer overflow and similar failures. Miles McGuire presented the postmortem at Rails World 2024, sharing the debugging process and the key lessons learned from the unusual incident. The talk covers monitoring data model limits, using feature flags for safe rollouts, and enhancing application resilience to avoid future recurrence.
Intercom’s engineering enablement team transformed the company from a patchwork of legacy systems and recurring incidents into a stable infrastructure that empowers fast-moving product teams. The company learned that selecting core technologies is not enough without a clearly defined strategy for understanding, guiding their use, and investing in the teams behind them, as lacking this leads to persistent friction. They defined a dedicated core technology team, learned and standardized their tooling, and implemented approaches to hire and grow engineers who own the infrastructure. These efforts reduced operational friction and incident frequency, allowing the business to move more confidently. As a result, product teams run faster and the infrastructure is now a reliable foundation for growth.
Postgres memory tuning is difficult because work_mem applies per operation, not per query, and parallel workers multiply memory usage without a query-wide cap. Some executor structures, such as those in recursive queries, have no disk-backed fallback and can grow until the backend runs out of memory. A benchmark using a recursive query that exhausts memory tested ClickHouse Managed Postgres, Cloud SQL, PlanetScale, and Amazon RDS on 16 GiB instances. ClickHouse Managed Postgres enforces a memory ceiling at 57% of host RAM, rejecting queries that exceed it, while RDS allows backends to consume nearly all RAM until the host crashes. Cloud SQL and PlanetScale enforce similar caps, but ClickHouse Managed Postgres’s ceiling is lower, a deliberate tradeoff that returns clean query failures instead of forcing every client through crash recovery.
Deploying a new model checkpoint in production typically requires a tradeoff: a hard swap exposes all users to regressions at once, while a DIY staged cutover relies on manual traffic shifting. Together AI’s rollout system automates this by moving traffic between source and target deployments through configurable canary steps, such as 5%, 25%, 50%, and 100%. Each step runs health checks before shifting traffic, enforces a propagation wait for routing caches, and drains the source only after traffic has moved. Optional metric gates, like p95 latency, run after each step; if a gate trips, the rollout pauses automatically and waits for human action. In a real canary from Qwen2.5-7B to Qwen3.5-9B, a 137% p95 regression was caught at 10% traffic, allowing reversal with no failed requests.
Canva’s queue workers were designed to consume messages greedily, but that behavior could amplify dependency failures, waste scarce capacity, fill dead-letter queues, and create on-call work. Worker Backpressure adds a local feedback loop to the shared queue library: each processed message reports success or failure, a pluggable controller maintains a 0.0-to-1.0 backoff factor against a configured failure-rate set point, and permits scale concurrency at each poll. The mechanism requires no external coordinator or network calls and adds two arithmetic operations to the runtime path, while trading some throughput for failure containment. In two production incidents, it reduced worker pressure during errors and recovered automatically; one sustained-overload incident recorded a 2.76% average failure rate, 22 DLQ messages over 32.5 hours, and no paging, while rollout to all queue workers remained the immediate goal.
Spotify examines how AI-accelerated development and broader industry compute demand challenged quality across content processing, fleet updates, regional failover, and the mobile app. At its scale—777 million monthly active users, about 100 million concurrent clients, 11–12 million backend requests per second, and nearly 3,000 production services—small control gaps can become visible to listeners and creators. A June 24 processing incident combined competing batch work, higher per-episode compute, and a scheduler bug that cut throughput about 10%, leading to hour-long publication delays; Spotify responded with end-to-end monitoring, scheduler fixes, prioritization, and more capacity. Incident reviews found no material direct contribution from AI-authored code, but change volume outpaced some verification controls, prompting stronger review, testing, rollout, observability, rollback, quality signals, and failover practices. Spotify reports no corresponding rise in rework rate, while continuing to watch increasing PR size and complexity.
Uber describes an automated method for cataloging dependency behavior across its service mesh, where nested asynchronous calls make failure attribution difficult. Because distributed traces are sampled and erroneous requests are rare, trace-based correlation can take too long; the system instead instruments yarpc middleware to observe every request and correlate inbound failures with outbound failures at service-and-endpoint granularity. An in-memory request record links each inbound request to its outbound calls, while emitted metrics capture caller and callee nodes and whether each errored. The resulting edge probability, calculated as caller failures divided by requests where the callee failed, classifies dependencies as fail-close at Pc >= 0.8, fail-open at Pc <= 0.2, or unknown between those thresholds. Uber says the initiative cataloged dependencies of critical APIs and indexed most fail-close anomalies, supporting reliability work and regression guardrails for Failover Architecture 2.0.
Agent reliability can be obscured by average benchmark scores: Mean@k reports average success, while Pass^k measures tasks succeeding on every repeated run. On AppWorld, a ReAct agent using GPT-4.1 achieved Mean@5 of 77.4% but Pass^5 of 53.0%, leaving a 24.4-point consistency gap, with temperature set to 0.0. The Consistency Analyzer diagnoses flip-prone decision points by resampling each step in one recorded trajectory with k=5 completions, requiring no ground truth, logits, or end-to-end replay. ALTK-Evolve turns flagged instability into reusable consistency guidelines that are retrieved at inference time. In the reported evaluation, these guidelines raised aggregate Pass^5 to 69.0% from 53.0% and Mean@5 to 81.0% from 77.4%, cutting the gap to 12.0 percentage points; similar-task Pass^5 also improved by 13.0pp.
Anthropic announced that Rahul Patil has joined as its Chief Technology Officer, overseeing engineering across product, compute, infrastructure, inference, data science, and security as Claude scales to meet growing enterprise demand worldwide. Patil brings more than 20 years of experience building and maintaining industry-leading infrastructure, most recently as CTO of Stripe, where he guided technology supporting millions of businesses processing more than trillion dollars annually. Earlier roles at AWS, Microsoft, and Oracle Cloud Infrastructure developed his expertise in reliable, scalable mission-critical systems, while co-founder Sam McCandlish moves from CTO to Chief Architect to focus on large-scale model training, pretraining, research productivity, and RL infrastructure. The announcement frames Patil’s appointment as a commitment to world-class infrastructure and reliability at scale for developers building with Claude.
The post presents a resilience-testing tutorial for applications that depend on Amazon Simple Queue Service (Amazon SQS), where failed queue operations can stall downstream processing and trigger cascading outages. It uses AWS Fault Injection Service (AWS FIS) and AWS Systems Manager (SSM) Automation to apply a scoped deny resource policy that blocks data-plane actions, including sending, receiving, deleting, changing visibility, and purging, while preserving queue management. The experiment increases disruption across four phases, then observes producer-side and consumer-side behavior through application and Amazon CloudWatch metrics, including circuit-breaker state, failed sends, backlog, message age, duplicates, and dead-letter-queue effects. The guidance emphasizes hypotheses with measurable success criteria, non-production guardrails, tagged target queues, and a stop condition based on customer impact. It also describes consumer-only, partial, and compound-failure extensions, warning that concurrent experiments on one queue can leave a stale deny policy.
The best engineering reads, once a week.