by aman179102 · 1w ago · 0 comments
1. Replication vs Erasure Coding: Standard 3x replication is operationally simple with zero CPU decode overhead, but imposes a 200% storage tax (3x raw disk footprint). Moving to Reed-Solomon erasure coding (such as 4 data + 2 parity shards) cuts your storage overhead down to 1.5x while still tolerating 2 concurrent disk/node failures. The trade-off is CPU reconstructive read penalty when a shard is degraded.
2. Metadata Separation: Keep the block/chunk storage decoupled from object metadata. Storing chunk hashes (SHA-256) in a relational store like PostgreSQL gives you instant deduplication and transactional consistency for object manifests, while raw chunks stream directly to disk.
3. Failure Domains: Ensure your parity shards span independent failure domains (separate racks or availability zones) rather than just different drives on the same machine.
No comments yet.