中文

EDS. Which number of copies and strike numbers to choose? What's the difference?

2026-10-22
EDS. Which number of copies and strike numbers to choose? What's the difference?

How many copies and strike codes should be selected for EDS configuration sheet? This paper is based on three scenarios for 3 nodes, 12 nodes, and Big capacity, with recommendations for selection and the main points for pit avoidance.

When we delivered EDS Item to a car R& D center, the client found an option on the configuration sheet: storage redundancy - copy 2, copy 3, strike code 4+2, strike code 8+4. IT has been staring at this business for half a day, asking a very real question: "Who are these? How much is that?

This is a question that almost every EDS purchaser would ask. Copies and redundancies are the distributed storage data and redundancy mechanisms, which are wrongly chosen to waste space and spend hard drive money or to compromise business at the expense of performance. This article makes clear the nature of the difference between the two mechanisms, which are calculated on three typical scenarios, and you know which one to choose for your business after reading.

Copies and deletions: differences in nature

Let us first clarify what these two mechanisms are doing.

Copy (Replication)). Each data block is multiple copies, a copy of 2, a copy of 2, a copy of 3, a copy of 3. The data are divided into different nodes, one of which is broken and a copy of the other is still available. The advantage is to write short path, latency low, restore speed fast -- one node is broken, from another copy to the new node, speed approaches the sequential writing bandwidth. The disadvantage is the low space utilization, with 2 only for 50% and 3 only for 33%.

Redo Encoded (Erasure Coding)). Cut the data into N fractions and calculate M verifications, with different nodes. N+M means N data tablets plus M verifications. Like what? 4+2,6 A node. 4 Can not open message 、2 Memory verifications , Space utilization 66.7%。 8+4 is the 8 storage data of 4 in 12 node, the 60% usage factor. 16+4 utilization factor 80%. The advantage is that space utilization is high and hard drives are saved. The disadvantage is to calculate latency higher than a copy at the time of writing; to recalculate data when nodes are broken, to rebuild for a long time and to lose performance during reconstruction.

Summarizing: The copy swaps space for performance, the red tape for performance.

scene A:3 small, 100TB available capacity

3 node is the EDS minimum deployment pattern. The choice of a copy and decode at this scale directly affects the hard drive procurement of quantity.

Configure Space utilization Naked capacity needs 18TB Hard Disk quantity Hard Disk Cost Mistake tolerance.
Copy 2 50% 200TB 12 30,000 CNY Bad 1 for each node
Copy 3 33% 300TB 17 42,500 CNY Bad 2 for each node
4+2 66.7% 150TB 9 22,500 CNY Bad 2 data film

18TB enterprise-grade SAS Harddisk Press 2,500 CNY/ Block reference price calculation , Actual purchase price is based on the channel price quoted 。

3 Under Node scene , & Delete 4+2 Compared to a copy 2 Province 3 Hard Disk , Difference 7,500 CNY, Increased space utilization 33%。 But... 3 There's a problem with the node-descripting. :6 I'll put it in one piece. 3 Nodes , Every node 2 A fraction. , If... one The whole node. , It's like losing it. 2 A fraction. 。 The 4+2 up to tolerance error of 2 fractions is lost at the critical point. Data is secure if 2 fractions are broken at the same time and are all at the same node. However, if the node recovery is slow, there is a risk that data will be lost if another fraction is broken during the reconstruction. So the 3 node correction code saves space, but the margin of error is tighter than a copy of 2.

A recommends: 3 Preference copy 2 with more error tolerance. If the budget is sensitive and the data are not cores operations (e.g., archiving), the redacting code 4+2 is acceptable. AboutDistribution storage How much?The price analysis can be seen in detail.

Size in scene B:12 node, 500TB available for capacity

The 12 node is the common size of a medium-sized enterprise, and the remixing is beginning to increase the spatial advantage.

Configure Space utilization Naked capacity needs 18TB Hard Disk quantity Hard Disk Cost Mistake tolerance.
Copy 2 50% 1000TB 56 140,000 CNY Bad 1 for each node
Copy 3 33% 1500TB 84 210,000 CNY Bad 2 for each node
8+4 60% 833TB 47 117,500 CNY Bad 4 Nodes
16+4 80% 625TB 35 87,500 CNY Bad 4 Nodes

12 Under Node scene , & Delete 16+4 Compared to a copy 2 Province 21 Hard Disk , Difference 52,500 CNY, Space utilization from 50% Reference 80%。 Copy 3 ♪ And tweaked ♪ 16+4 There's a bigger gap. : Bad. 49 Hard Disk , Difference 122,500 CNY。

However, 16+4 requires at least 20 nodes to disperse (16 data + 4 verification, with different nodes per fraction), and 12 nodes deploy 16+4 which means that some nodes are divided into multiple sub-categories of the same type, with a reduced error tolerance. 12 node selection 8+4 is more rational in actual deployment: 12 node is exactly 12 fractions, 1 fractions per node, but can be bad 4 nodes.

B recommends: The 12 node selects the 8+4 and the space utilization and error tolerance balance is best. Compared to a copy 2 Province 9 Hard Disk , Difference 22,500 CNY, And it'll be tolerated. 4 A node malfunction. 。 Select a copy of 2 if performance is high (database, virtualization )). AboutSangfor EDS Distribution storage DeploymentThis guide to pit avoidance is useful for attention.

scene C: Large capacity Archive, 2PB Available capacity

Archived scene data are much less read and space utilization is the first priority.

Configure Space utilization Naked capacity needs 18TB Hard Disk quantity Hard Disk Cost vs Copy 2 Save
Copy 2 50% 4PB 223 557,500 CNY —
16+4 80% 2.5PB 139 347,500 CNY Province 84 Blocks , Province 210,000 CNY
20+4 83.3% 2.4PB 134 335,000 CNY Province 89 Blocks , Province 222,500 CNY

2PB Archive scene , & Delete 16+4 Compared to a copy 2 Province 84 Hard Disk , Difference 21 ten thousand 。 This gap is so large that it cannot be ignored. Archive scene read/write frequency is low, the typed writing of latency disadvantages is not sensitive, and the long-time disadvantage is acceptable in the archive scene (archiving data do not require a second recovery).

C recommends: The big capacity archive must select the correction or deletion code, 16+4 or 20+4. A copy of 2 was wasted in PB-class space, and extra hard drive money was enough to buy another storage.

Selective judgement framework

The findings of the three scenarios are summarized in a table of judgement:

Your scene. Recommended Configuration Rationale
3 Small, Run cores Business Copy 2 There's enough left to make a mistake.
3 small, run-off archive/backup 4+2 Save space. Enough for mistakes.
Size in 12 node, mixed load 8+4 Space and error balance.
Size in 12 node, database/virtualization Copy 2 Performance priority
20+, Large capacity Archive Redo 16+4 or 20+4 Space utilization 80% +
Sufficient budget, requiring maximum reliability Copy 3 Three copies are the strongest.

EDS Supported coexists with the same storage pool copy and strike code, either one or the other. You can set cores database volumes to copy 2, archive volumes to strike 16+4, and a set of storage policies. This is also the advantage of distributed storage over traditional arrays -- strategy follows data, not a set of strategies to manage all data.

Two common pits.

The performance was reduced during the reconstruction of the red tape. After a node failure, the decodering requires the recalculation of lost data fractions, a process that will take over storage CPU and bandwidth. 4+2 Configure Rebuild 1TB Data approximate needs 30-60 minutes ( Depends on the number of nodes and Network Bandwagon ), During the reconstruction period storage The pool. read/write Performance may decline. 20-30%。 Restores a copy is much simpler - copy directly from another copy, speed approaches the writing bandwidth in sequence. If the operation is sensitive to performance during the reconstruction period, select a copy.

Copy 2 for the wrong border. A copy of 2 can tolerate one node failure, but if another node is in trouble during recovery, the data is gone. 3 Copy Node 2 The actual margin is... 1 Nodes , It's not. 2 。 For cores operations with high data security requirements, copies of 3 are more secure at the cost of only 33% space utilization. AboutDistribution storage SelectionMore dimension comparison, see this cross-check.

FAQ

Q: EDS, can you switch from a copy to a muzzle? EDS Supported is available online, but the conversion process requires recalculation of the data layout, which will take over storage performance and is recommended for implementation at the low peak of the business. The conversion time depends on the amount of data, and 1TB takes approximately 1-2 hours.

Q: Can the mix of the decoded code be modified? Yes, but the ratio is equal to the re-establishment of the data layout and the process is similar to the redundancy switch. It is recommended that matching be established at the early stages of deployment, avoiding later adjustments.

Q: What is the difference between a copy of 2 and a ticking code 4+2, the same 3 node? Randomly write IOPS gap about 30-40% and sequentially write the bandwidth gap about 15-20%. The reading performance gap is not significant, as it is read only in a fraction/copy. This gap needs to be taken into account if business writing is less read.

EDS configuration assessment or POC test, contact Huanan Tengfei Technology, we will provide storage solution design and quote contrast service.

Related Content