---
title: "Augmenting Flexible Paxos in LogDevice to improve read availability"
description: "LogDevice, Meta's distributed log store built on flexible Multi-Paxos, removed a core Flexible Paxos trade-off."
url: "https://swe.quest/articles/augmenting-flexible-paxos-in-logdevice-to-improve-read-availability-1636941d1f8188f4"
canonical: "https://engineering.fb.com/2022/03/07/core-infra/augmenting-flexible-paxos-logdevice/"
source: "Meta Engineering"
published: "2022-03-07"
difficulty: "hard"
kind: "Case study"
reading_minutes: 10
tags: ["consensus","distributed-systems","replication","resilience"]
---

# Augmenting Flexible Paxos in LogDevice to improve read availability

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2022-03-07, 10 min read, Case study. Original: [https://engineering.fb.com/2022/03/07/core-infra/augmenting-flexible-paxos-logdevice/](https://engineering.fb.com/2022/03/07/core-infra/augmenting-flexible-paxos-logdevice/)

## Summary

LogDevice, Meta's distributed log store built on flexible Multi-Paxos, removed a core Flexible Paxos trade-off. Small write quorums had made leader election need large quorums, so routine maintenance and failures often left recovery stuck and broke read SLAs. The fix has the active leader track a reduced write set of available acceptors and persist it through a special reconfiguration write that every future leader sees during election. A quorum over that write set is then enough to elect a new leader. After rollout, stuck recoveries dropped to zero, read availability SLA misses largely disappeared, and the ZooKeeper-based membership fallback is no longer needed for leader failover, which enabled linearizable writes.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Consensus](https://swe.quest/tags/consensus.md) (Distributed systems)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)

## Prerequisites

- Paxos consensus ([easy posts on Consensus](https://swe.quest/tags/consensus.md?difficulty=easy))
- quorum systems
- replicated logs

## Keywords

LogDevice, Flexible Paxos, Multi-Paxos, DPaxos, ZooKeeper, Meta

## Related posts

- [Building and deploying MySQL Raft at Meta](https://swe.quest/articles/building-and-deploying-mysql-raft-at-meta-7a90b8f5fc15ecc0.md): Meta Engineering · 2023-05-16 · Hard · 18 min read · MySQL, Consensus, Replication, Distributed databases
  Meta replaced its MySQL semisynchronous replication, whose failover and membership changes were orchestrated by external Python automation, with MySQL Raft, a Raft consensus engine built into mysqld.
- [Choosing QuePaxa, an unusual consensus algorithm](https://swe.quest/articles/choosing-quepaxa-an-unusual-consensus-algorithm-8142736b7b34aaea.md): Cloudflare · 2026-11-11 · Hard · 18 min read · Consensus, Distributed systems, Resilience, Replication
  Cloudflare's Meerkat, a globally distributed consensus service for its internal control plane, uses QuePaxa instead of Raft or Multi-Paxos.
- [How we built a general purpose key value store for Facebook with ZippyDB](https://swe.quest/articles/how-we-built-a-general-purpose-key-value-store-for-facebook-with-zippydb-852970eb82fe8238.md): Meta Engineering · 2021-08-06 · Hard · 10 min read · Distributed databases, Replication, Consistency models, Consensus, Multi-tenancy
  ZippyDB is Facebook's largest strongly consistent, geo-distributed key-value store, built by layering a reusable replication library (Data Shuttle) on RocksDB, Shard Manager and a ZooKeeper-based config service.
- [How we use formal modeling, lightweight simulations, and chaos testing to design reliable distributed systems](https://swe.quest/articles/how-we-use-formal-modeling-lightweight-simulations-and-chaos-testing-to-design-aca03cf9b6abf48d.md): Datadog Engineering · 2024-11-20 · Hard · 23 min read · Formal methods, Queues & messaging, Distributed systems, Chaos engineering, Multi-tenancy
  Datadog validated the design of Courier, a multi-tenant message queue built on multiple FoundationDB clusters after its March 2023 outage, by combining TLA+ formal modeling, lightweight simulations and chaos testing.
- [When failover isn’t safe: Building high-availability PostgreSQL on Kubernetes](https://swe.quest/articles/when-failover-isn-t-safe-building-high-availability-postgresql-on-kubernetes-ee0014d4b5265bb2.md): Datadog Engineering · 2026-06-04 · Medium · 22 min read · PostgreSQL, Replication, Kubernetes, Resilience, Chaos engineering
  A staging gameday simulating zonal network latency left Datadog's Kubernetes-hosted PostgreSQL clusters stuck: with asynchronous replication, every standby exceeded Patroni's maximum\_lag\_on\_failover, so no failover candidate could be promoted safely.

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)
