diff --git a/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs.md b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs.md new file mode 100644 index 000000000..0c0dc17a7 --- /dev/null +++ b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs.md @@ -0,0 +1,333 @@ +# RustFS vs SeaweedFS — object storage compared + +Research record, 2026-11-24. Question: for an S3/object layer, how do RustFS and +SeaweedFS compare on benchmarks, features, durability record, and project +health — and (supplemental section at the end) which fits a Cozystack-based +estate. Every factual claim carries its source and the date it was checked. +Vendor numbers are labelled vendor numbers; nothing here blends incomparable +benchmark runs into a ranking. + +## Verdict + +- **SeaweedFS wins** on small-object write throughput and latency in the only + independent head-to-head found, on object-count scaling (its packed-needle + metadata model), on breadth beyond S3 (FUSE, WebDAV, SFTP, HDFS, CSI, filer + sync, cloud tiering, built-in Iceberg/Lance table buckets), and on a decade + of production exposure. +- **RustFS wins** on large-object throughput (roughly 3× SeaweedFS on 8 MiB + PUTs in the same test), on resource footprint (~4.3× less RAM, ~1.6× less + CPU in that test), on operational simplicity (one binary, no metadata + database to size and back up), and on erasure coding applied at write time + with flexible parity. +- **Overall call for a Cozystack-shaped estate: stay on SeaweedFS**, which is + Cozystack's built-in S3 layer. The data-loss record (section 5) is real but + concentrated in maintenance tooling, single-copy configurations, and + metadata-store failures — not in acknowledged writes on replicated volumes — + and it has concrete guardrails. RustFS is a credible watch/pilot candidate + for standalone large-object workloads outside Cozystack, to be re-evaluated + after it has a year of GA exposure; its 2025–2026 security record argues + against trusting it yet with the platform's only copy of anything. + +## 1. The two designs + +**SeaweedFS** (Go, Apache-2.0 core plus a proprietary Enterprise edition) uses +a Haystack design: small files are packed as "needles" into append-only volume +files, at roughly 40 bytes of on-disk metadata overhead per file and a 16-byte +in-memory index entry per blob, giving O(1) one-seek reads. Large files are +split into chunks of a few megabytes, each stored as a blob, with a meta chunk +listing the chunk file ids. Hot data is replicated (rack/DC-aware three-digit +replication codes such as 001/010); warm data is converted in the background +to Reed-Solomon RS(10,4) erasure coding at 1.4× storage overhead, tolerating +four shard losses — the open-source build fixes the ratio at 10+4, custom +ratios are Enterprise. Metadata lives in two places: the volume layer in the +master (Raft), and the **filer database, which is the scaling ceiling** — one +row per object on the S3 path, with pluggable backends (LevelDB `leveldb2` +default, PostgreSQL, MySQL, Redis, Cassandra, etcd, TiKV, FoundationDB, and +more). (Project wiki and docs, checked 2026-11-23.) + +**RustFS** (Rust, Apache-2.0, no paid tier yet) is a MinIO-design +reimplementation: per-object Reed-Solomon erasure coding with an inline +`xl.meta` metadata file per object per shard and no metadata database; +objects under 128 KiB are stored inline. That is fast per object, but very +large object counts become billions of tiny files — inode pressure and +ListObjects scan cost are its ceiling (a May-2026 small-object scalability +analysis rated SeaweedFS the default open-source answer at 30 billion objects +and RustFS, then pre-GA, as not yet that answer). Erasure sets run 2–16 +drives with automatic parity (EC:0 on 1 drive up to EC:4 on 8–16 drives; a +16-drive set is 12 data + 4 parity, ~75% efficiency; parity never exceeds +N/2). Erasure blocks are 1 MiB, checksummed with HighwayHash-256 — the same +family and defaults as MinIO, so MinIO-migrated objects stay readable. **Pool +topology is fixed at initialisation**: a mismatch is a permanent +`PoolTopologyMismatch` startup failure. The production layout is multi-node +multi-drive (≥4 nodes); single-node layouts exist for small deployments. +(Project docs, checked October–November 2026.) + +**Hashing and splitting, specifically.** SeaweedFS splits large files into +few-megabyte chunk blobs referenced by file id from a meta chunk; integrity +at the storage layer is needle CRC-class checks, and the filer/S3 layer +carries the standard S3 checksums and etags. RustFS splits every object +across erasure shards in 1 MiB blocks with HighwayHash-256 per-shard bitrot +checksums, plus the full S3 checksum algorithm family on copy operations +(CRC32/64, SHA-1/256/512, MD5, xxHash, per its compatibility matrix). +**Neither system offers content deduplication as a storage feature** +(checked 2026-11-24): chunking in both is splitting, not dedup, and +SeaweedFS's "dedup" references in its codebase are read-path request +coalescing, not content addressing. + +## 2. Benchmarks + +**There is no trustworthy like-for-like distributed head-to-head.** The +closest evidence, in descending order of comparability (full extracts in +`supplement-benchmarks.md`): + +### 2.1 Independent single-node head-to-head (the anchor) + +One independent test (iamkunal9, published 2026-10-19) ran RustFS 1.0.3, +SeaweedFS 4.48 (`weed mini`), and the last MinIO community release on +identical single-node conditions, defaults only, median of five runs: + +| Workload | RustFS | SeaweedFS | MinIO | +| --- | --- | --- | --- | +| 64 KiB PUT (MiB/s) | 56.8 | **99.4** | 49.7 | +| 64 KiB GET (MiB/s) | **149.5** | 114.0 | 121.7 | +| 8 MiB PUT (MiB/s) | **325.5** | 106.9 | 318.8 | +| 8 MiB GET (MiB/s) | **455.8** | 410.3 | 426.6 | +| 256 MiB multipart PUT (MiB/s) | 276.4 | 125.7 | **323.8** | +| 256 MiB GET (MiB/s) | 1,036.3 | 580.8 | **1,279.6** | + +Latency (p99): 64 KiB PUT — SeaweedFS 39.3 ms beats RustFS 61.6 ms; 8 MiB PUT +— RustFS 158.3 ms beats SeaweedFS 580.5 ms. Resource use: SeaweedFS peaked at +~1.4 GiB RAM, about 4.3× RustFS's 348 MiB (MinIO 394 MiB), and used ~1.6× +RustFS's CPU time in every run. Durability under the same test: **zero +acknowledged objects lost or corrupted across six `kill -9` cycles per store +(26,111 writes)**. S3 compatibility spot-checks: each store passed 14 of 15 +(RustFS and SeaweedFS both drop metadata signed into presigned PUT URLs; +MinIO lacks per-bucket CORS). + +Reading: SeaweedFS's design centre (small files) shows exactly where the +design says it should — small-object PUT throughput and latency. RustFS's +MinIO-class engine shows on large objects. Neither result generalises to a +distributed cluster; treat the ratios as single-node evidence only. + +### 2.2 Community 4-node warp comparison (dated, alpha-era RustFS) + +A RustFS GitHub discussion (#1500, crawled 2026) compared MinIO +RELEASE.2024-10-29, RustFS 1.0.0-alpha.79, and SeaweedFS 4.02 on four nodes +(32 cores, 128 GB, one SATA SSD each), dual-replica writes, `warp mixed`: +SeaweedFS GET throughput was far ahead at small sizes (4 KiB ≈ 76–112 MiB/s +vs RustFS ≈ 12.6; 32 KiB ≈ 497–920 vs ≈ 100), large-size GETs converged at +≈ 1.8–1.9 GiB/s for both, RustFS small-size PUTs were very low (≈ 4.2 MiB/s +at 4 KiB), and **RustFS crashed at 512 concurrency on 1 MiB objects**. The +RustFS build was an alpha; this is evidence about that era, not about 1.0.x. + +### 2.3 Vendor and project numbers (labelled, not comparable) + +- RustFS's original "2.3× MinIO" claim is the project's own benchmark (2-core + Xeon Platinum 8475B, 4 GB RAM, 15 Gbps network, 4× 40 GB NVMe, 4 KB + objects). Its Beta.10 blog (build dated 2026-07-17; Azure, 4 nodes × 4 + disks, 8 CPU/16 GB, warp, 64 concurrent, 5 minutes) reports PUT ahead of + MinIO at all 11 object sizes (up to 2.85×) with the GET gap "narrowing"; + independent summaries of mid-2025 testing still had MinIO ahead on reads + (53 Gbps vs 23 Gbps on 20 MiB objects). The vendor's 323 GB/s read / + 183 GB/s write cluster figures are evaluation claims, not third-party + results. +- SeaweedFS's project numbers are labelled unscientific by the project + itself: MacBook SSD, `weed benchmark`, 1M × 1 KB files at concurrency 16 — + 15,708 writes/s (p50 0.8 ms, p99 2.6 ms), 47,019 random reads/s (p50 + 0.3 ms, p99 0.7 ms); a local warp mixed run totalled 3,302.88 MiB/s + (GET 2,477 MiB/s at 10 KB-class objects). + +## 3. Features, side by side + +| Area | SeaweedFS | RustFS | +| --- | --- | --- | +| Chunking | Few-MB chunk blobs + meta chunk for large files; small files packed as needles | Every object erasure-split in 1 MiB blocks across a set | +| Dedup | None (storage layer) | None | +| Durability scheme | Replication for hot data (rack/DC-aware); background RS(10,4) EC for warm data, fixed ratio in OSS, 1.4× overhead, tolerates 4 losses | Reed-Solomon EC at write time, automatic parity EC:0–EC:4, up to ~75% efficiency at 16 drives | +| Metadata | Master (Raft) + filer DB (pluggable; the scaling ceiling; one row/object on S3 path) | Inline `xl.meta` per object per shard; no metadata DB; inode/ListObjects cost is the ceiling | +| S3: versioning | Yes | Yes | +| S3: Object Lock | Yes (governance/compliance/legal hold) | Yes — but see the 2026 bypass CVE in section 5 | +| S3: lifecycle | Expiration works; **transition rules not supported** (s3-testsuite lifecycle 2/8; overall 174/207 = 84%, versioning 14/14, object lock 8/8) | ILM lifecycle + tiering to remote S3 listed available | +| S3: multipart | All 7 operations | Yes | +| S3: Select | **No Object Select** | S3 Select listed available | +| S3: IAM/policies/STS | Present, partial vs MinIO's depth | IAM/policies listed available; its own matrix says "broad compatibility for supported features", explicitly not complete coverage | +| S3: replication | `filer.sync` cross-cluster (active-active or active-passive, resumable); `filer.backup`/`filer.replicate` to external S3/GCS/Azure/B2 | Site replication (RustFS peers only) + bucket replication to generic S3 targets via a per-target version ledger | +| Access beyond S3 | FUSE mount, WebDAV, SFTP, HDFS, Kubernetes CSI + operator, TUS resumable uploads, HTTP; built-in S3 Tables (Iceberg REST) and Lance table buckets in OSS | WebDAV and FTP/FTPS gateways built in (off by default); SFTP and OpenStack Swift as opt-in build features; a separate MCP server; **no native FUSE/POSIX mount** (third-party s3fs-fuse is the documented fallback). (rustfs.com multi-protocol page, checked 2026-11-24.) | +| Tiering | Transparent cloud tiering/offload built in | ILM tiering to remote S3 | +| Encryption | AES256-GCM at rest; TLS/mTLS between components; JWT-signed volume access; SSE-S3/SSE-KMS/SSE-C with KMS providers incl. OpenBao/Vault/AWS/Azure/GCP | TLS; server-side encryption + RustFS KMS listed available | +| Operational caveats | Missing replicas are **not** auto-repaired (run `volume.fix.replication` or the maintenance worker); self-healing, data recovery, point-in-time recovery are Enterprise-only; a file and a folder cannot share a path (`a/b` and `a/b/c` cannot coexist) | Pool topology fixed at initialisation; site replication needs RustFS-compatible peers | + +Sources: project wikis/docs and README feature tables checked 2026-11-23/24; +SeaweedFS s3-testsuite scores from the project wiki (checked 2026-11). + +## 4. Project health + +**SeaweedFS.** Repository created 2014-07-14; 36,219 stars, 3,129 forks, +Apache-2.0, 715 open issues (GitHub API, 2026-11-24). The "one guy" claim is +**substantially true**: chrislusf has 11,159 commits (the top contributor +share is ~68% per Stackscape); the next human is kmlebedev at 393, with +dependabot at 1,687. Chris Lu (San Francisco) is an independent, +sponsor/Patreon-funded maintainer who also sells the Enterprise edition. +Releases land every one to two weeks (4.51 on 2026-10-25 through 4.55 on +2026-11-23, per the GitHub API). Production receipts exist but are thin in +public: Kubeflow 1.11 and Epinio adopted SeaweedFS as their default S3 store +replacing MinIO; Stackscape counts only three public adopters excluding the +creator. One caution signal: security-advisory volume was high in 2026 (25 +advisories June–September 2026, nine critical, per stormdevelopments.ca, +checked 2026-10-21). + +**RustFS.** Repository created 2023-11-23; 36,435 stars, 1,686 forks, +Apache-2.0, only 73 open issues (young, aggressively triaged; GitHub API, +2026-11-24). The contributor list is a real team (overtrue 3,348, houseme +1,742, weisd 715, cxymds 467, and more; the project claims 7 core engineers +and 160+ contributors). The company claim is **true but opaque**: owner is +RustFS, Inc. (founded 2024, holds the trademark), yet public sources +contradict each other on geography — the about page gives an Atlanta, +Georgia address, the USPTO trademark filing is by a Beijing company (Beijing +The Ganges River Sand Technology Co., Ltd.), a rustfs.com.cn site exists, +and Stackscape lists "RustFS, Inc. — China". No published investors, funding, +or enterprise support terms; no paid tier yet. GA 1.0.0 shipped 2026-09-16; +1.0.6 followed on 2026-11-15. Vendor deployment claims (2.7M at GA, 3.7M+ +later) are unverified vendor figures. + +Both projects, in other words, carry a stewardship risk — SeaweedFS's is a +bus factor of one with a decade of track record; RustFS's is a young company +whose structure is hard to verify from public sources, with two months of GA +history at the time of writing. + +## 5. The data-loss question, investigated + +Full case notes in `supplement-data-loss-cases.md`. Summary: + +**SeaweedFS — real reports, but the losses concentrate in tooling, topology +choices, and the metadata store, not in acknowledged writes:** + +1. **fsck delete vs moved files (issue #12527, opened 2026-11-10; 4.53/4.41, + etcd-backed filer).** `volume.fsck -reallyDeleteFromVolume` can permanently + delete live chunks of files moved during its directory-by-directory walk. + SQL filer stores got a snapshot fix (#11883); etcd and other + non-`EntryScanner` stores still walk. Reproduction: 50 moved files all + falsely reported as orphans on 4.53; on 4.41 with delete plus + `volume.vacuum`, 0 of 50 remained readable. The loss is silent and delayed + (tombstones mask it until vacuum). Guardrail: use a SQL filer store, and + never run fsck-delete while clients are moving files. +2. **Filer metadata store corruption (issue #12563, 2026-11-11).** A Windows + power loss zeroed a block in the filer's LevelDB store; entries in the + damaged block were lost (their chunks orphaned). goleveldb recovery was + itself buggy up to 4.54; fix #12780 recovers in place, dropping only + damaged blocks. The object data was not corrupted — the metadata was. + Also exposed: master state `-mdir` defaults to the OS temp dir. Guardrail: + back up filer metadata (`weed filer.meta.backup`). +3. **Disputed scripted purge (issue #5794, 2024-07-17, v3.68).** A reporter + claimed a Postgres filer connection loss plus a scripted maintenance suite + (`ec.rebuild`, `volume.deleteEmpty -force`, `volume.balance`, + `s3.clean.uploads`) purged all volume data within an hour. The maintainer + disputed the mechanism and suspected `s3.clean.uploads`. Attribution is + unresolved; the dangerous ingredient was an automated `-force` maintenance + script running against a single-copy (`defaultReplication=000`) cluster. +4. **Delete-resurrection edge (issue #12786, 2026-11-19, v4.54).** A delete + whose tombstone reached the `.dat` file before its `.idx` row can, after + a crash, resurrect as an *empty* object (200, 0 bytes) instead of a 404 — + documented in the code as an intentional tradeoff (an empty placeholder + beats a wrong tombstone dropping an acknowledged write). +5. **Iceberg orphan-cleanup bug (PR #11978, 2026-10-23).** Table maintenance + `remove_orphans` deleted live data files because writers recorded + percent-escaped paths while the S3 layer stored decoded paths; fixed in + the same PR. +6. **Anecdote layer.** Hacker News sentiment is split: one unattributed + comment claims near-certain data loss with no evidence attached; multiple + production reports describe it as rock solid at real scale (56M images, + billions of documents; corruption from cheap SSDs and power outages + recovered). A March 2026 postmortem titled "SeaweedFS CSI: The FUSE Mount + Massacre" was operator error — restarting CSI mount pods without + restarting consumers left dead FUSE mounts; no object data was lost. + +And the counterweight from section 2.1: in the independent head-to-head, six +`kill -9` cycles per store across 26,111 writes lost **zero** acknowledged +objects. The half-remembered stories are real; their centre of gravity is +maintenance tooling run with delete flags, single-copy replication choices, +and filer-metadata failures — each with a named guardrail. + +**RustFS — a shorter record because a younger product, with two serious +marks:** + +1. **CVE-2025-68926 (published 2025-12-30, CVSS 9.8).** A hardcoded static + gRPC auth token (`"rustfs rpc"`) shipped in client and server, + non-configurable, valid across all deployments, in alpha.13–alpha.77: + anyone with network access to the gRPC port could run privileged + operations including data destruction. Public proofs of concept exist; + fixed in alpha.78. A fundamental security-hygiene failure, albeit pre-GA. +2. **CVE-2026-73288 (published 2026-08-12, CVSS 6.1).** Object Lock + enforcement treated unreadable or unparseable bucket metadata as "no lock + config", so COMPLIANCE-retained objects could be deleted or expired; + fixed in 1.0.0-rc.1. A secondary comparison (stormdevelopments.ca, + checked 2026-10-21) describes RustFS Object Lock as "bypassed twice in + 2026". +3. **Project postmortem (2026-09-03).** A replication checksum-default flip + in 1.0.0-rc.5 silently broke every replication PUT to Object Lock targets; + a customer reported it two days after release. The project's own finding: + no Object Lock target was exercised between the change and the RC. +4. **No public production data-loss postmortems** comparable to SeaweedFS's + issue history were found — but RustFS reached GA on 2026-09-16, so the + absence of reports is at least partly absence of exposure. + +## 6. Supplemental: fit for a Cozystack estate + +*(This section is about our decisions specifically; everything above stands +generically.)* + +Cozystack ships SeaweedFS as its built-in S3 (Cozystack repo and docs, +checked 2026-11): a `Bucket` application via COSI bucket claims, +BucketClasses (including a `-lock` class and a `-readonly` +BucketAccessClass), the system SeaweedFS chart under `packages/system`, +tenant integration (buckets available to everything under a tenant tree once +`seaweedfs: true` is set), a documented multi-DC mode since Cozystack +v0.34.0 (`SeaweedFS` resource, `topology: MultiZone`, per-zone replicas and +sizes), and a remote/Client mode for consuming another cluster's SeaweedFS +with mTLS client certificates. Upgrades, tenancy, and per-user credentials +ride the platform. + +Adopting RustFS inside Cozystack would mean running it as a self-managed +add-on (its own upstream Helm chart): no COSI `Bucket` integration, no +tenant plumbing, and a second S3 control surface duplicating the built-in +one. Migration either way is an S3-API copy — objects re-ingested; version +histories, Object Lock configuration, and IAM need deliberate re-creation, +not a lift-and-shift. RustFS's MinIO on-disk compatibility does not help +here: Cozystack holds no MinIO data. + +**Recommended posture:** + +1. SeaweedFS, as shipped by Cozystack, is the platform S3 layer. Adopt the + guardrails from section 5 as operating rules: SQL filer store (not + etcd), scheduled filer-metadata backups, never run + `volume.fsck -reallyDeleteFromVolume` while clients move files, no + scripted `-force` maintenance purges, replication never left at 000 for + data that matters, and pin versions rather than tracking latest. +2. RustFS goes on the watch list, with a pilot shape if a standalone + large-object workload (build artifacts, model files, media) appears + outside Cozystack: it is the better engine for that shape on the evidence + above. Re-evaluate for anything more after a year of GA exposure and a + cleaner security year than 2025–2026. + +## Sources + +- Independent head-to-head: iamkunal9, "MinIO alternatives: RustFS vs + SeaweedFS benchmark", published 2026-10-19 — + https://iamkunal9.in/blog/minio-alternatives-rustfs-vs-seaweedfs-benchmark +- Community warp comparison: rustfs/rustfs GitHub Discussion #1500 (crawled + 2026). +- Project documentation and wikis: seaweedfs.com / SeaweedFS GitHub wiki; + docs.rustfs.com; rustfs.com multi-protocol access page (checked + 2026-11-24); RustFS README feature table (re-checked 2026-09-21 and + 2026-11-24). +- GitHub API repository, contributor, and release data for + seaweedfs/seaweedfs and rustfs/rustfs, read 2026-11-23/24 (raw output in + `supplement-project-health.md`). +- SeaweedFS issues #12527, #12563, #5794, #12786 and PR #11978; RustFS + CVE-2025-68926 and CVE-2026-73288 records; RustFS project postmortem of + 2026-09-03 (case notes in `supplement-data-loss-cases.md`). +- Cozystack repository and documentation (SeaweedFS system package, Bucket + application, multi-DC mode), checked 2026-11. +- Secondary comparisons: stormdevelopments.ca storage comparison (checked + 2026-10-21); Stackscape project profiles; LLMS3 notes on mid-2025 + independent RustFS testing. diff --git a/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-benchmarks.md b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-benchmarks.md new file mode 100644 index 000000000..969b5c6b8 --- /dev/null +++ b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-benchmarks.md @@ -0,0 +1,75 @@ +# Supplement: benchmark extracts + +Gathered 2026-11-23/24. Each run is recorded with its own conditions; runs +are not comparable across rows unless the source itself ran them head-to-head. + +## A. Independent single-node head-to-head (iamkunal9, published 2026-10-19) + +Source: https://iamkunal9.in/blog/minio-alternatives-rustfs-vs-seaweedfs-benchmark +Conditions: RustFS 1.0.3 vs SeaweedFS 4.48 (`weed mini`) vs MinIO last +community release; identical single-node conditions; defaults only; median +of 5 runs. + +Throughput (MiB/s): + +| Workload | RustFS | SeaweedFS | MinIO | +| --- | --- | --- | --- | +| 64 KiB PUT | 56.8 | 99.4 | 49.7 | +| 64 KiB GET | 149.5 | 114.0 | 121.7 | +| 8 MiB PUT | 325.5 | 106.9 | 318.8 | +| 8 MiB GET | 455.8 | 410.3 | 426.6 | +| 256 MiB multipart PUT | 276.4 | 125.7 | 323.8 | +| 256 MiB GET | 1,036.3 | 580.8 | 1,279.6 | + +p99 latency: 64 KiB PUT — SeaweedFS 39.3 ms, RustFS 61.6 ms. 8 MiB PUT — +RustFS 158.3 ms, SeaweedFS 580.5 ms. + +Resource use: SeaweedFS peak ~1.4 GiB RAM (~4.3× RustFS's 348 MiB; MinIO +394 MiB); SeaweedFS used ~1.6× RustFS's CPU time in every run. + +Durability: zero acknowledged objects lost or corrupted across 6 `kill -9` +cycles per store (26,111 writes total). + +S3 compatibility spot-checks: each store passed 14/15. RustFS and SeaweedFS +both drop metadata signed into presigned PUT URLs; MinIO lacks per-bucket +CORS. + +## B. Community 4-node warp comparison (rustfs/rustfs Discussion #1500, crawled 2026) + +Conditions: 4 nodes × 32 cores / 128 GB / 1 SATA SSD; MinIO +RELEASE.2024-10-29 vs RustFS 1.0.0-alpha.79 vs SeaweedFS 4.02; dual-replica +writes, cold-data EC; `warp mixed`. + +- GET, small sizes: SeaweedFS far ahead — 4 KiB ≈ 75.9–112.4 MiB/s vs RustFS + ≈ 12.6; 32 KiB ≈ 497–920 vs ≈ 100. +- GET, large sizes: converge ≈ 1.8–1.9 GiB/s for both. +- PUT, small sizes: RustFS very low (≈ 4.2 MiB/s at 4 KiB). +- RustFS crashed at 512 concurrency on 1 MiB objects (could not upload) — + alpha build; dated evidence only. + +## C. RustFS vendor numbers + +- Original "2.3× MinIO" claim: project benchmark, 2-core Xeon Platinum + 8475B, 4 GB RAM, 15 Gbps network, 4× 40 GB NVMe, 4 KB small objects. + Vendor-side. +- Beta.10 blog (build dated 2026-07-17): Azure, 4 nodes × 4 disks (300 GB, + 32k IOPS), 8 CPU / 16 GB, warp 64 concurrent × 5 min — PUT beats MinIO at + all 11 sizes (up to 2.85×); GET gap "narrowing". Independent summaries + (LLMS3) note a mid-2025 independent test with MinIO at 53 Gbps vs RustFS + 23 Gbps on 20 MiB reads. +- Vendor cluster claim: 323 GB/s read / 183 GB/s write — evaluation testing, + not third-party. + +## D. SeaweedFS project numbers (labelled unscientific by the project) + +- MacBook SSD, `weed benchmark`, 1M × 1 KB files, concurrency 16: write + 15,708/s (p50 0.8 ms, p99 2.6 ms); random read 47,019/s (p50 0.3 ms, + p99 0.7 ms). +- Local warp mixed: total 3,302.88 MiB/s (GET 2,477 MiB/s at 10 KB-class + objects). + +## E. First-hand single-node warp run (dev.to, RustFS 1.0.1) + +Single node, Ryzen 7 5800H laptop, loopback, warp 1.3.1: 1 MiB GET +663 MiB/s avg, PUT 102 MiB/s; 10 KiB GET 13,965 obj/s, PUT 360 obj/s +(median latency 21 ms). Loopback — relative reference only. diff --git a/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-data-loss-cases.md b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-data-loss-cases.md new file mode 100644 index 000000000..565ab6a9e --- /dev/null +++ b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-data-loss-cases.md @@ -0,0 +1,110 @@ +# Supplement: data-loss case notes + +Gathered 2026-11-23 from project issue trackers, CVE records, postmortems, +and forum threads. Each case: what happened, version, classification. + +## SeaweedFS + +### 1. fsck delete vs moved files — issue #12527 (opened 2026-11-10) + +Versions 4.53 / 4.41, etcd-backed filer. `volume.fsck +-reallyDeleteFromVolume` can permanently delete live chunks of files MOVED +during its filer walk; the walk is directory-by-directory. SQL stores got a +snapshot fix in #11883; etcd and other non-`EntryScanner` stores still walk. +Reproduction: 50 moved files all falsely reported orphans on 4.53 +(report-only mode); on 4.41 with delete + `volume.vacuum`, all 50 still +listed but 0/50 readable (chunk GETs 404). Loss is silent and delayed — +tombstones plus `readDeleted=true` mask it until vacuum. +Classification: real product bug in maintenance tooling, triggered by a +specific filer backend + concurrent moves. Mitigation: SQL filer store; +never run fsck-delete while clients move files. + +### 2. Filer LevelDB corruption after power loss — issue #12563 (2026-11-11) + +Windows power loss left a zeroed block in the filer's LevelDB store; entries +in the damaged block are lost (their chunks orphaned). goleveldb recovery +itself was buggy up to 4.54; fix #12780 recovers in place, dropping only +damaged blocks. The case also exposed that master state `-mdir` defaults to +the OS temp dir. Object data itself was not corrupted. +Classification: metadata-store failure, not a volume/write-path failure. +Mitigation: filer metadata backups (`weed filer.meta.backup`). + +### 3. Claimed scripted purge — issue #5794 (2024-07-17, v3.68) — DISPUTED + +Reporter claimed a Postgres filer connection loss (12 h) on a third filer +plus a scripted maintenance suite (`ec.rebuild`, `volume.deleteEmpty +-force`, `volume.balance`, `s3.clean.uploads`) purged all volume data +within an hour. The maintainer disputed the filer-connectivity mechanism +and suspected `s3.clean.uploads`. Attribution unresolved in the thread. +Classification: disputed; the dangerous ingredient was an automated `-force` +maintenance script, on a `defaultReplication=000` (single-copy) cluster. + +### 4. Delete resurrection as empty object — issue #12786 (2026-11-19, v4.54) + +A delete whose tombstone reached the `.dat` file before its `.idx` row can, +after a crash, resurrect as an EMPTY object (HTTP 200, 0 bytes) instead of +404. Documented in the code as an intentional tradeoff: an empty placeholder +beats a wrong tombstone dropping an acknowledged write. +Classification: known, documented edge behaviour; data-integrity smell, not +silent loss of acknowledged content. + +### 5. Iceberg orphan cleanup deleted live files — PR #11978 (2026-10-23) + +Iceberg table maintenance `remove_orphans` deleted LIVE data files because +writers recorded percent-escaped paths (`%3D`) while the S3 layer stored +decoded paths. Fixed by dual-spelling coverage in the same PR. +Classification: real product bug in a young feature (S3 Tables), fixed on +discovery. + +### 6. Anecdote layer + +- Hacker News: one unattributed comment ("should absolutely not be used for + anything beyond testing — otherwise you're almost certain to lose data") + with no evidence attached; against it, multiple production reports + ("rock solid", "serve 1M users daily with 56 million images", billions of + XML/docs; corruption from cheap SSDs and power outages recovered). +- Goldentooth postmortem, March 2026, "SeaweedFS CSI: The FUSE Mount + Massacre": operator error — restarting CSI mount pods without restarting + consumers left dead FUSE mounts (ENOTCONN). No object data lost. + +### Counterweight + +Independent head-to-head (see supplement-benchmarks.md §A): zero +acknowledged objects lost or corrupted across 6 `kill -9` cycles per store, +26,111 writes. + +## RustFS + +### 1. CVE-2025-68926 (published 2025-12-30, CVSS 9.8) + +Hardcoded static gRPC auth token `"rustfs rpc"` in client and server, +non-configurable, valid across all deployments, alpha.13–alpha.77. Anyone +with network access to the gRPC port could run privileged operations +including data destruction. Public proofs of concept exist. Fixed in +alpha.78. +Classification: fundamental security-hygiene failure, pre-GA. Not a +data-loss bug in the write path, but a standing invitation to destruction +for anyone who deployed those alphas with the port reachable. + +### 2. CVE-2026-73288 (published 2026-08-12, CVSS 6.1) + +Object Lock enforcement treated unreadable/unparseable bucket metadata as +"no lock config", so COMPLIANCE-retained objects could be deleted/expired. +Fixed in 1.0.0-rc.1. A secondary comparison (stormdevelopments.ca, checked +2026-10-21) describes RustFS Object Lock as "bypassed twice in 2026". +Classification: durability-semantics bug in a compliance feature — the class +of bug that matters most for WORM workloads. + +### 3. Replication checksum-default flip — project postmortem, 2026-09-03 + +A replication checksum-default flip in 1.0.0-rc.5 silently broke every +replication PUT to Object Lock targets; reported by a customer two days +after release. Process finding recorded by the project: no Object Lock +target was exercised between the change and the RC. +Classification: release-process gap around exactly the features (replication ++ Object Lock) a durability story rests on. + +### 4. Absence of production data-loss postmortems + +None found comparable to SeaweedFS's issue history. RustFS reached GA on +2026-09-16, so absence of reports is at least partly absence of exposure. diff --git a/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-feature-notes.md b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-feature-notes.md new file mode 100644 index 000000000..c8afd5074 --- /dev/null +++ b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-feature-notes.md @@ -0,0 +1,102 @@ +# Supplement: feature and architecture notes + +Gathered 2026-11-23/24 from project documentation, wikis, README feature +tables, and the Cozystack repository/docs. + +## SeaweedFS + +- Design: Haystack — small files packed as needles into append-only volume + files; ~40 B disk metadata overhead per file; 16 B in-memory index entry + per blob; O(1) one-seek reads including from erasure-coded data. +- Large files: split into chunks of a few MB, each a blob; a meta chunk + lists the chunk file ids. +- Durability: hot data replicated (rack/DC-aware 3-digit replication, e.g. + 001/010); warm data converted in the background to RS(10,4) erasure + coding (1.4× overhead, tolerates 4 shard losses). OSS fixes 10+4; custom + ratios are Enterprise. +- Metadata: volume layer in master (Raft); filer DB is the scaling ceiling + — pluggable (LevelDB `leveldb2` default, PostgreSQL, MySQL, Redis, + Cassandra, etcd, TiKV, FoundationDB, and more); one row per object on the + S3 path. +- S3 surface (project wiki, checked 2026-11): versioning yes; Object Lock + yes (governance/compliance/legal hold); s3-testsuite score 174/207 (84%), + P0 75/79, versioning 14/14, object lock 8/8, lifecycle 2/8 — expiration + works, transition rules NOT supported; multipart all 7 operations yes; + bucket policies/IAM/STS partial vs MinIO; no Object Select. +- Independent test note: a file and a folder cannot share a path (`a/b` and + `a/b/c` cannot coexist). +- Access modes beyond S3: FUSE mount, WebDAV, SFTP, HDFS, Kubernetes CSI + + operator, TUS resumable uploads, HTTP. +- Tiering: transparent cloud tiering/offload. Cross-cluster `filer.sync` + active-active or active-passive, resumable with checkpoints. + `filer.backup`/`filer.replicate` to external S3/GCS/Azure/B2 (decrypts + SSE first). +- Encryption: AES256-GCM at rest; TLS/mTLS between components; JWT-signed + volume access; SSE-S3/SSE-KMS/SSE-C with KMS providers including + OpenBao/Vault/AWS/Azure/GCP. +- Extras in OSS: built-in S3 Tables (Iceberg REST catalog) and Lance table + buckets. +- Operational caveats: missing replicas are NOT auto-repaired (run + `volume.fix.replication` or the maintenance worker); self-healing, data + recovery, and point-in-time recovery are Enterprise-only. +- Security-advisory volume in 2026: 25 advisories June–September 2026, 9 + critical (stormdevelopments.ca, checked 2026-10-21). + +## RustFS + +- Design: MinIO-design reimplementation — per-object Reed-Solomon EC with + inline `xl.meta` metadata (one per object per shard, no metadata DB); + objects < 128 KiB inline. Huge object counts become billions of tiny + files: inode pressure and ListObjects scan cost are the ceiling. A + May-2026 small-object scalability analysis rated SeaweedFS the default + OSS answer at 30B objects and RustFS (then pre-GA) as not yet that + answer. +- EC geometry (project docs, October 2026): erasure sets of 2–16 drives; + automatic STANDARD parity EC:0 (1 drive) / EC:1 (2–3) / EC:2 (4–5) / + EC:3 (6–7) / EC:4 (8–16); 16-drive set = 12 data + 4 parity ≈ 75% + efficiency; parity ≤ N/2; Reed-Solomon over GF(2^8) Vandermonde; 1 MiB + erasure blocks; HighwayHash-256 bitrot checksums (same family/defaults as + MinIO, so MinIO-migrated objects stay readable). +- Pool topology is fixed at initialisation; mismatch = permanent + `PoolTopologyMismatch` startup failure. MNMD (≥ 4 nodes) is the + production layout; SNSD/SNMD single-node options exist. +- README feature table (re-checked 2026-09-21 and 2026-11-24): S3 Core, + Versioning, Object Lock (WORM), Lifecycle (ILM) + ILM tiering to remote + S3, Bucket Replication, Site Replication, IAM/Policies, Server-Side + Encryption + RustFS KMS, Distributed Mode, Bitrot Protection, Healing & + Scanner, Pool Expansion/Decommission, Bucket Quota, S3 Select, Event + Notifications — all "Available". S3 Tables (Iceberg REST) and MinIO + On-Disk Compatibility = Preview. Its own compatibility matrix is more + careful: "broad S3 API compatibility for supported features", explicitly + NOT complete coverage. Site replication requires RustFS-compatible peers; + bucket replication to a generic S3 target is supported via a per-target + version ledger. +- Protocols beyond S3 (rustfs.com multi-protocol page, checked + 2026-11-24): WebDAV and FTP/FTPS are built-in gateways, disabled until + enabled; Swift requires an optional build (SFTP likewise an opt-in cargo + feature per the README); MCP is a separate server pointed at the S3 + endpoint. No native FUSE/POSIX mount; third-party s3fs-fuse is the + documented fallback. +- Dedup: neither system offers content deduplication as a core storage + feature (checked 2026-11-24). SeaweedFS "dedup" references are read-path + request coalescing (singleflight chunk downloads), not content + addressing. + +## Cozystack fit + +- SeaweedFS is Cozystack's built-in S3: `Bucket` app via COSI bucket + claims; BucketClasses (including a `-lock` class and a `-readonly` + BucketAccessClass in a recent commit); the system SeaweedFS chart under + `packages/system`; tenant integration (buckets available to everything + under a tenant tree once `seaweedfs: true`); documented multi-DC mode + since Cozystack v0.34.0 (`SeaweedFS` resource, `topology: MultiZone`, + per-zone replicas/size); remote/Client mode for consuming another + cluster's SeaweedFS with mTLS client certs. Upgrades, tenancy, and + credentials (per-user admin/readonly secrets) ride the platform. +- RustFS inside Cozystack would be a self-run add-on (its own upstream Helm + chart exists): no COSI `Bucket` integration, no tenant plumbing, a second + S3 control surface duplicating the built-in one. +- Migration either way is an S3-API copy: objects re-ingested; version + histories, Object Lock configuration, and IAM need deliberate + re-creation, not a lift-and-shift. RustFS's MinIO on-disk compatibility + does not help here (Cozystack holds no MinIO data). diff --git a/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-project-health.md b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-project-health.md new file mode 100644 index 000000000..a3947066f --- /dev/null +++ b/doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/supplement-project-health.md @@ -0,0 +1,94 @@ +# Supplement: project health — raw GitHub API output + +Read 2026-11-23/24 via `gh api`. Repository stats and contributor lists +returned 2026-11-23; release lists returned 2026-11-24 (same command, +completed after the main research pass). + +## Repository stats + +seaweedfs/seaweedfs: + +```json +{"created":"2014-07-14T16:41:37Z","forks":3129,"license":"Apache-2.0","open_issues":715,"stars":36219} +``` + +rustfs/rustfs: + +```json +{"created":"2023-11-23T13:45:10Z","forks":1686,"license":"Apache-2.0","open_issues":73,"stars":36435} +``` + +## Contributors (top 10, commit counts) + +SeaweedFS: + +``` +chrislusf 11159 +dependabot[bot] 1687 +kmlebedev 393 +chrisluuber 104 +plisandro 102 +github-actions[bot] 96 +franchb 85 +hilimd 54 +LazyDBA247-Anyvision 54 +alrs 52 +``` + +RustFS: + +``` +overtrue 3348 +houseme 1742 +weisd 715 +cxymds 467 +marshawcoco 256 +guojidan 249 +reatang 194 +loverustfs 178 +GatewayJ 171 +majinghe 166 +``` + +## Releases (most recent first) + +SeaweedFS — weekly-to-fortnightly cadence: + +``` +4.55 2026-11-23T03:01:13Z +4.54 2026-11-16T05:31:48Z +4.53 2026-11-08T18:10:39Z +4.52 2026-11-02T11:24:12Z +4.51 2026-10-25T19:39:12Z +``` + +RustFS — GA 2026-09-16, then roughly fortnightly patches: + +``` +1.0.6 2026-11-15T23:26:57Z +1.0.5 2026-11-10T17:55:02Z +1.0.4 2026-10-25T16:26:17Z +1.0.3 2026-10-17T15:49:09Z +1.0.2 2026-10-16T14:48:29Z +1.0.1 2026-10-03T04:58:30Z +1.0.0 2026-09-16T10:03:34Z +1.0.0-rc.6 2026-09-11T04:52:34Z +``` + +## Stewardship notes (web sources, checked 2026-11-23) + +- SeaweedFS: Chris Lu (chrislusf, San Francisco) is the maintainer; + Stackscape attributes ~68% of commits to the top contributor. + Sponsor/Patreon-funded independent open source; the Enterprise edition is + sold via seaweedfs.com. Stackscape counts 3 public adopters excluding the + creator. Public production receipts: Kubeflow 1.11 and Epinio adopted + SeaweedFS as their default S3 store replacing MinIO. +- RustFS: project claims 7 core engineers and 160+ contributors. Owner is + RustFS, Inc. (founded 2024, holds the trademark). Geography/funding are + opaque and contradictory in public sources: the about page gives an + Atlanta, Georgia address; the USPTO trademark filing is by a Beijing + company (Beijing The Ganges River Sand Technology Co., Ltd.); + rustfs.com.cn exists; Stackscape lists "RustFS, Inc. — China". No + published investors, funding, or enterprise support terms; no paid tier + yet. Vendor deployment claims (2.7M at GA announcement; 3.7M+ later) are + unverified vendor figures. diff --git a/doc/README.md b/doc/README.md index 558d059e1..679be4d63 100644 --- a/doc/README.md +++ b/doc/README.md @@ -60,6 +60,7 @@ Folders are named `__`. The kinds in use are `feature` - [Code Book programme — Census B merged priority list](2026-11-24T00-55-23Z_research_code-book-census-priorities/2026-11-24T00-55-23Z_research_code-book-census-priorities.md) — research record for #13905 (census 2026-11-23/24): the merged, dependency-ordered priority list for the Code Book programme — 30 items ordered execution substrate (fleet) first, then physical substrate (lab), data substrate, search intelligence (Atlas×ID), the ID platform build-out, gateway/PM/fork surfaces, and the record itself — each item with its type, status and evidence, most-related issues, and ordering rationale, plus a per-book assignment table (fleet 4 · atlas 8 · id 9 · mcpx 1 · pm 4 · lab 4), timing notes that invent no dates, and the census gaps carried forward (service-worker/offline and switches have no owning issue; the #10706/#10708 discovery blocker is unverified). - [CNCF landscape — the slice this estate will actually need](2026-11-23T22-33-41Z_research_cncf-landscape/2026-11-23T22-33-41Z_research_cncf-landscape.md) — research record (2026-11-23): ~150 cloud-native projects across the seven areas this estate will need, each with CNCF status (graduated / incubating / sandbox / not CNCF) and an estate verdict — observability (OpenTelemetry as the contract; Prometheus as the language, VictoriaMetrics as the store; Grafana stays; no open-source Datadog exists), networking (Cilium yes; Gateway API after ingress-nginx's March 2026 retirement; MetalLB is the remembered LAN LoadBalancer; no service mesh yet), platform & GitOps (Flux over Argo CD for us; Cozystack fits with the caveat that it decides storage/tenancy/GitOps for you; Crossplane graduated but not now), data (TiKV no — a storage layer, not a database, and its Jepsen record is honest; CloudNativePG + replicas; NATS yes with a JetStream shape; LINSTOR over Rook), security & identity (Keycloak ≠ OpenBao; cert-manager and Kyverno when Kubernetes lands; SPIRE later, chained under the fleet CA; OPA management-plane only), runtimes (no OCI runtime is "much faster"; KubeVirt graduated and is the VMs-in-Kubernetes answer; Wasm apps designed to the Component Model, not WasmEdge), and registries & builds (GHCR until friction, then Zot; Harbor is a registry and Dragonfly a distribution layer, not alternatives; Nix + Actions already win the build category). Includes the Oct–Nov 2026 status-correction list (Crossplane, KubeVirt, NATS, Dragonfly graduated; CloudNativePG, OpenFGA promoted) and the uncertain-name identifications (Argonize doesn't exist; Trimmer→Tremor; Yuki→youki; Percy→Pixie; Spiffy→SPIFFE). +- [RustFS vs SeaweedFS — object storage compared](2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs.md) — research record (2026-11-24): the two S3 stores head to head — the one independent benchmark (SeaweedFS wins small-object PUT throughput and p99 latency, RustFS wins large objects and uses ~4.3× less RAM; zero acknowledged objects lost across kill -9 cycles in either store), features and metadata models side by side, the data-loss record investigated case by case (SeaweedFS losses concentrate in maintenance tooling, single-copy setups and filer-metadata failures, each with a named guardrail; RustFS's short history carries a hardcoded-token CVE and an Object Lock bypass), project health (SeaweedFS's one-maintainer reality verified by commit counts; RustFS's company real but geographically opaque), and the verdict: stay on SeaweedFS inside Cozystack, with RustFS as a watch/pilot candidate for standalone large-object workloads. Benchmark extracts, data-loss case notes, feature notes and raw project-health data ride in the folder as supplements. - [Multi-transport reach — any protocol as a carrier](2026-11-24T01-04-53Z_design_multi-transport-reach/2026-11-24T01-04-53Z_design_multi-transport-reach.md) — programme direction record (Drew, 2026-11-23) for epic #13926 and head design #13929: the P2P/ID/fleet stack reachable over many alternate transports and proxied systems (Spritely-style relays, Tor, Noise, ActivityPub, ATProto, email, MQTT, HTTP/REST, MCP, IRC, Zulip, Slack, Discord bots, Gopher, Gemini, telnet, physical media), each adapter at a declared level (read / bidirectional / write-capable / sync-equivalent), with asymmetric send/receive paths as a first-class design requirement. - [Secrets plane — delta refresh, broker peer sync, dual-store puts](2026-11-24T01-23-30Z_design_secrets-plane-sync/2026-11-24T01-23-30Z_design_secrets-plane-sync.md) — design record for #13948 (Drew, 2026-11-23): the secrets broker refresh becomes delta-first (one `bws secret list`, apply only entries whose `revisionDate` moved), brokers sync peer-to-peer behind a keyed set hash (v1 peer payload is the full set; a full upstream refresh is needed only when the laptop is down and the broker restarted with no cache), `fleet secrets` gains `refresh`, `get --upstream/--no-cache`, and a `put` that commits to the primary store then pushes to the peer and the mirror, and the two stores are kept in sync with Bitwarden Secrets recommended as primary and 1Password as mirror on the evidence in the design. Companion to-dos: #13950 (embed both stores in the fleet binary), #13952 (`fleet init` bootstrap command). - [IdP identity-linking policy — pending trust, passkeys, configurable factors, account merge](2026-11-24T01-28-40Z_design_idp-linking-policy/2026-11-24T01-28-40Z_design_idp-linking-policy.md) — design record (Drew, 2026-11-23) for #13415 and workstreams #13972 (HEAD), #13973, #13974, #13975: federation doors link to the same user without auto-trust (a new provider sign-in registers pending until approved from an established session), first sign-in auto-provisions the CA SSO account, passkeys bind to the originating sign-in path by default with a standalone option (unlimited, multi-provider attach), two-factor is user-configured as any two distinct factors, and account merge stays possible (no per-account-unique objects beyond a limited set, primary chosen, no data lost, per-attribute repointing); recovery/deletion policy explicitly undecided.