talira

An S3 object store so reliable you can run it outside datacenters

open sourceAGPL-3.0self-hostablefree

Garage is a lightweight, S3-compatible distributed object store made for self-hosting at small to medium scale, on clusters whose nodes sit in different physical locations joined by ordinary Internet links. It ships as a single dependency-free Rust binary, places copies of each block in separate zones (usually three), deduplicates and optionally compresses data with Zstd, and avoids Raft or any other consensus algorithm so requests don't funnel through a leader. Buckets can be served directly as static websites, can have several names (aliases), and are managed through a CLI and an admin REST API, with Prometheus metrics and OpenTelemetry traces. It is built by Deuxfleurs, a small French non-profit hosting collective that has run it in production since 2020, and it deliberately leaves out erasure coding, POSIX semantics and S3 features such as versioning and object lock. AGPL-3.0, with development funded by EU NGI and NLnet grants.

Ways to install

Problems it solves

  • run S3-compatible storage across a few servers in different houses or offices joined by ordinary internet connections
  • an object store light enough for old second-hand machines with 1 GB of RAM
  • keep copies of my backups at three sites so losing one location loses nothing
  • self-host media storage for Mastodon, Matrix or PeerTube without running a Ceph cluster
  • serve static websites straight from storage buckets on servers I run myself
  • a restic and rclone backup target that I host and replicate between sites
  • storage cluster that keeps serving when one node's home internet goes down
  • an open source alternative to MinIO for a small homelab or community hosting cluster
  • add or remove storage nodes and have the data rebalanced automatically
  • rename an S3 bucket without copying all its contents
  • a Nix binary cache or container registry backend on storage I host
  • S3 storage for a non-profit hosting collective spread across members' homes

Features

  • Amazon S3 API (a documented subset, with a compatibility table)
  • geo-distributed replication: copies placed in separate zones, replication factor configurable (3 recommended)
  • several replication and consistency modes
  • single dependency-free binary for any Linux distribution; x86_64, ARMv7 and ARMv8
  • low requirements: 1 GB RAM, 16 GB disk, 200 ms latency and 50 Mbps between nodes
  • no Raft or other consensus algorithm: requests are handled independently, without a leader
  • block-level deduplication and optional Zstd compression
  • automatic rebalancing when nodes are added or removed (cluster layout management)
  • static website hosting from buckets, with domain names mapped to buckets
  • bucket aliases, including per-key local aliases
View 7 more
  • admin REST API for nodes, keys, buckets and aliases
  • Prometheus metrics and OpenTelemetry traces
  • node discovery through Kubernetes or Nomad with Consul
  • tolerates nodes with changing IP addresses
  • SSE-C server-side encryption with customer keys
  • experimental K2V key/value API
  • multi-HDD support per node

Limitations

  • No S3 object versioning: bucket versioning isn't implemented8
  • No object lock, WORM or conditional writes (if-none-match): impossible without a consensus algorithm9
  • No erasure coding: data is protected by full copies only10
  • Not a POSIX file system: Garage doesn't emulate a file system or aim for POSIX compatibility10
  • No S3 bucket policies or ACLs: access uses Garage's own per-key, per-bucket permissions8
  • No S3 bucket replication API: replication is configured at the cluster level, not per bucket8
  • Metadata performance degrades with many objects: users report slowdowns around 10 million objects9

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what Garage does.

  1. RustFS High-performance, S3-compatible distributed object storage built in Rust
  2. SeaweedFS A simple and highly scalable distributed file system
  3. Ceph The Future of Storage
  4. MinIO High-performance, S3-compatible object storage
  5. Amazon S3 Object storage built to retrieve any amount of data from anywhere
  6. Cloudflare R2 Egress-free object storage

Compare Garage with the top 3