---
title: "Power Loss Siren: Making Meta resilient to power loss events"
description: "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."
url: "https://swe.quest/articles/power-loss-siren-making-meta-resilient-to-power-loss-events-0c7d3a002aac02ac"
canonical: "https://engineering.fb.com/2021/12/16/data-center-engineering/power-loss-siren/"
source: "Meta Engineering"
published: "2021-12-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["datacenters","resilience","mysql","replication","hardware"]
---

# Power Loss Siren: Making Meta resilient to power loss events

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2021-12-16, 9 min read, Case study. Original: [https://engineering.fb.com/2021/12/16/data-center-engineering/power-loss-siren/](https://engineering.fb.com/2021/12/16/data-center-engineering/power-loss-siren/)

## Summary

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

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Datacenters](https://swe.quest/tags/datacenters.md) (Infrastructure)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)

## Prerequisites

- data center power distribution ([easy posts on Datacenters](https://swe.quest/tags/datacenters.md?difficulty=easy))
- database primary/replica failover ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- load balancer health checks

## Keywords

Power Loss Siren, Meta, MySQL, Tectonic, UDP multicast, battery backup units

## Related posts

- [Lights Out, Systems On: Validating Instant Power Loss Readiness](https://swe.quest/articles/lights-out-systems-on-validating-instant-power-loss-readiness-42bc3b3cf0afa4b0.md): Meta Engineering · 2026-06-03 · Easy · 6 min read · Chaos engineering, Datacenters, Resilience, SRE
  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.
- [12 Golden Signals To Discover Anomalies And Performance Issues on Your AWS RDS Fleet](https://swe.quest/articles/12-golden-signals-to-discover-anomalies-and-performance-issues-on-your-aws-rds-cf137579c043c8e4.md): Zalando Engineering · 2024-02-19 · Medium · 7 min read · Observability, PostgreSQL, Cloud platforms, Performance engineering, SRE
  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.
- [Incident Review: Pageserver outage in us-east-1](https://swe.quest/articles/incident-review-pageserver-outage-in-us-east-1-0597b32138c02b21.md): Neon · 2024-08-21 · Medium · 6 min read · Incidents & postmortems, Resilience, Distributed databases, PostgreSQL, Scheduling
  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.
- [Slack’s Incident on 2-22-22](https://swe.quest/articles/slack-s-incident-on-2-22-22-7a35cde32cfb5fd8.md): Slack Engineering · 2022-04-26 · Medium · 12 min read · Incidents & postmortems, Caching, Resilience, MySQL, Distributed systems
  A Consul agent rolling restart caused Mcrib, Slack's memcached control plane, to replace and flush cache nodes, dropping hit rates during peak traffic.
- [Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog](https://swe.quest/articles/failure-is-inevitable-learning-from-a-large-outage-and-building-for-reliability-917bd748ed64f6fb.md): Datadog Engineering · 2025-10-15 · Medium · 12 min read · Resilience, Incidents & postmortems, SRE, Kubernetes, Chaos engineering
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
