Distributed SystemsVol. 5 · Part V
0 / 0

Shelves / Distributed Systems

DS·78

Distributed Failure Modes

A field guide to how distributed systems actually fail, with the mechanism, symptoms, detection and defences for each: network partitions (including partial and asymmetric ones), packet loss, timeouts, duplicate requests, stale reads, delayed and reordered messages, partial writes, unavailable and overloaded dependencies, poison messages, split brain, cascading failures, retry storms, metastable failures and gray failures, plus how to practise them with chaos engineering and real incident lessons.

33 topics · ~21 min read · 30-question quiz
Updated Suggest a correction

Start here: how one slow service takes down another

Failures that aren't crashes

A crashed service is easy to notice: connections are refused, health checks fail, traffic moves elsewhere. The failures that cause the worst incidents are partial: a dependency that becomes slow, a link that drops 2% of packets, a disk that takes seconds per write, a cache that returns stale data. Watch what a slow dependency does to a service that waits on it politely:

Text
1) service A has 10 worker threads; dependency B is healthy
   no protection: menu 40/40 OK, median 0.03 s; /health (doesn't use B): 200 in 0.00 s, 200 in 0.00 s, 200 in 0.00 s
2) B becomes slow (3 s per call, via Toxiproxy)
   no timeouts: menu 30/40 OK, median 7.50 s; /health (doesn't use B): timeout in 3.00 s, timeout in 3.00 s, timeout in 3.00 s
   300 ms timeout + bulkhead of 4 workers for B: menu 0/40 OK, median 0.01 s; /health (doesn't use B): 200 in 0.00 s, 200 in 0.00 s, 200 in 0.00 s

With B slow, all 10 of A's workers were soon blocked waiting on B, so even /health, which never touches B, timed out. To a load balancer, A now looks dead; in a real system, A's callers would block on A in turn. That's a cascading failure: one slow component exhausts the resources of everything upstream.

The protected version failed the menu requests fast (a 300 ms timeout, and at most 4 of A's 10 workers allowed to wait on B: a bulkhead), so A stayed healthy and could serve everything that didn't need B. A good next step would be a fallback (yesterday's cached menu prices) instead of an error.

The standard defences

Defence What it does Where it bit in this volume
Timeouts on every remote call Bounds how long a worker can be held Start Here chapter; above
Bulkheads Separate pools per dependency, so one can't take all workers Above
Retries with backoff, jitter and budgets Recovers from transient errors without amplifying load Chapter 74; lab experiment 1
Circuit breakers Stop calling a failing dependency for a while; fail fast Lab experiment 2
Load shedding and rate limits Reject excess work early Chapter 76
Fallbacks and graceful degradation Serve something useful when a dependency is down Above
Idempotency Makes retries safe Chapters 68, 74
Health checks that test real work Detect gray failures Lab experiment 3

How deep to go in distributed failure modes

Volume 17 defines six mastery levels. For this chapter they look like this; the chapter aims at L3 everywhere, and its lab at L4.

Level What you can do
L1 Recognise partial failure, slow dependencies, cascades and gray failures
L2 Apply timeouts, retries with backoff, breakers, bulkheads and fallbacks with a library
L3 Explain metastable failures, retry storms, tail latency at scale and their defences
L4 Diagnose cascades and gray failures from metrics, traces and fault injection
L5 Design failure handling, degradation modes and dependency budgets for a system
L6 Run chaos engineering and game days; build organisation-wide resilience standards

How to read this chapter

Every earlier chapter in this volume defended against specific failures. This one lists them as failures: what happens, how it looks from the outside, and what to do. For each, ask the four questions on every design review:

  1. Can it happen here? (Almost always yes.)
  2. What does the system do when it happens? (Designed behaviour, not accident.)
  3. How would we know? (Metrics, alerts, traces.)
  4. How do we recover? (Automatic, or runbook.)

Network failures

Network partition

What: nodes are split into groups that can't communicate, while each group keeps running. Causes: switch or router failure, misconfigured firewall rules or security groups, BGP or DNS problems, a cloud zone losing connectivity, cable cuts, NIC failures, even a long GC pause (from the outside, it looks identical).

Studies of real networks (Bailis and Kingsbury, "The Network is Reliable", 2014; Alquraan et al., OSDI 2018) found partitions are common and cause catastrophic failures in many popular systems: data loss, stale reads, broken locks, data corruption.

Kinds:

  • Complete: A and B can't talk at all.
  • Partial: A↔B is broken, but both can talk to C. Leader election can flap as C relays conflicting views (a known source of bugs in Raft implementations without check-quorum/pre-vote).
  • Asymmetric (one-way): A can send to B, but B's replies don't reach A. A thinks B is dead; B thinks A is fine.
  • Flapping: connectivity goes on and off rapidly, triggering repeated failovers.

Defences: decide CP or AP per operation (chapter 70); majority quorums so only one side can act (chapter 72); fencing (chapter 77); pre-vote and check-quorum in Raft; test with partition injection.

Packet loss, latency spikes and timeouts

What: some packets are dropped or delayed. TCP retransmits, so losses appear as latency spikes (minimum retransmission timeout is ~200 ms on Linux by default) rather than errors. At 1% packet loss, tail latency explodes even though "the network works".

Timeouts are how every other failure becomes visible, but they're ambiguous (chapter 65): the operation may have succeeded.

Defences: timeouts on every remote call (connect, read, total); deadlines propagated downstream; hedged requests for idempotent reads (send a second request after the p95 latency, take the first reply); idempotent retries; monitoring retransmits and per-link latency.

Delayed and reordered messages

What: a message arrives much later than sent, or after messages sent later. Causes: retries, multiple paths or connections, queues with parallel consumers, retry queues, replays, clock-ordered merges.

Consequences: an "update" processed before the "create"; a stale "status = pending" overwriting "status = shipped"; an old leader's delayed message accepted after a new leader took over.

Defences: sequence numbers or versions per entity, with "apply only if newer" (WHERE version < $new); epochs/terms on all control messages; per-key ordering (same partition) where order matters; designing commutative operations (CRDTs, chapter 71); buffers that reorder by sequence number within a window.

Duplicate requests

What: the same operation arrives more than once: client retries after timeouts, at-least-once delivery, user double-clicks, proxies retrying, replays.

Defences: idempotency keys, unique constraints, dedup tables in the same transaction, idempotent state transitions (chapter 74).

Data failures

Stale reads

What: a read returns an outdated value. Causes: async replica lag, caches (TTL-based or after failed invalidation), eventual consistency, a deposed leader serving reads, DNS caching, client-side caches.

Symptoms: users don't see their own changes, items reappear after deletion, decisions made on old data (overselling, double booking).

Defences: pick the consistency model per operation (chapter 69); read-your-writes techniques (leader reads after writes, version tokens); never base invariant-critical decisions on cached or replica reads: re-check at write time with conditional writes; linearizable reads (ReadIndex, leases) where needed.

Partial writes

What: an operation that should update several things updates only some. Causes: crash between two writes (dual write, chapter 68); multi-step operations without transactions; batch jobs failing halfway; torn writes on disk (a crash mid-page write); multi-part uploads abandoned.

Symptoms: orphaned records (charge without order), counts that don't match details, inconsistent denormalised copies, corrupted files.

Defences: local transactions; outbox for "DB + message"; sagas with compensation for cross-service steps (chapter 73); idempotent, resumable batch jobs with checkpoints; write-ahead logs and checksums in storage (Vol. 4 ch. 58); atomic rename patterns for files (write temp, fsync, rename); reconciliation jobs that find and repair inconsistencies.

Poison messages

What: a message that always fails processing (malformed payload, schema mismatch, a value triggering a bug, a reference to deleted data). In a queue with redelivery it loops forever; in an ordered log (Kafka partition), it blocks the whole partition behind it, so consumer lag grows for every key in that partition.

Defences:

  • Distinguish transient (retry with backoff) from permanent errors (don't retry).
  • Bounded retries, then a dead-letter queue / topic with error metadata (chapter 66; Kafka: Spring Kafka DefaultErrorHandler + DeadLetterPublishingRecoverer, Kafka Streams DLQ in 4.x; RabbitMQ delivery limits; SQS redrive).
  • Schema validation at the producer and Schema Registry compatibility (chapter 67).
  • Alerting on DLQ depth, and tooling to inspect, fix and redrive.
  • For ordered streams, decide whether skipping one message is acceptable for that key (often requires parking subsequent messages for the same key too).

Split brain

What: two nodes both believe they're the leader/primary/lock holder and act concurrently. Causes: partition plus failure detection on both sides; GC pause; failover without fencing; two-node clusters with no tie-breaker; manual promotion mistakes.

Symptoms: divergent data, conflicting writes, duplicate processing, corruption that surfaces later.

Defences: majority quorums (never a two-node cluster without a witness/arbiter); epochs and fencing tokens checked by the storage (chapter 71, 77); STONITH; leases with safety margins; leaders that step down when they lose contact with a quorum (check-quorum).

Dependency failures

Unavailable dependency

What: a downstream service, database, cache or third-party API is down or unreachable.

Defences (Vol. 3 ch. 52 has the code):

  • Timeouts to fail fast.
  • Circuit breakers to stop calling a failing dependency and give it room to recover.
  • Fallbacks: cached or stale data, default values, a degraded feature (hide recommendations), queue the work for later.
  • Bulkheads so one dependency's failure doesn't consume all threads and connections.
  • Asynchronous decoupling via queues for work that doesn't need an immediate answer.
  • Avoid hard dependencies at startup (a service that can't start because a non-critical dependency is down extends outages).

Overloaded dependency

What: the dependency is up but slow, because demand exceeds capacity. This is often worse than being down: callers wait (holding resources) instead of failing fast, and their retries add load.

Signs: rising latency before errors; queue depth and in-flight counts climbing; timeouts rather than refusals.

Defences: concurrency limits and adaptive limits (chapter 76); load shedding at the dependency; deadline propagation so no one works on abandoned requests; backpressure; capacity headroom and autoscaling (which takes time, so it isn't an instant defence).

Systemic failures

Retry storms

What: when a service slows or fails, every client retries, multiplying load exactly when capacity is lowest. With layered retries, the multiplication compounds: 3 retries at each of 4 layers means up to 4⁴ = 256 attempts at the bottom for one user request.

user1 request gateway× 4 attempts service A× 4 = 16 service B → DB× 4 = 64 fixes: retry at ONE layer · retry budget (≤10%) · backoff + jitter circuit breakers · honour Retry-After · don't retry on overload signals
Retry amplification across layers. If each of three layers retries up to three times (four attempts), a single user request can become 4 × 4 × 4 = 64 requests at the database when it's struggling, turning a brief slowdown into a sustained outage.

Defences:

  • Retry in one layer (usually closest to the user or the edge), not all.
  • Retry budgets: retries may add at most ~10% to traffic; Envoy and gRPC support budgets.
  • Exponential backoff with full jitter to spread retries out (synchronised retries arrive in waves).
  • Circuit breakers and client-side adaptive throttling (chapter 76).
  • Don't retry non-idempotent operations without keys, and don't retry on overload responses (429/503 with Retry-After: wait).

Thundering herds and synchronised behaviour

Related failures come from many clients acting at the same time:

  • Cache entry expires and thousands of requests miss simultaneously, all hitting the database (cache stampede). Defences: request coalescing / single-flight, early probabilistic refresh, stale-while-revalidate, leases (Vol. 4 ch. 62).
  • Every client reconnects at once after an outage, overwhelming the recovering service. Defence: jittered reconnect delays.
  • Cron jobs scheduled at 0 * * * * across a fleet hit shared resources at the top of each hour. Defence: jitter schedules.
  • After a partition heals, a flood of hinted handoffs, repairs and rebalances competes with live traffic. Defence: throttled recovery.

Cascading failures

What: a failure in one component propagates to others, growing until the whole system is down. Typical chain:

  1. Service C slows (a bad deploy, a hot shard, GC).
  2. Service B's threads all wait on C; B's latency rises; B's queues fill.
  3. Service A's calls to B time out; A retries, adding load to B and C.
  4. Health checks on B fail because B is saturated; the load balancer removes B instances, sending more load to the remaining ones, which then also fail.
  5. Autoscaling starts new instances, which cold-start (empty caches, JIT warm-up), and fail under full load.

Defences: timeouts and bulkheads at every hop; circuit breakers; load shedding with priorities; limited retries; health checks that measure the instance itself, not its dependencies (a dependency outage shouldn't make every instance fail health checks); minimum healthy capacity limits on ejection (Envoy's max_ejection_percent); slow-start for new instances; capacity reserves; graceful degradation.

Metastable failures

What (Bronson et al., HotOS 2021; Huang et al., OSDI 2022): a system enters a bad state that sustains itself even after the trigger is gone. A short spike (a deploy, a brief network blip) pushes the system into overload; a sustaining effect (retries, cache misses that create more load, queues full of requests whose clients have given up) keeps it there at normal load. The system is stable in two states: healthy at load X, and broken at the same load X.

stableload below capacity metastable failuresame load, low goodput trigger: spike, deploy, cache flush recovery: shed load / break the loop timeouts → retries → more load
Metastable failure. A trigger pushes the system from the stable healthy state into an overloaded state; a sustaining feedback loop (retries, cold caches, work on abandoned requests) keeps it overloaded even after the trigger ends, until load is shed or the loop is broken.

Sustaining effects to look for: retries; work done for requests already timed out at the client; cache hit rate collapse (each miss costs more, so more misses time out before populating the cache); connection storms after reconnects; GC thrashing as memory fills with queued requests.

Defences: break the loop: shed load (and do it early, cheaply), discard requests past their deadlines, cap retries, protect caches from stampedes, keep operational levers ready (rate limits you can lower, features you can switch off, traffic you can drain). Recovery often requires reducing load below normal temporarily, then ramping back up.

Gray failures

What (Huang et al., HotOS 2017): a component is partially failing in a way that health checks don't see but users do: a node with a degraded disk serving slowly, a NIC dropping 2% of packets, one bad CPU core corrupting computations ("silent data corruption"), a service returning 200 with wrong data, a dependency failing only for some requests.

The problem is differential observability: the failure detector's view says "healthy" while the application's view says "broken".

Defences: health checks that exercise real work paths; outlier detection comparing instances with each other (latency and error rates per host); end-to-end synthetic probes and SLO monitoring from the user's perspective; checksums end to end; letting callers report problems (client-observed failure feeds back into routing, as in Envoy's outlier detection).

Clock and time failures

Covered in chapter 75; as failure modes: clock jumps breaking timeouts and leases, skewed clocks breaking LWW ordering and certificate checks, leap second bugs, and expiring certificates and tokens (a frequent cause of large outages, since expiry is a time bomb set long ago).

Configuration, deployment and human failures

Studies of cloud incidents consistently find that changes cause a large share of outages: configuration pushes, deployments, and operator actions. Distributed-specific versions:

  • A bad configuration pushed globally at once (one region at a time would have contained it).
  • Version skew during rolling deploys: old and new versions speaking incompatible protocols or schemas.
  • Capacity removed during maintenance just as load rises.
  • Automation that acts on wrong or stale information at machine speed (an autoscaler scaling to zero on a broken metric).

Defences: staged rollouts (canary, one cell, one region), automatic rollback on SLO regression, backward- and forward-compatible changes (expand-contract), feature flags, change freezes around peaks, and blast-radius reduction via cells (independent copies of the stack serving subsets of customers, Vol. 9).

Practising failure

Chaos engineering

Chaos engineering (pioneered by Netflix's Chaos Monkey, 2011; principles at principlesofchaos.org): run controlled experiments that inject failures into production-like (or production) systems to find weaknesses before real incidents do:

  1. Define steady state with metrics (orders per minute, p99 latency, error rate).
  2. Hypothesise it holds under a failure ("losing one zone doesn't change checkout success rate").
  3. Inject the failure, with a small blast radius and an abort switch.
  4. Compare; fix what breaks; widen the experiment gradually; automate it.

Tools: AWS Fault Injection Service, Azure Chaos Studio, Chaos Mesh and LitmusChaos (Kubernetes, CNCF), Gremlin, Toxiproxy (Shopify; network faults for tests), tc netem (Linux latency, loss, reordering), iptables drops for partitions, Jepsen for correctness under faults, and deterministic simulation (chapter 65).

Shell
# Linux tc/netem: add 100 ms ± 20 ms latency, 1% loss, and 0.5% reordering on eth0 (test environments!)
sudo tc qdisc add dev eth0 root netem delay 100ms 20ms loss 1% reorder 0.5% 50%
# Simulate a partition from one peer
sudo iptables -A INPUT -s 10.0.1.12 -j DROP && sudo iptables -A OUTPUT -d 10.0.1.12 -j DROP
# Clean up
sudo tc qdisc del dev eth0 root; sudo iptables -D INPUT -s 10.0.1.12 -j DROP; sudo iptables -D OUTPUT -d 10.0.1.12 -j DROP
// Go: Toxiproxy in an integration test, cut Postgres traffic and assert the service degrades correctly
proxy, _ := toxiClient.CreateProxy("pg", "localhost:25432", "postgres:5432")
_, _ = proxy.AddToxic("slow", "latency", "downstream", 1.0, toxiproxy.Attributes{"latency": 2000})
resp := callAPI(t, "/orders/42")                       // service must time out fast and serve a fallback
require.Equal(t, http.StatusOK, resp.StatusCode)
require.True(t, resp.Header.Get("X-Degraded") == "true")
_ = proxy.Disable()                                    // now a full outage: expect circuit breaker to open

Game days and incident learning

  • Game days: scheduled exercises where teams run failure scenarios (zone loss, database failover, dependency outage) and practise detection and runbooks.
  • Blameless postmortems: what happened, why the system allowed it, how detection and response went, and action items that remove whole classes of failure.
  • Read others' incidents: public postmortems from AWS (2011 EBS re-mirroring storm; 2021 us-east-1 internal network congestion), Google, Cloudflare (2019 regex CPU exhaustion; 2025 configuration-driven global outages), GitHub (2018 43-second partition causing 24 hours of degradation), Meta (2021 BGP withdrawal), CrowdStrike (2024 global content update). Most show the same themes: global changes, retry storms, hidden dependencies (including on the tools needed to recover), and recovery that takes far longer than the trigger.

Summary table

Failure First defences
Network partition Quorums, CP/AP choice per operation, fencing
Packet loss / latency spikes Timeouts, hedging, idempotent retries
Timeout (unknown outcome) Idempotency keys, reconciliation
Duplicate request Dedup, unique constraints, idempotent transitions
Stale read Consistency per operation, re-check at write, version tokens
Delayed / reordered message Versions, epochs, per-key ordering, commutative ops
Partial write Transactions, outbox, sagas, resumable jobs, reconciliation
Unavailable dependency Timeouts, circuit breakers, fallbacks, bulkheads, async
Overloaded dependency Concurrency limits, shedding, deadlines, backpressure
Poison message Bounded retries, DLQ, validation, redrive tooling
Split brain Majorities, fencing tokens, STONITH, check-quorum
Cascading failure Bulkheads, shedding, independent health checks, ejection limits
Retry storm One retry layer, budgets, jittered backoff, breakers
Metastable / gray failure Break sustaining loops, outlier detection, user-perspective SLOs

Lab: injecting failures with Toxiproxy

Services A and B from the on-ramp (Python ThreadingHTTPServer; A limits itself to 10 workers), with Toxiproxy 2 between A and B. Experiment 4 is a simulation.

Experiment 1: retries multiply load on a failing dependency

B returns 500 for every request (its database is down). 20 user requests:

Text
A retries 0×, the client retries 0×: B received 20 calls  (1 per request)
A retries 2×, the client retries 0×: B received 60 calls  (3 per request)
A retries 2×, the client retries 2×: B received 180 calls (9 per request)

Each layer's retries multiply with the layers above. With a third layer the factor is 27, so a dependency that's struggling at 100% load receives 2,700%. Retry storms can keep a system down after the original cause is fixed (a metastable failure). Remedies: retry at one layer (usually the outermost that knows the request is idempotent), cap retries with a retry budget (for example, retries ≤ 10% of requests, as in Finagle and gRPC's retry throttling), back off exponentially with jitter, and don't retry errors that won't change (400s, or 503 with a long Retry-After).

Experiment 2: a circuit breaker against a slow dependency

B answers in 3 s (latency toxic); A uses a 300 ms timeout. A client calls /menu as fast as it can for 6 seconds:

Text
timeout only (300 ms):                                      20 requests,   median 302 ms, calls that reached B 20
circuit breaker (opens after 5 failures, retries after 2 s): 4035 requests, median 1 ms,   calls that reached B 10

With only a timeout, every request still paid 300 ms and still hit B. The breaker opened after five failures, so A answered immediately for 2 seconds, then let a trial call through (half-open), failed, and opened again: B got 10 calls in 6 seconds instead of one per request, leaving it room to recover, and A's users got fast answers (where a fallback could go). Resilience4j, Polly, Envoy's outlier detection and Istio's circuit breaking implement the same states: closed, open, half-open.

Experiment 3: a gray failure that health checks miss

B's link is throttled to 25 KB/s (a failing NIC, a saturated link, a noisy neighbour):

Text
health-style check (tiny response): HTTP 200, 13 bytes in 0.01 s
catalog page (50 kB response):      HTTP 200, 52,011 bytes in 2.10 s

Everything returned 200, and the health check was instant, so the load balancer kept sending traffic while users waited over two seconds per page. This is a gray failure: the system looks healthy to one observer and broken to another. Detect it from the users' side: latency SLOs on real endpoints, synthetic checks that exercise real work, and outlier detection that compares one instance's latency with its peers'.

Experiment 4: the tail at scale

A request fans out to N backends and waits for all of them; each backend is slow (1 s) 1% of the time:

Text
fan-out to   1 backends:  0.7% of requests slow; with hedged requests after 30 ms: 0.0%
fan-out to  10 backends: 10.5% of requests slow; with hedged requests after 30 ms: 0.1%
fan-out to 100 backends: 63.3% of requests slow; with hedged requests after 30 ms: 1.2%

A rare problem on each backend became the common case for a request that touches 100 of them: 1 − 0.99¹⁰⁰ ≈ 63%. Dean and Barroso's "The Tail at Scale" (2013) describes hedged requests: if a backend hasn't answered by roughly its p95, send the same request to another replica and take whichever answers first. Here that cut slow requests from 63% to about 1% for a few percent of extra load. Hedging requires idempotent reads, and should be capped so it can't double load during an overload.

Try it yourself

  1. Add jittered exponential backoff and a 10% retry budget to experiment 1. How many calls reach B?
  2. Use Toxiproxy's reset_peer and timeout toxics on B and compare what A's users see with each.
  3. Add per-instance latency outlier detection to A's caller: eject an instance whose p99 is 3× its peers'.
  4. Run a game day: inject 2 s latency into one dependency of a real service in a staging environment and record which alerts fire, and when.

Revision sheet: distributed failure modes

Key ideas

  • Network failures: partitions, packet loss, latency spikes, asymmetric reachability, DNS failures, MTU and TLS problems.
  • Data failures: corruption, lost writes, replication divergence, clock-driven anomalies, poison messages.
  • Dependency failures: slow dependencies, thread/connection pool exhaustion, cascades, retry storms, thundering herds and cache stampedes.
  • Systemic failures: metastable failures, overload and congestion collapse, correlated failures (same AZ, same deploy, same certificate expiry), gray failures.
  • Human and config failures: bad deploys and config pushes (the most common cause of outages), expired certificates, quota exhaustion, runbook errors.
  • Defences: timeouts, retries with backoff/jitter/budgets, idempotency, circuit breakers, bulkheads, load shedding, fallbacks, hedging, deadlines propagation, progressive delivery, feature flags.
  • Practice: fault injection (Toxiproxy, Chaos Mesh, AWS FIS, Gremlin), game days, Jepsen-style testing, blameless postmortems.

Numbers to remember

  • Fan-out tail: P(slow) = 1 − (1 − p)ⁿ; 1% per backend over 100 backends = 63%.
  • Lab: slow B blocked A's /health; timeout + bulkhead kept it instant; retries at two layers made 9 calls per request; a breaker cut B's calls from one per request to 10 in 6 s; a throttled link passed health checks while pages took 2.1 s; hedging cut 63% slow requests to 1.2%.

Pitfalls

  • Libraries with infinite or very long default timeouts.
  • Retries at every layer.
  • Health checks that don't exercise real dependencies, or that fail the whole instance because one optional dependency is down.
  • One shared pool for all dependencies.
  • Breakers with no fallback, or fallbacks that hit the same broken dependency.
  • Testing only crash failures, never slowness.

Glossary

  • Cascading failure: failure propagating through dependencies.
  • Metastable failure: a bad state sustained by its own effects (e.g. retries) after the trigger is gone.
  • Gray failure: partial failure visible to some observers but not others.
  • Bulkhead: resource isolation per dependency or tenant.
  • Hedged request: duplicate request sent after a delay to cut tail latency.
  • Game day: planned exercise injecting failures into a system.