locally-repairable-code · shipping · also LRC, local reconstruction code

Locally repairable code

A locally repairable code is an erasure code that provides recovery of specified missing fragments from a small subset of surviving fragments.

Data locality and all-fragment locality differ. In a (6, 2, 2) construction, 2 local parities each cover 3 of the 6 data fragments, so a lost data fragment or local parity is rebuilt from 3 fragments, half the 6 a (6, 3) Reed-Solomon code reads. A lost global parity still needs 6 fragments, giving an average repair cost of 3.6 fragments at a storage cost of 1.67x. [4]

The coding equations determine which erasure patterns remain decodable; local redundancy is not interchangeable with global redundancy. With suitable coefficients the same construction tolerates any 3 failures and decodes every information-theoretically decodable 4-failure pattern. [4]

Maximal recoverability is a stronger, topology-relative property, not a synonym for locality. Four erased fragments may be recoverable in one arrangement and unrecoverable in another with the same parity count. [3]

Matching locality and minimum distance does not ensure matching recovery beyond the worst-case distance. The actual global coefficients must preserve the needed independent equations in every allowed surviving set. [3]

Complete stripe recovery and recovery of a requested missing symbol are different questions. For a linear code and a fixed set of correct surviving symbols, the target's generator vector must lie in the span of the surviving generator vectors. A local repair equation may remain usable even when the survivors do not determine the whole payload. This algebraic possibility does not guarantee that an implementation serves a partially recoverable object; layout, integrity checks and access policy still matter. [5]

Relations

related
Pyramid code, Erasure coding, Reed–Solomon codes (storage), Repair locality, Repair-read amplification, Maximally recoverable code, Normalized magnitude of data loss (NOMDL), Maximum repair load, Shingled Erasure Code

Advantages

  • A local repair can avoid contacting fragments outside the affected group; response time still depends on placement, load and the available repair choices. [4]

Limitations

  • Only 86% of all 4-failure patterns are decodable in the (6, 2, 2) example, even though it stores 4 parity fragments. [4]
  • A code's locality need not be exploited by its read path. In the 2018 Ceph implementation described by Kolosov and colleagues, degraded reads reconstructed the whole object at the primary OSD and read k data blocks even when r blocks sufficed for local repair. The authors reported no observable degraded-read difference between MDS codes and LRCs in that setup. This is a historical implementation observation, not a claim about all current Ceph versions. [6]

Citations

  1. Gopalan et al. Explicit Maximally Recoverable Codes with Locality. IEEE TIT (2014), section II: Definition 3 and Lemma 4. (accessed 2026-10-28)
  2. Huang et al. Erasure Coding in Windows Azure Storage. USENIX ATC 2012, sections 2 and 3.1. (accessed 2026-10-23)
  3. Gopalan et al. On the Locality of Codeword Symbols, section 2, Definition 2: symbol recovery by linear dependence. (accessed 2026-10-28)
  4. Kolosov et al. On Fault Tolerance, Locality, and Optimality in Locally Repairable Codes. USENIX ATC 2018, section 5, p. 871. (accessed 2026-10-28)

Further reading

  1. Ceph: Locally Repairable Erasure Code Plugin (development documentation; parameter names are implementation-specific). (accessed 2026-10-11)
  2. Local repair is not whole-node repair (accessed 2026-10-11)
Sources & caveats
  • lrc-atc12 read 2026-10-23, sections 2 and 3.1, for the (6, 2, 2) layout, repair costs, storage cost and decodability ratio.
  • mr-locality re-read 2026-10-23 for Definition 3 and Lemma 4.
  • A cluster-storage plugin manual is listed but not used in prose.
  • A companion analysis on repair costs is listed but not used in prose.
  • symbol-locality read 2026-10-28, section 2, Definition 2. Applied to a fixed surviving set; implementation availability is a separate condition. The companion's fixed GF(7) example checks partial identifiability without changing the original whole-payload counts.
  • lrc-atc18-read-path read 2026-10-28, section 5, p. 871, for the historical whole-object degraded-read path; no current-version behavior or new latency measurement is inferred.

JSON: /data/terms/locally-repairable-code.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Locally repairable code. Hesela. 2026-10-28. https://hesela.dev/terms/locally-repairable-code/