Hercules

Google File System design implemented in Go

Image 1 of 1: Photo vault app on Hercules with its media library and the primary and secondary chunk replicas

A single master tracks metadata and chunk placement while chunkservers hold replicated chunks, with lease-based mutations as in the GFS paper. Failure detection uses the φ Accrual algorithm, and an HTTP gateway and a Go client sit in front.

Trade-offs

  • A single master, as in GFS. Metadata and chunk placement stay in one place, which simplifies coordination.
  • Failure detection data lives in Redis, which adds one more service to the Docker setup.

Q&A3

Not yet. Bugs and design decisions are still under review, so there are no numbers of its own.

Reviews

Loading reviews

    More in Distributed systems

    See all 20 →
    • arbiterPostgreSQL job queue for Haskell, with no broker and no leader
    • RRQClosed-loop payment ledger on sharded Postgres with a Kafka outbox
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads
    • clinkC++ stream processing engine that stays correct when processes die
    • pg-statusSidecar that reports PostgreSQL master, replicas and replication lag

    More in Database internals

    See all 29 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • SNKVEmbedded key-value store built directly on SQLite's B-tree
    • musqlSQLite-compatible SQL engine on columnar storage and a JIT
    • MongrelDBEmbedded Rust database with vector, sparse and text indexes
    • MenteDBRust storage engine built for AI agent memory

    More in Go

    See all 99 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
    • OmagenImage-to-theme studio for Omarchy with reversible previews and recovery
    • XDPerfXDP traffic generator with WASM packet plugins
    • pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
    • PandaWardLocal application security assessment that reports what it couldn't decide