|
|
|
|
|
by notacoward
4442 days ago
|
|
Great stuff, but the same generally beneficial approach taken too far can run into its own problems. http://hackingdistributed.com/2014/02/14/chainsets/ To put it simply, seven million is not a big number, and it's the wrong number anyway. The author confused permutations and combinations; the correct number of four-card hands from a deck including jokers is only 316251. For the more common N=3 it's a paltry 24804. If you're doing "pick any N" to choose replica sets for millions of objects (for example) then pretty quickly every node will have a sharding relationship with every other. The probability of a widespread failure wiping out every member of some shard - leading to loss of data or service - approaches one. You're better off constraining the permutations somehow, certainly not all the way down to the bare minimum, but so that the total probability of data/service loss after N failures remains small. I really hope people actually do the math instead of just cargo-culting an idea with a catchy name. |
|