DataReed-Solomonparity fragments

Erasure coding

Definition

Erasure coding encodes an object into k data fragments and m parity fragments, stored on different devices or zones, such that any k of the k + m fragments reconstruct the original.

In practice

It gives the same or better loss tolerance as replication at a fraction of the storage: a 6 + 3 scheme survives losing any 3 fragments, such as a whole zone, at 1.5 times the raw size instead of 3 times for three copies. Object stores and distributed file systems use it for most data, with background checks repairing lost fragments.

The cost moves to CPU and network: writes must compute parity, reads during a failure must fetch k fragments and decode, and repairing one lost disk reads data from many others. Small objects or hot data are often replicated instead, because the overhead per object outweighs the space saving.

Example

A 60 MB object is split into six 10 MB data fragments and three parity fragments, three per zone; when one zone fails, the six remaining fragments rebuild it.