Frequently Asked Questions
How does the Reed-Solomon Erasure Coding (k + m) Storage Overhead & Usable Capacity Calculator perform the calculation?
It evaluates StorageEfficiency% = [ k / (k + m) ] × 100; RawStorageRequired = UsableDataTB × (k + m) / k; MaxConcurrentFailures = m directly in your browser and renders three custom SVG charts in real time.
Why does RS(6, 3) give the same 750 TB as RS(8, 4)?
Because both have a parity-to-data ratio of one half. Overhead is (k + m) over k, which is 9 over 6 and 12 over 8, both 1.5. Raw capacity depends only on that ratio, so the two layouts need identical disk. They differ in failure tolerance, three against four, and in stripe width, nine pieces against twelve.
Does the page estimate annual data loss probability?
No. It reports capacity, efficiency and the count of simultaneous shard failures a stripe survives. A loss probability would need drive failure rates, rebuild times and placement, none of which are inputs. The failures-tolerated line is the only durability figure, and it holds only if each shard sits in a separate failure domain.
What happens if I enter k = 1?
The engine raises it to two without warning, because a one-shard stripe is just a copy. With m left at four you get RS(2, 4), at three times overhead, and the saving against replication shows zero. The interpretation sentence names the layout actually used, so read it to confirm the inputs were taken as typed.
Can I enter usable capacity in petabytes?
Not directly; the field is in terabytes. Multiply petabytes by a thousand before entering, so 0.75 PB becomes 750 TB, which gives 1,125 TB raw under RS(8, 4). Because every output is a fixed multiple of the input, you can also run 1 TB and scale the result yourself.
Why is the saving equal to the raw requirement on the default?
It is a property of the 1.5 overhead. Triple replication needs three times the data and RS(8, 4) needs one and a half times, so the difference is also one and a half times the data. For 500 TB both lines show 750 TB. With RS(10, 4) the raw requirement and the saving no longer match.
How many nodes does RS(8, 4) need?
At least twelve independent failure domains if each shard must sit on its own, so a single domain loss costs at most one shard. With fewer domains some shards share one, and losing it removes several shards at once. The calculator assumes one shard per domain and cannot check your actual topology.
Should parity be counted when I quote usable capacity to users?
No. Usable capacity is what users can store, the 500 TB input. The 750 TB raw figure includes parity and should be quoted to whoever buys and racks the hardware. Mixing them up is a common planning mistake, and it either overpromises space to users or underorders disk.
Is a higher efficiency always the better choice?
Only for capacity. RS(8, 2) reaches 80% efficiency but tolerates two failures; RS(8, 4) reaches 66.667% and tolerates four. Higher efficiency also usually means wider stripes, which spread each read and each rebuild over more drives. Pick the tolerance your failure domains need first, then the most efficient layout that delivers it.
Does this apply to RAID 6 arrays?
The arithmetic does. A RAID 6 group with eight data drives and two parity drives behaves like RS(8, 2) for capacity: 80% efficiency and two drive failures tolerated. The difference is scope. RAID protects drives inside one enclosure, while distributed erasure coding usually spreads shards across nodes or racks.
Why does the comparison line sometimes say Extra Raw Storage?
Because the layout needs more disk than three full copies. That happens when m is more than twice k, pushing the overhead above 3.0. RS(2, 6) on the default 500 TB shows 500 TB of extra raw storage. The label switches so the figure always reads as a positive amount in the direction stated.
Why does the raw figure sometimes show three decimal places?
Because k does not always divide evenly into the data size. RS(17, 3) on the default 500 TB gives an overhead of 20 over 17, and the raw figure is not a round number. The engine reports three decimals. Round up, never down, when ordering hardware, and then add headroom for rebuilds and growth.
How do I compare two candidate layouts on this page?
Run the same data size twice, once per layout, and write down the raw figure and the failures tolerated for each. For example, RS(8, 4) and RS(10, 4) on 500 TB both survive four failures, but the second needs less raw disk. Then check you have k + m failure domains for the wider one.
Reading RS(8, 4) on 500 TB of data
The default stores 500 TB of logical data with eight data shards and four parity shards per stripe. Every object is cut into eight pieces, four more pieces are computed from them, and the twelve pieces go to twelve different drives or nodes. Any eight of the twelve are enough to rebuild the original.
The headline is 750 TB of raw capacity. That is 500 TB times twelve over eight, an overhead multiplier of 1.5. Storage efficiency, the first supporting line, is the inverse: eight over twelve, or 66.667%. Two thirds of every raw terabyte holds your data and one third holds parity.
The second line compares this with keeping three full copies. Triple replication of 500 TB needs three times that, double the erasure-coded figure, so RS(8, 4) saves 750 TB. The third line is the failure tolerance, four, which is simply the parity count m.
Those four lines are the whole model. The calculator does arithmetic on k, m and the data size. It does not estimate how likely data loss is, so the failure-tolerance figure is a count of shards a stripe can lose, not a probability of keeping your data.
Working the overhead formula yourself
Every number on the page follows from two ratios. Overhead is (k + m) divided by k. Efficiency is k divided by (k + m). Raw capacity is usable data times the overhead.
For RS(10, 4), overhead is 14 over 10, or 1.4, and efficiency is 71.429%. Every 10 TB of data needs 14 TB of raw disk. For RS(6, 3), overhead is 9 over 6, which is 1.5, the same as the default. For RS(8, 2), overhead is 10 over 8, or 1.25, and efficiency is 80%.
The presets keep RS(8, 4) and vary only the data size. 300 TB needs 450 TB raw; 750 TB needs 1,125 TB raw. Because the overhead is a fixed multiplier, raw capacity scales in a straight line with the data, and the savings against replication scale the same way, matching the raw figure each time at this particular ratio.
That last coincidence is worth understanding rather than memorising. Replication costs 3.0 times the data and RS(8, 4) costs 1.5 times, so the saving is 1.5 times the data, equal to the erasure-coded raw figure. Change k or m and the two lines no longer match.
A quick mental check helps when reviewing someone else's plan. Divide m by k: a half means 1.5 times raw, a quarter means 1.25 times, a third means about 1.33 times. If a quoted raw figure does not match that ratio times the data, one of the inputs is wrong.
Same overhead, different failure tolerance
Run RS(6, 3), RS(8, 4) and RS(4, 2) on the default 500 TB and all three return 750 TB of raw capacity at 66.667% efficiency. The only line that differs is failures tolerated: three, four and two.
So the overhead figure alone does not tell you which layout to pick. A wider stripe with proportionally more parity survives more simultaneous losses for the same capacity. RS(8, 4) can lose any four of its twelve pieces; RS(4, 2) can lose only two of its six.
The price of the wider stripe is not on this page. Reading or rebuilding an object in RS(8, 4) touches at least eight drives instead of four, and a single lost shard is reconstructed by reading eight surviving shards across the network. Wider stripes also need at least k + m independent failure domains, twelve here, or the failure tolerance on the page is only theoretical.
If you only have six racks, an RS(8, 4) stripe must place two shards in some racks, and losing one rack can take two shards at once. The page assumes every shard sits in its own failure domain, which you have to arrange yourself.
Placing shards across failure domains
The failures-tolerated line counts shards, not hardware. It is correct only when each of the k + m shards lives on a different drive, node or rack, depending on what you are protecting against.
Decide first what a failure is. If you are protecting against single drive deaths inside one server, twelve drives in that server is enough for RS(8, 4), but losing the server loses everything. If you are protecting against whole-node outages, you need twelve nodes. If against rack power or switch failures, twelve racks.
Many clusters cannot afford a separate rack for every shard of a wide stripe. A common compromise is to put a fixed number of shards per rack and make sure no rack holds more than m of them, so that one rack loss stays within tolerance. With RS(8, 4) and four racks, three shards per rack lets you lose one whole rack and one more drive elsewhere.
None of this changes the raw capacity figure, which is why the page can ignore it. It changes what the four in the failures line actually protects you from.
Where 3× replication still wins
The saving line looks like an easy argument for erasure coding everywhere. It is not quite that simple, and the calculator only shows the capacity side.
Replication reads are cheap: one copy, one drive, no decoding. Writes are three straightforward copies. Erasure coding has to compute parity on every write, and a small object may be smaller than a single stripe, so the per-object overhead can be worse than the formula suggests. Many systems keep hot or small data replicated and move cold, large data to an erasure-coded tier.
Failure tolerance is also different in kind. Three replicas survive two failures; RS(8, 4) survives four. On capacity and tolerance erasure coding wins, but repair after a failure is heavier: replacing one replica copies one object, while replacing one shard reads k others.
So use the saving figure as the case for erasure coding on large, rarely rewritten data, and check the performance side separately before moving anything latency-sensitive.
When parity outweighs replication
If you choose much more parity than data, the overhead can exceed the 3.0 of replication. The comparison line then changes its label from Raw Storage Saved to Extra Raw Storage vs. 3× Replication. RS(2, 6) on 500 TB needs four times the data in raw disk at 25% efficiency, and the page reports 500 TB of extra raw storage.
Read that line carefully, because the label is what tells you the direction. The figure is shown as a positive amount in both cases. The interpretation sentence underneath still phrases it as a saving of minus 500 TB, which means the same thing: the layout uses more disk than three copies.
Layouts like that are rarely sensible for bulk storage. If you need six-failure tolerance, a wider stripe such as RS(12, 6) gives the same tolerance at a 1.5 overhead, provided you have eighteen failure domains.
There is also a break-even worth knowing. When m is exactly twice k, the overhead is exactly 3.0 and the saving line shows zero. RS(3, 6) is that case: same disk as triple replication, but survives six failures instead of two.
Inputs the engine quietly adjusts
The engine sets floors on its inputs without saying so in the result. Data shards k cannot go below two, parity m cannot go below one, and both are rounded to whole numbers. Data size cannot go below 1 TB.
Enter k as 1 and m as 0, a layout with no protection at all, and the result is calculated as RS(2, 1): 750 TB raw, 66.667% efficiency and one failure tolerated. The interpretation sentence does name RS(2, 1), so check it whenever you try an unusual layout. Enter 0 TB of data and the page calculates for 1 TB instead.
Fractional shards are rounded. Typing 8.4 data shards gives eight. That is reasonable, since a stripe cannot hold part of a shard, but it means the output may not match what you typed.
Units are terabytes throughout. If you think in petabytes, convert first: 0.5 PB is the default 500 TB. The calculator does not distinguish decimal terabytes from binary tebibytes, so stay consistent with whatever your capacity planning uses.
Turning raw capacity into a purchase plan
The headline is the raw space that holds encoded data. It is not the amount of disk to buy. Real clusters need headroom on top.
Keep spare capacity so the cluster can rebuild after a failure. When a node dies, its shards have to be reconstructed onto the surviving nodes, so the remaining nodes need enough free space to absorb them. Leave room for growth until the next purchase, and allow for filesystem and metadata overhead, which the page does not include.
A simple approach is to take the raw figure, divide by the fill level you are willing to run at, and add one node's worth of capacity for rebuild space. If the default 750 TB has to sit at no more than three quarters full, that alone means buying a third more than 750 TB before any rebuild allowance.
Then compare layouts on the same basis. Run your data size through two or three k and m choices that your failure domains can support, take the raw figure from each, apply the same headroom, and weigh the capacity difference against the rebuild and performance costs that this page does not measure.