The Filer
Names, directories, and chunks, and choosing a metadata store
The filer is the part of SeaweedFS that knows names. Every S3 bucket is
a directory under /buckets, every key a path in it, and every entry a
list of chunks pointing into volumes.
An entry, as the filer stores it
Ask the filer for an object's metadata with ?metadata=true:
curl -s -H 'Accept: application/json' \
'localhost:8888/buckets/app-data/invoices/2026/10/inv-1.json?metadata=true'
{"FullPath": "/buckets/app-data/invoices/2026/10/inv-1.json",
"Mtime": "2026-10-12T13:00:25Z", "Mime": "application/json", "FileSize": 38,
"Md5": "6YksR6VCQqEcHbXvFl96kA==",
"Extended": {"Seaweed-X-Amz-Owner": "YWRtaW4=", # "admin", base64
"X-Amz-Meta-Source": "bGFi", ...}, # x-amz-meta-source: "lab"
"chunks": [{"file_id": "9,01b651906d06", "size": 38, ...}]}The S3 metadata you set on upload lives here, in the filer, not in the volume. That's why the durability lab could read each object's checksum even when the object's bytes were on stopped servers.
Large objects are chunked
The 24 MiB multipart object from s3_basics.py is six chunks of 4 MiB
(the filer's -maxMB, default 4), spread over three volumes:
16,01ba225168d1 offset 0 size 4194304
13,01bb9022011e offset 4194304 size 4194304
14,01bccf889707 offset 8388608 size 4194304
13,01bd16a8a9d4 offset 12582912 size 4194304
16,01bed6bec06b offset 16777216 size 4194304
16,01bfcec2807d offset 20971520 size 4194304Chunks let one object be bigger than a volume, let a range read fetch only the chunks it needs, and let parts upload in parallel to different servers. They also mean one object depends on several volumes: lose every copy of any one of them and the whole object is unreadable.
The metadata store
The filer keeps entries in a pluggable store. weed scaffold -config=filer
prints a filer.toml with every option:
| Store | Filers | Good for |
|---|---|---|
| LevelDB / RocksDB (embedded) | One, or several syncing to each other | Simple setups; fastest; its disk is your metadata |
| Postgres / MySQL | Many, stateless | Most production setups; backups and HA you already know |
| Redis | Many, stateless | Very high metadata rates; needs persistence configured with care |
| Cassandra / TiKV / FoundationDB | Many, stateless | Billions of entries across many nodes |
With an embedded store, the filer's disk is the only place that knows
which bytes belong to which object. Lose it and the volumes still hold
every byte, with no names attached: you can't serve S3 from them. Put
the store in a database you already back up, or run
weed filer.meta.backup continuously to a second store. Then you can
run several filers behind a load balancer too.
Small files in the filer store
-saveToFilerLimit makes the filer store objects smaller than the limit
inside the metadata entry itself, with no volume write at all. It saves a
round trip for tiny objects, and it moves them out of volume replication
and into whatever protection the metadata store has. Off by default, as in
this lab.
Watching changes
The filer keeps a log of every metadata change, which several tools build on:
Lab
- Fetch the metadata of
backups/db/dump-1.binand look up each chunk's volume with/dir/lookup?volumeId=. How many volume servers does this one object depend on? - Run
weed filer.meta.tail -filer=filer:8888in the filer container while runnings3_basics.py. What does each S3 call produce? - Stop the filer, then read a chunk directly from a volume server by its file id. The bytes are there; the name isn't.