comparison Data & storage
Replication versus erasure coding for stored data
Three complete replicas use 3× the logical capacity and need one intact copy. An ideal 3+2 erasure code uses 5/3 as much space as the logical data and needs three intact shards. Placement determines which members survive a domain loss.
What it means
Replication stores complete copies of an object: one intact copy contains all the data. Erasure coding stores shards instead. The simulation assumes an ideal maximum distance separable (MDS) code with k=3 data shards and m=2 parity shards, all of equal size. Any three distinct, intact shards from that set suffice to reconstruct the object; they do not have to be the original three data shards.
Take an object with three units of logical data. Three complete replicas occupy nine units; the code stores five one-unit shards. The Physical / logical ratio is 3/1 for the replicas and 5/3 for the code. These are total storage factors, not just the extra space. For equal shards, the coded factor is (k+m)/k, before metadata and other overhead. Ceph erasure code
Placement determines which members can be lost together. For example, you can separate replicas or shards by host or by rack, depending on which failure you want to consider. Ceph: CRUSH Maps In the simulation, each letter names a failure domain. Losing a domain removes every member assigned to its letter.
Try it
Use synthetic placements only; this is not a measurement of your storage.
Replication versus erasure coding for stored data
Place replicas or k+m synthetic shards across failure domains; remove domains and show reconstructability and storage overhead under declared assumptions.
Synthetic inputs only. This is not a measurement of your hardware or service.
Loss is counted per placed shard or complete replica, not per failed domain. The EC fixture explicitly assumes an ideal k=3,m=2 MDS code.
Count surviving members, not just lost domains
- Surviving members
- 3
- Members needed
- 3
- Physical / logical ratio
- 5/3
- Reconstructable under stated assumptions
- Yes
| Member | Domain | Survives selected loss |
|---|---|---|
| 0 | A | No |
| 1 | B | No |
| 2 | C | Yes |
| 3 | D | Yes |
| 4 | E | Yes |
Evaluated evidence
- Redundancy model
- ec
- Member failure domains
- A · B · C · D · E
- Failed domains
- A · B
Reconstructability with intact survivors is not service availability, failure probability, corruption handling or measured recovery performance.
About this model
Every input is local synthetic evidence. Numbers stay as raw text until this model validates them. The shown evaluated values come from the same result as the explanation.
Presets replace the entire scenario. Reset restores all starting fields, scenario selection and model state; it does not change the open or closed state of this help or article FAQ.
No external request, device command, stored-input history or measurement is performed.
- Start with Redundancy model set to Erasure code: k=3, m=2 and Placement and intactness evidence set to Explicitly known in this fixture. With
A B C D Ein Member failure domains andA Bin Failed domains, two shards are lost. C, D, and E each retain one shard. Surviving members is 3, exactly the Members needed, so the object is reconstructable under the stated assumptions. - Choose Place multiple shards in one domain. The five placements are now
A A A B C, and only A fails. That one failure removes three different shards. B and C retain just two between them, one short of the three needed. The storage factor is still5/3; what changed is which shards were lost together. - Compare Three complete replicas with placements
A B Cand failed domainsA B. Only C survives, but its member is a whole copy. The recovery threshold is one, not three.
Use one placement letter from A through H per member, separated by single spaces: five entries for the code or three for replicas. Placement letters may repeat. Failed domains must be distinct, or you can enter none. A failure list of A A is invalid and yields no result. With valid lists but Unknown / evidence unavailable, the answer is unknown: the placements and intact survivors are not established. Reset restores the full starting state, including the default inputs, and clears errors, history, and comparisons.
In practice
Match your placement list to the failure you care about. If the question is whether the data survives a rack outage, count by rack: putting shards on different hosts in the same rack does not separate them for that outage. Ceph: CRUSH Maps
Reconstructability asks whether enough intact content remains. Availability asks whether the service can respond now; a survivor count does not establish network reachability or the ability to perform reconstruction now. Durability concerns whether the data persists over time. The simulation selects losses explicitly, assigns no failure probabilities or repair times, and does not test corruption, code implementations, or recovery bandwidth.
Compare capacity on the same logical-data basis. Then cross out every member in the domains that fail together and inspect what remains: one intact whole copy is enough for replication, while this code needs three distinct intact shards.
Frequently asked questions
Editorial questions based on the listed sources and explicitly labeled local examples.
Why does placement matter?
A failed domain removes every replica or shard stored in it. Three shards on one failed domain can exhaust the default 3+2 example even though only one domain failed.
Is reconstruction the same as availability?
No. The model only asks whether enough intact content remains under the declared code/copy assumptions. Network reachability, service state and the ability to perform reconstruction now are separate questions.
How is capacity overhead compared?
Three complete replicas use a factor of 3. A k+m code uses (k+m)/k before metadata and other overhead; the default 3+2 example is 5/3. Use the same logical-data basis for both.
Does the model estimate durability probabilities?
No. You select failed domains explicitly. The lab does not assign independent failure probabilities, repair times or a number of durability nines.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- Ceph erasure code
Profiles; failure domain; overhead. k+m shards have overhead(k+m)/k under the declared code, and failure-domain placement controls correlated losses.
Checked .
- Ceph: CRUSH Maps
Hierarchy and failure domains. Replica and coded-shard placement can be separated across modeled failure domains such as hosts and racks.
Checked .