中文

EDS. Number of copies and numbers. Pick which one. How much is it?

2026-10-25 Huanan Tengfei Technology
EDS. Number of copies and numbers. Pick which one. How much is it?

What about the number of copies and the number of deletions in the Sangfor EDS configuration list? capacity Utilization, Performance Differences and Reliability Comparison with 3 Node Cost Measurement.

Two options on the configuration list. 90% client can't read.

Last week a client sent a single Sangfor EDS configuration, asking, "Count 2 or 3?" Should I open the expunging code? What's the difference? The configuration list showed two data-redundancy options with a price difference of nearly RMB 40,000, leaving him uncertain which to choose.

This problem is too common in EDS deliveries. Clients look at configuration sheets, CPU, memory, Storage capacity, all read, except for the two storage terms "copy numbers" and "dicking codes". The article sets the two options apart and gives a direct reference to the selection.

What's a copy, what's a redaction?

Let's start with basic concepts.

Copy (Replication): Copy a data in its entirety on several different nodes. 2 copies are stored in 2, and 3 copies are stored in 3. It's simple. , High reliability , But... capacity Low utilization ——2 Only copies 50% Available capacity ,3 Only copies 33%。

Redo Encoded (Erasure Coding, short EC): Slice the data into a spectroscopy, which is separated from the different nodes. For example, EC 4+2 means 4 data fractions + 2 verification fractions, 6 fractions are spread over 6 nodes, capacity utilization factor 4/6=67%. Reliability, with damage to 2 fractional data.

Example: The copy is "Put copying 3 copies in 3 drawers" and the type of strike is "Try 6 files into 6 drawers, of which 2 is a check page and any 2 copies are spelled back."

capacity Utilization factor: how much is the gap?

Take the example of 3 node EDS, each node 6 block 8TB hard drive, total nud capacity 144TB:

Redundancy MethodAvailable capacitycapacity Utilization factorData reliability
2 Copy72TB50%Tolerable 1 nodes failure
3 Copy48TB33%Tolerable 1 nodes failure
EC 4+296TB67%Tolerance of the loss of 2 fractions
EC 8+2115.2TB80%Tolerance of the loss of 2 fractions

3 Copy and EC 4+2 Available capacity It's not working. 48TB—— Yes. 144TB Size , Here. 48TB Press enterprise-grade Harddisk market value approximate 8-12 ten thousand 。

However, the correction code is conditional on EC 4+2 being required for at least 6 nodes (one fraction of each) and EDS of 3 nodes cannot run from EC 4+2. 3 Environment can only select EC 2+1 (availability 67% but can only tolerates loss of 1 fractions with less reliability than a 3 copy).

So the nodes determine what you can choose:

NodesOptional RedundancyRecommended programme
3 Node2 Copy/3 Copy/EC 2+13 copy (reliability priority)
4-5 Node2 Copy/3 Copy/EC 2+1/EC 4+12 copy or EC 4+1
6 +NodeAll waysEC 4+2 (capacity and Reliability Balance)
10 +NodeAll waysEC 8+2 (Big capacity Priority)

Performance difference: Copy fast or strike fast

Simple conclusion: The random read/write performance of a copy is better than the correction.

Reason: A copy will only be written with 2-3 complete data, and the data will be corrected with a code-deword to calculate the validation score (Reed-Solomon algorithm), additional consumption of CPU and generate writing magnification.

We're delivering. one EDS Item I've done it. fio Test ,3 Nodes 、25G Network 、 Every node 12 Blocks SSD:

The way you do it.Random reading IOPSRandom IOPSIn Order Reading BandwidthSequenced bandwidth
2 Copy285,000142,0006.2GB/s3.1GB/s
3 Copy268,000128,0005.8GB/s2.8GB/s
EC 4+2198,00076,0004.1GB/s1.9GB/s

EC 4+2 Random writing IOPS That's right. 2 The copy's low. 47%。 If the business scene is high concurrent small documents (e.g. hospital PACS images, Video surveillance), this gap is clearly felt.

But if it's a big file order, read/write ( Like what? backup Archive 、 Video storage ),EC The bandwidth is low, though. one Some. , But it's available. capacity Too many. 33%, Every TB The cost is lower. 。 So the selection depends on the business scene.

Cost measure: 3 Node EDS How much is the difference between the two options?

With a client. 3 Nodes EDS Configure as Example , Every node :1 One. CPU、256GB memory 、12 Blocks 4TB enterprise-grade SATA Hard Disk 、2 Blocks 25G Cybercards 。 Total nudity capacity 144TB.

ContrastProgram A: 3 CopyProgram B: 2 Copy
Available capacity48TB72TB
capacity Utilization factor33%50%
It's not enough to tolerate a malfunction.1 Node1 Node
Hardware costsSame (same as hardware)Same
Cost per TBApprox. 2,900 CNY/TBApprox. 1,930 CNY/TB
Applicationscores Database, Production SystemFile Sharing, backup

Hardware costs are the same, because whatever redundancy method is chosen, the same hard drive quantity is bought. The difference is: 3 node EDS for 30 million, 48TB for 3 and 72TB for 2.

Select a copy of 3 if the client feels that 72TB is sufficient but wants to be more reliable. If 48TB is not considered sufficient and the reliability of the business is not as high (e.g. non-cores business), select 2 copies to add 24TB space.

Recalculate. one Notes : If the client needs 72TB Available capacity And choose. 3 Copy , I need it. 5 Nodes ( Total nudity capacity 240TB,3 After the copy 80TB), Hardware costs approximately 50 ten thousand 。 The same 72TB selection 2 copy only needs 3 nodes, with hardware costs of about 30 million. 20 million.

This is why many clients choose 2 copies when their budget is limited - saved money can buy backup software or UPS.

Our proposal

After delivering more than a dozen EDS Item, our experience is:

3 Node Environment: Select 3 copy. The number of nodes is lower and reliability is more important than capacity. The 3 node run EC is of little significance and can be used to increase capacity with limited but significant performance loss.

6 More than Node: cores copy of 3 for business and EC 4+2 for non-cores business. EDS Supported configures the number of copies and the number of deletions by LUN level, without choosing a global one. Set LUN to 3 copy of database, LUN to EC 4+2, to balance performance with capacity.

The budget is tight.: 2 copy + Timeshot backup. The 2 saved hard drive for a backup scheme (e. g. another EDS for a different backup) is more reliable than the 3 copy without backup.

When we do POC tests for the client, we run fio based on the actual business model, measure performance with real data and then recommend configuration. If you're looking at the EDS configuration, you don't know how to choose, you can send the configuration and the business scene, and we can help with the analysis. Contact Huanan Tengfei Technology.

Read about:

Related Content