Skip to content

TinyS3 Storage Modes ​

TinyS3 supports three storage configurations. All of them plug into the same storage facade — the S3 semantics (versioning, multipart, tagging, locking, …) live above the storage layer, so every mode supports the full S3 feature set; the modes differ only in how bytes reach disk. See File-system module for the architecture.

Simple Mode ​

Objects stored as plain files on one directory tree — no erasure encoding (DiskFileSystem). Fastest option and the easiest to inspect or back up with ordinary tools; no fault tolerance beyond the disk it runs on.

yaml
server:
  port: 8000

auth:
  accessKey: "your-access-key"
  secretKey: "your-secret-key"
  region: "us-east-1"

storage:
  mode: simple
  path: ./storage

Erasure Mode - Single Disk ​

Erasure coding on one disk. Provides data integrity verification but no protection against disk failure.

yaml
server:
  port: 8000

auth:
  accessKey: "your-access-key"
  secretKey: "your-secret-key"
  region: "us-east-1"

storage:
  mode: erasure
  erasure:
    dataShards: 4
    parityShards: 2
    disks:
      - ./storage

Erasure Mode - Multiple Disks ​

Erasure coding across multiple disks. Provides fault tolerance - survives disk failures.

yaml
server:
  port: 8000

auth:
  accessKey: "your-access-key"
  secretKey: "your-secret-key"
  region: "us-east-1"

storage:
  mode: erasure
  erasure:
    dataShards: 4
    parityShards: 2
    disks:
      - /mnt/disk1
      - /mnt/disk2
      - /mnt/disk3
      - /mnt/disk4
      - /mnt/disk5
      - /mnt/disk6

Disk Requirements ​

Number of disks must be ≥ total shards (dataShards + parityShards).

ConfigTotal ShardsMin DisksMax Disk FailuresStorage Overhead
4+266250%
4+377375%
8+41212450%

If you have fewer disks than shards, multiple shards land on the same disk. Losing that disk loses multiple shards, reducing fault tolerance.

TinyS3 is AGPLv3 licensed. Cloudflare and Cloudflare Workers are trademarks of Cloudflare, Inc. Amazon S3 and AWS are trademarks of Amazon.com, Inc. or its affiliates. MinIO is a trademark of MinIO, Inc. They are named only to describe compatibility; totis.ai is not affiliated with, endorsed by, or sponsored by any of them.