Reliabilityfault-tolerantfault vs failure

Fault tolerance

Definition

Fault tolerance is the property of continuing to meet a service's specification despite faults; a fault is a component going wrong, a failure is users not getting correct service.

In practice

Faults are certain at scale: disks die, processes crash, networks drop packets. A fault-tolerant design keeps faults from becoming failures through redundancy, health checks and failover, timeouts and retries, and replication of data. The time between a fault and its detection is usually where users see errors.

Tolerance is always for a named set of faults, such as one instance, one zone, or one region. Correlated faults (the same bad deploy everywhere, a shared dependency) defeat redundancy, and gray failures that look healthy slip past detection. More tolerance costs capacity and complexity, so it should match the availability target.

Example

Three replicas behind a load balancer with 5-second health checks tolerate one instance crash: users see at most a few seconds of errors on a third of requests, then nothing.