Before deciding whether to use replication or erasure coding to protect object data from loss, you should understand the advantages, disadvantages, and the requirements for erasure coding.
Advantages of erasure coding
When compared to replication, erasure coding offers improved reliability, availability, and storage efficiency.
Disadvantages of erasure coding
When compared to replication, erasure coding has the following disadvantages:
- Increased number of Storage Nodes and sites required. For example, if you use an erasure coding scheme of 6+3, you must have at least three Storage Nodes at three different sites. In contrast, if you simply replicate object data, you require only one Storage Node for each copy.
- Increased retrieval latencies when you use erasure coding across geographically distributed sites. The object fragments for an object that is erasure coded and distributed across remote sites take longer to retrieve over WAN connections than an object that is replicated and available locally (the same site to which the client connects).
- When you use erasure coding across geographically distributed sites, higher WAN network traffic usage for retrievals and repairs, especially for frequently retrieved objects or object repairs over WAN network connections.
- Higher usage of compute resources.
Requirements for erasure coding
Erasure coding is best suited for the following requirements: