Skip to content

feat: Buckets stored on several nodes, databases, file origin and linked dataset parts - #546

Merged
St4NNi merged 543 commits into
mainfrom
feat/distributed-buckets
Oct 26, 2026
Merged

St4NNi merged 543 commits into
mainfrom
feat/distributed-buckets

Conversation

@St4NNi

@St4NNi St4NNi commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Description

Adds buckets stored on several nodes: one bucket name is created on chosen member nodes and kept as copies (mirror, two-node replica), split into key ranges (sharding, with or without replicas), or filled on use (copy on use, cache on use, stream). Each key range has one write coordinator; reads work from any copy. Very large registered collections (bakrep with about 50M files) stay browsable and searchable without asking the source. Also adds databases (a bucket plus a linked dataset), file origin records and linked dataset parts with a derived isPartOf. Version 3.0.0-alpha.138.

Changes

  • Distribution record: one publisher per set signs full snapshots; members admit themselves with signed statements; realm config carries the records. Global ids /{realm-id}/{version-id} (https://w3id.org/aruna/data/{realm-id}/{version-id}) with a set hint in the version id.
  • Creation and membership: POST /data/groups/{group_id}/distributed-buckets creates a set on chosen nodes; routes to join, leave, move a range, change settings and delete; status shows members, ranges, moves, deletion and degraded ranges.
  • Writes: only the coordinator of a key's range writes, checked inside every write transaction against a local fence, the incarnation and the epoch. Other members forward S3 writes with a request-bound delegation and REST writes with the caller's token. An unreachable coordinator gives a 503 with a hint and the bucket shows as degraded; there is no automatic failover.
  • Replication: coordinators publish versions, heads and delete markers to the members of each range; every incoming publication is admitted against the record. New and catching-up members bootstrap from the ordered inventory with durable cursors.
  • Reads: members serve held ranges from their copy and read through a holder otherwise. Copy on use, cache on use (bounded, with eviction) and stream; verified ranged reads; range behaviour per bucket or member.
  • Sharding: listings, version listings and multipart upload listings across ranges; multipart and copy across ranges and coordinators; imports range by range; automatic range splits with lineage.
  • Transfer and deletion: fenced range transfer with upload grace and source checks, balancing by fill, set deletion with a streaming purge per range on every member.
  • Scale paths: ordered inventory, version id index and per-range counters as commit-time deltas; bounded source listing and page imports; usage rebuild without blocking startup; backend selection by index; a tantivy key index per range for search; bounded backlinks and hash alias lookups; distributed objects stay out of the DHT.
  • Holders and downloads: download slots in heartbeats, holder choice by free slots, single-use download tickets, DRS and w3id resolution of global ids with 307 redirects, registry route GET /v1/resolve/{id}, credential values redacted in request logs.
  • Metadata: datasets store distributed objects by global id; databases are realm config entries with owner consent (/{realm-id}/admin/databases); every version records its origin and sync hops, projected into datasets as isBasedOn or CreateAction; linked parts resolve live and give a derived isPartOf.
  • S3: user metadata keys that are not valid header names (internal aruna-engine.org/ tags) are left out of responses; ranged GET answers no longer carry full-object checksums.
  • aruna-doctor migrate rewrites every stored row whose shape this change extends, so an existing realm can upgrade.

Related

Limits

  • Physical capacity reservation at member admission is not implemented yet.
  • An interrupted usage rebuild starts again from the beginning.
  • Signed operations already in a realm's sync log from before this version (node removal without cutoffs, git publishes without global ids) cannot be migrated; nodes that already applied them are fine, a node joining later sets them aside.

St4NNi added 30 commits October 24, 2026 21:29
@St4NNi
St4NNi force-pushed the feat/distributed-buckets branch from a6432d9 to 5a23492 Compare October 26, 2026 07:31
@St4NNi
St4NNi merged commit b48a922 into main Oct 26, 2026
27 checks passed
@St4NNi
St4NNi deleted the feat/distributed-buckets branch October 26, 2026 08:19

This branch was previously deployed

1 inactive deployment
coverage — 5a234922 Deployed Oct 26, 2026 by St4NNi via Generate Coverage Report #950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant