Skip to content

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

Meta Engineering 9 min read Case study mediumAdept

Power Loss Siren: Making Meta resilient to power loss events

Power 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%.

Related posts

  • Lights Out, Systems On: Validating Instant Power Loss Readiness

    Meta Engineering easyNovice

    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.

  • 12 Golden Signals To Discover Anomalies And Performance Issues on Your AWS RDS Fleet

    Zalando Engineering mediumAdept

    Zalando condensed lessons from past incidents into 12 golden signals for judging the health of AWS RDS Postgres instances across CPU, memory, disk and database workload. The signals come with concrete thresholds: CPU utilisation above 40-60% and IO await above 5-10% tend to precede incidents, storage latency above 5 ms hurts SLOs and above 10 ms leads to incidents, and a cache hit ratio below 80% points to insufficient shared buffers or RAM. Swap activity, deadlocks, transaction counts and the ratio of rows fetched to rows returned round out the set. The open-source rds-health CLI automates checking these signals via AWS Performance Insights across accounts and regions, and also reports configuration and capacity planning.

  • Incident Review: Pageserver outage in us-east-1

    Neon mediumAdept

    A sudden EC2 instance failure took down a Neon pageserver in us-east-1, leaving about 0.4% of projects unable to read uncached pages for 30 minutes to 2 hours. No data was lost because S3 holds durable storage and secondary locations were pre-warmed. Recovery was slow for three reasons: alerting had a human in the loop and took about 30 minutes, a semi-manual script took about 40 minutes to migrate 17,037 projects, and roughly 20 projects with in-flight operations needed manual fixes. The fix is moving all projects to the Storage Controller, a reconciliation-loop scheduler with its own heartbeats that treats every pageserver call as fallible and fails work over in seconds without human intervention.

  • Slack’s Incident on 2-22-22

    Slack Engineering mediumAdept

    A Consul agent rolling restart caused Mcrib, Slack's memcached control plane, to replace and flush cache nodes, dropping hit rates during peak traffic. A cache-fronted Group DM membership query hit a Vitess keyspace sharded by user, so every miss became a scatter query across all shards. Database load grew superlinearly, queries timed out, caches couldn't refill, and client retries kept the system stuck in a metastable cascading failure. Recovery required throttling client boots, fetching only missing keys, reading from replicas and later moving the query to a channel-sharded table; Mcrib's very efficiency at replacing nodes increased cache churn and worsened the outage.

  • Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog

    Datadog Engineering mediumAdept

    A 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.

The quest for software engineering knowledge.

Look:
Layout: