3 ms·
Let's see. At 1-3% annual failure rate, we expect to need to rebuild a couple drives in each array per year. To make the math simpler, let's have each server
by Dylan16807 8y ago
Let's see. At 1-3% annual failure rate, we expect to need to rebuild a couple drives in each array per year. To make the math simpler, let's have each server send and receive 8.5TB and do 1/120 of the parity math.
Since we have plenty of redundancy, let's keep things low-priority up to 3 drive failures, and try to rebuild each drive in 90 days. For bonus points, if two drives are rebuilding at once the increase in bandwidth is negligible.
8.5TB in 90 days is less than 10mbps. That means we could build servers with 50 drives and a single gigabit connection and if they were rebuilding every array at the same time it wouldn't even use half that bandwidth.
Real servers are going to have vastly faster connections and probably a lot fewer drives, so honestly that petabyte of I/O is not a big deal in context. In practice you could replace failed drives in a day, and the limiting factor is the speed of a single drive, not the network.
- klodolph 8y ago> ...8.5TB in 90 days is less than 10mbps. The arithmetic is correct but that's not the correct value. The I/O necessary for reconstructing one 8.5TB drive in a (100,20) Reed-Solomon group is 850 TB, which comes out to 875 Mbit/s, averaged over 90 days. It's not uncommon to see data centers with 10 Gbit/s connections, and sure, maybe it's a 10 Gbit/s per link on a Clos fabric but it's hard to claim that this bandwidth usage is trivial. The point is not that the rebuild is prohibitively expensive or impossible, the point is that as the group size increases, the cost of data reconstruction increases and the cost of the encoding overhead decreases. At some point the cost savings from reduced encoding overhead are smaller than the additional I/O costs incurred by reconstruction. So the ideal encoding size is not as large as possible, but some medium size which balances the cost of the encoding overhead with the cost of reconstruction. And consider that if any of this data is being served, you incur the 100x I/O penalty immediately. > Real servers are going to have vastly faster connections and probably a lot fewer drives, so honestly that petabyte of I/O is not a big deal in context. In practice you could replace failed drives in a day, and the limiting factor is the speed of a single drive, not the network. The Internet Archive has 24 disks per machine, I believe. https://en.wikipedia.org/wiki/PetaBox https://en.wikipedia.org/wiki/PetaBox > In practice you could replace failed drives in a day, and the limiting factor is the speed of a single drive, not the network. To rebuild an 8.5TB drive in 1 day requires 78 Gbit/s of bandwidth. Even inside a data center, oof.
- Dylan16807 8y ago> The I/O necessary for reconstructing one 8.5TB drive in a (100,20) Reed-Solomon group is 850 TB, which comes out to 875 Mbit/s, averaged over 90 days. You missed the part where I'm dividing the work over all the servers. We're not having 119 disks read 8.5TB each and sending it all to the server with the new disk. Instead, 119 servers are each recovering 85GB and then sending that to the server with the new disk. Each server sends 8.5TB over the network, and receives 8.5TB over the network. You only need 10Mbps per server for slow mode. > And consider that if any of this data is being served, you incur the 100x I/O penalty immediately. 1% of blocks take 100x the I/O. That's an average of only 2x. But because of data locality, you needed to read most of those blocks anyway. You might only have a few percent penalty. > To rebuild an 8.5TB drive in 1 day requires 78 Gbit/s of bandwidth. Even inside a data center, oof. It requires 78Gbps of switching bandwidth. It's easy to get a switch with terabits per second of total capacity. (less than $100 per port on eBay) https://i.dell.com/sites/csdocuments/Shared-Content_data-Sheets_Documents/en/Dell_Networking_S4048T_ON_Spec_Sheet.pdf https://i.dell.com/sites/csdocuments/Shared-Content_data-She... So I assert that even 100ish drives per group is actually quite easy to handle.
- klodolph 8y ago> We're not having 119 disks read 8.5TB each and sending it all to the server with the new disk. > Instead, 119 servers are each recovering 85GB and then sending that to the server with the new disk. Could you explain how this is possible? In other words, how do you arrange the blocks so that each individual device has enough data to reconstruct 85GB from another drive without doing network I/O? I'm not aware of a scheme where this is possible. Can you point to a paper or describe how this scheme works? Simple arithmetic suggests that it is not possible to rebuild 100 different 8.5GB chunks from a single 8.5TB selected from an larger amount of data encoded with Reed-Solomon (100,20). The simple arithmetic suggests that you would only be able to reconstruct a total of 1.7TB from any individual 8.5TB disk, which is only 20% of what your scheme suggests. It is also unclear to me what would happen in this scheme if two disks were lost simultaneously, which is nearly guaranteed to happen at some point if you are playing around with 120 disks. Simple erasure coding means that e.g. with (100,20) Reed-Solomon, you spread each stripe across 120 devices, and therefore need to read from 100 different devices to recover any one lost chunk from a single stripe. There are some schemes which reduce this but the gains are modest and there are tradeoffs involving e.g. encoding time or overhead, for example, the "Hitchhiker" schemes published by researchers at Facebook: https://www.cs.cmu.edu/~nihars/publications/Hitchhiker_SIGCOMM14.pdf https://www.cs.cmu.edu/~nihars/publications/Hitchhiker_SIGCO...