LEVEL 5 · FRONTIER

Distributed Eval Farm Coordinator

Build a persistent same-host evaluation coordinator that partitions recorded predictions, leases shards to real worker processes, fences stale completions and retains dataset-bound receipts.

4 stages~8 hoursGocore
Partition stable case identitiesFence each shard leaseAccept idempotent completion receiptsRun a bounded local worker pool
YOU END UP WITH

Build a persistent same-host evaluation coordinator that partitions recorded predictions, leases shards to real worker processes, fences stale completions and retains dataset-bound receipts.

USEFUL FOR
  • Resume interrupted batch evaluations with exact dataset identity
  • Inspect shard ownership, process receipts and stale-worker rejection
LEARN FIRST
  • Go 1.22 or later on Linux or macOS
  • Python 3.10 or later for the grader
  • Go structs, pointers, errors and JSON files
  • Goroutines, channels and context cancellation
PROJECT OUTLINE

Distributed Eval Farm Coordinator in 4 stages

Partition cases, lease shards and aggregate bounded concurrent workers.

  1. Partition stable case identities

    Assign each nonempty unique case ID to one of a positive number of shards using FNV-1a.

    starter · ~2 hours · Go

    Stable IDHash bytesModulo countOne partition
  2. Fence each shard lease

    A coordinator owns a lease record.

    core · ~2 hours · Go

    Unfinished shardExpiry checkNew ownerIncrement version
  3. Accept idempotent completion receipts

    A completion carries shard owner, lease version and a nonempty result.

    core · ~2 hours · Go

    Owner and versionLease boundaryResult identityIdempotent receipt
  4. Run a bounded local worker pool

    Compose the bounded pool with persistent leases and actual worker processes; retain scored case coverage and reject stale receipts.

    core · ~2 hours · Go

    Bounded goroutinesUnique dispatchCooperative cancellationStable results

All projects · Course catalog · Source on GitHub