Copies are a costly way to protect data. Erasure coding protects it with far less extra space. The erasure coding calculator gives the usable capacity, the overhead, the number of failures tolerated and the rebuild reads of a k+m code, and compares it with 3-way replication.
How the calculation works
- Enter the number of data shards k and the number of parity shards m of the code, written k+m (for instance 8+3).
- Enter the capacity of each drive. The calculator assumes that every shard of a stripe is on a different drive.
- The usable capacity is k × drive size, the overhead is (k + m) / k, and the code tolerates the loss of m drives.
- The result is compared with 3-way replication on the same drives, and gives the number of shards read to rebuild a lost one.
Example
An 8+3 erasure code on 11 drives of 12 TB has a raw capacity of 132 TB and a usable capacity of 96 TB. The efficiency is 72.7 %, the overhead 1.375×, and 3 drives can fail without data loss. The same drives with 3-way replication would give only 44 TB, but a rebuild needs to read 8 shards instead of one.
Why it matters
The calculator helps administrators and architects who plan a storage cluster, an object store or a NAS to see how much space they get for a level of safety, and to explain the trade-off between cost, tolerance and rebuild effort.
Good to know
The calculator assumes identical drives, one shard per drive and an even spread of the data. Real systems add a metadata overhead, a reserve for the rebuilds, a file system and a fill limit, so the usable capacity is smaller. The probability of data loss depends on the failure rate, the rebuild time and the failure domains, and it is not computed here. A backup is not replaced by redundancy.
Related tools
The RAID capacity calculator covers the classic RAID levels, the cloud storage cost calculator prices storage in the cloud, the home server cost calculator budgets a server, and the photo storage calculator sizes the space for pictures.