RustFS expands {start...end} brace expressions in RUSTFS_VOLUMES as a Cartesian product forming a single erasure pool.
Mirroring rustfs/rustfs/crates/ecstore:
- Default Parity (
default_parity_count):- 1 drive ->
0 - 2–3 drives ->
1 - 4–5 drives ->
2 - 6–7 drives ->
3 - ≥ 8 drives ->
4
- 1 drive ->
- Read Quorum:
R = total_drives - parity - Write Quorum:
W = data_shards + 1whendata_shards == parity, otherwiseW = data_shards.
- Layout: 4 nodes (
n1..n4) × 4 drives (data1..data4) = 16 drives in one erasure set. - Quorums:
data=12,parity=4,R=12,W=12. - Failure behavior: Losing any 1 node (4 drives) leaves 12 drives online — both reads and writes continue uninterrupted. A 2-2 network partition leaves 8 drives on each side (< 12), halting writes cleanly on both sides to prevent split-brain.
- Layout: 3 nodes (
n1..n3) × 2 drives (data1..data2) = 6 drives in one erasure set. - Quorums:
data=3,parity=3,R=3,W=4. - Failure behavior: Under a 2-1 partition, the 2-node majority (4 drives) retains both read (
4 >= 3) and write (4 >= 4) quorum, while the isolated single node (2 drives) cannot read or write.
- Layout: 4 nodes (
n1..n4) × 2 drives (data1..data2) = 8 drives in one erasure set. - Quorums:
data=4,parity=4,R=4,W=5. - Failure behavior: Losing 1 node (6 drives remaining) retains both read and write quorum; a 2-2 split (4 drives each) blocks writes on both sides because
4 < 5.
- Layout: 3 nodes (
n1..n3) × 1 drive (data1) = 3 drives in one erasure set (docker/docker-compose.3x1.yml). - Quorums:
data=2,parity=1,R=2,W=2. - Failure behavior: Minimal 3-node single-drive erasure topology; tolerates 1 node/drive loss with
2 >= R=2and2 >= W=2, used for degradedEC:1delete, cluster health, and stalepool.binrejoin testing (#8953,#9474,#9480,#9815).
- Layout: 4 nodes (
n1..n4) × 1 drive (data1) = 4 drives in one erasure set (docker/docker-compose.4x1.yml). - Quorums:
data=2,parity=2,R=2,W=3. - Failure behavior: Losing 1 node leaves 3 drives (
3 >= W=3, reads and writes continue); a 2-2 split leaves 2 drives per side (2 < W=3), safely halting writes on both sides.
- Layout: Site A (
a1..a3× 2 drives) + Site B (b1..b3× 2 drives) running as two independent 3x2 clusters (docker/docker-compose.dual-3x2.yml). - Quorums:
data=3,parity=3,R=3,W=4independently per site. - Failure behavior: Self-contained dual-site topology for site replication, bucket replication, WAN partition/clog chaos, and bulk version purge testing.
RustFS persists cluster erasure geometry inside format.json on each drive. Always wipe volumes when switching between 4x4, 3x2, 4x2, 3x1, 4x1, and dual-3x2 (./scripts/up.sh handles this automatically via docker compose down -v).
The OrbStack provisioning script requires an unused set of VM names. It checks the requested names before creating any machines and leaves existing machines untouched. Set VM_PREFIX to use a separate namespace for another test cluster.