---
title: "BellJar: A new framework for testing system recoverability at scale"
description: "BellJar is Meta's framework for proving that infrastructure services can recover from a total outage."
url: "https://swe.quest/articles/belljar-a-new-framework-for-testing-system-recoverability-at-scale-7811c5029ecc4a97"
canonical: "https://engineering.fb.com/2022/05/05/developer-tools/belljar/"
source: "Meta Engineering"
published: "2022-05-05"
difficulty: "medium"
kind: "Case study"
reading_minutes: 15
tags: ["chaos-engineering","resilience","testing","sre","distributed-systems"]
---

# BellJar: A new framework for testing system recoverability at scale

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2022-05-05, 15 min read, Case study. Original: [https://engineering.fb.com/2022/05/05/developer-tools/belljar/](https://engineering.fb.com/2022/05/05/developer-tools/belljar/)

## Summary

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

Written by swe.quest, not by the author.

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

## Topics

- [Chaos engineering](https://swe.quest/tags/chaos-engineering.md) (Reliability & operations)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [SRE](https://swe.quest/tags/sre.md) (Reliability & operations)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)

## Prerequisites

- service dependencies
- fault injection ([easy posts on Chaos engineering](https://swe.quest/tags/chaos-engineering.md?difficulty=easy))
- disaster recovery runbooks

## Keywords

BellJar, Meta, Apache ZooKeeper

## 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.
- [A Descent Into the Vörtex](https://swe.quest/articles/a-descent-into-the-vortex-6dcd52020263ac13.md): TigerBeetle · 2025-02-13 · Medium · 3 min read · Testing, Chaos engineering, Distributed databases, Zig
  TigerBeetle has added Vortex, a non-deterministic, generative full-system test harness that complements its Deterministic Simulation Testing by exercising real production binaries and client libraries from the outside in.
- [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.
- [Autonomous testing of services at scale](https://swe.quest/articles/autonomous-testing-of-services-at-scale-54aa6a1bfbfb71d4.md): Meta Engineering · 2021-10-20 · Medium · 13 min read · Testing, Microservices, RPC & gRPC, Sandboxing & isolation, Developer productivity
  Meta built an integration testing framework for back-end services that reuses production containerization and routing to spin up ephemeral test environments, with per-service boundaries where requests go to local services, in-process Python mocks, in-memory replicas, production (read-only) or are blocked.
- [Protocol-Aware Deterministic Simulation Testing](https://swe.quest/articles/protocol-aware-deterministic-simulation-testing-7f3b613be8faf2a6.md): TigerBeetle · 2026-08-20 · Hard · 10 min read · Formal methods, Testing, Consensus, Replication, Storage engines
  TigerBeetle's deterministic simulator (the VOPR) has full visibility into each replica's consensus and storage state, so it can check invariants that black-box tools like Jepsen or Antithesis cannot see through user-facing APIs.

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)
