Lights Out, Systems On: Validating Instant Power Loss Readiness
Instantaneous PowerLoss Storm is Meta's disaster-readiness exercise that cuts power to an entire data center region with zero notice, then validates that storage, compute and the Twine orchestrator can bootstrap autonomously. Two bootstrapping hazards had to be fixed. Circular dependencies among control-plane services are caught with Belljar tests in CI/CD and broken with a Twine recovery kit (Twrko). A "boomerang" problem, where power-related unavailability events shut down the orchestrator itself, was solved by having control-plane services ignore those shutdown signals. Meta defined data loss, facility damage and cross-region impact as unacceptable while tolerating transient errors and bounded staleness, then rolled out the tests incrementally: pre-production regions, then shadow regions, then small production regions, and finally large ones.
Related posts
- Power Loss Siren: Making Meta resilient to power loss events
Meta Engineering mediumAdeptPower Loss Siren (PLS) is Meta's rack-level power loss detection system: a relay daemon on each top-of-rack switch polls power supply signals and, if AC power isn't restored within 45 seconds, sends a link-local UDP multicast so server-side handlers can act during the remaining ~45 seconds of the rack's 90-second battery runway. MySQL uses the signal to proactively promote remote secondaries while the old primary keeps serving writes on battery, and stateless PHP web servers drain gracefully, cutting peak error rates during power loss events by about 100x. PLS also let Meta stop building dual-powered rows, spreading storage racks across the data center and reducing buffer capacity and stranded power. Planned work includes deferring Tectonic disk-cache flushes until a power loss alert, which early tests suggest cuts disk utilization about 13% and write latency about 50%.
- BellJar: A new framework for testing system recoverability at scale
Meta Engineering mediumAdeptBellJar is Meta's framework for proving that infrastructure services can recover from a total outage. It builds ephemeral VM environments that are indistinguishable from production but have all network traffic blackholed by fault injection, loopback included. Operators then allowlist only the specific capabilities their recovery needs, such as DNS or a named storage cluster. Each test is written in a few lines of Python and combines the service, hardware, runbook steps, tooling, validation criteria and allowed dependencies into a Boolean recoverability check that can run in CI/CD. The tests also regenerate runbook documentation and expose hidden or circular dependencies. Combined across teams, they form a recovery graph that differs from the runtime graph seen in distributed tracing.
- Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog
Datadog Engineering mediumAdeptA March 2023 unsupervised global update knocked out connectivity to 50–60% of Datadog's Kubernetes nodes, yet the platform appeared fully down because services were designed to stop rather than show partial data. Instead of only fixing the trigger, Datadog rebuilt for graceful degradation. Changes include persisting data at intake before acknowledging receipt, letting pipelines skip backlogs to serve live data first, retries with backoff and earlier dead-letter queues, Kubernetes PriorityClass and faster autoscaling, removing a shared Cassandra tag cache from the critical path, cluster-local Vault instances, break-glass paths around circular recovery dependencies, and automated chaos testing. The general lessons are to persist early, prioritize real-time data, avoid global control systems, and scrutinize retries and caches.
- Corrosion
Fly.io mediumAdeptCorrosion is Fly.io's open-source service discovery system: a Rust program that propagates a SQLite database across thousands of workers via SWIM gossip and QUIC, using the cr-sqlite CRDT extension with last-write-wins logical timestamps instead of distributed consensus. It works because Fly's orchestration makes individual workers the source of truth for their own state, so updates rarely conflict, much like a link-state routing protocol such as OSPF. The war stories cover a Rust RwLock deadlock gossiped to every proxy that caused a fleet-wide outage, a nullable-column migration that triggered a cr-sqlite backfill storm, and Consul certificate expiry that drove Corrosion writes until uplinks saturated. The fixes are Tokio event-loop watchdogs, Antithesis testing, checkpoint backups for cluster rebuilds, republishing full Machine state instead of partial updates, and regionalized two-level clusters to shrink the blast radius.
- Slowing Down to Speed Up – Circuit Breakers for Slack’s CI/CD
Slack Engineering mediumAdeptSlack 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.