
What it is
A storage cluster where you can lose or corrupt some nodes and still get your files back. I built it for CS 588 at UIC in spring 2026.
A file is split into k data fragments plus parity, n fragments in total, and any k of them rebuild the file. I wrote the erasure coding myself over GF(2^8): a systematic Vandermonde matrix, primitive polynomial 0x11D, and precomputed log/exp tables. When all data fragments are present the decoder just concatenates them and skips matrix inversion.
Storage overhead is 1.5x at k=2, n=3 (survives one failure) and 1.75x at k=4, n=7 (survives three). Triple replication costs 3x.
How it works
- Integrity. Each fragment’s SHA-256 hash is stored in the manifest. On download, fragments that fail the check are thrown out before decoding.
- Self-healing. If a download finds a bad or missing fragment, a background task re-encodes the file and writes a fresh fragment to a healthy node.
- Node audit. When a node comes back online, the coordinator checks which chunks it should hold and restores the missing ones.
- Placement. Fragments are spread across three zones, so losing one zone doesn’t lose a file.
- Deduplication. Files are keyed by content hash, so uploading the same bytes under another name stores nothing new.
- Encryption. With encryption on, the browser encrypts the file with AES-256-GCM before upload. The coordinator stores ciphertext and the IV and never sees the key. The Python CLI does the same with the
cryptographylibrary.
The dashboard streams cluster events over a WebSocket. You can toggle nodes off, corrupt fragments, and watch reads recover. deploy_cluster.py generates a Docker Compose file for any number of nodes (at least 3), and Terraform describes an AWS setup (VPC, EC2, ECR).
Results
The integration suite runs against a live cluster of one coordinator and six nodes:
| Scenario | Expected | Result |
|---|---|---|
| Healthy upload and download | file matches byte for byte | pass |
| One node corrupted | rebuilt from the surviving fragments, then healed | pass |
| Two nodes corrupted (k=2, n=3) | HTTP 500, not enough valid fragments | pass |
| Encrypted upload and download | decrypted bytes match the original | pass |
Limits
- k is at most 10, n at most 15, and n ≤ 3k.
- Uploads are capped at 20 MB.
- One coordinator holds all metadata, so it is a single point of failure.
- Encryption keys live in the browser. Moving to another browser means copying the key by hand.