Skip to content

A store is one directory, the configured data dir, written as <root> below. Everything LUMA persists for a database lives under it, in a few small files, a wal/ directory, a data/ directory and temporary load-tmp/ and idxbuild-tmp/ directories.

<root>/
strata.lock advisory flock; one process per store
keys keyring (§2.3), mode 0600
db.id timeline id: 32 lowercase hex chars (random 128 bit)
db.parent present after a restore; parent timeline
archive.anchor backup anchor, magic "STBK"
wal/
seg-<id:016x>.wal WAL segment, WAL format 1 (§3)
seg-<id:016x>.w<N>.wal WAL segment, WAL format N >= 2 (none exist in SEAM 1)
data/
MANIFEST version log (§4)
MANIFEST.tmp transient, rewrite in progress
<id:016x>.stc SEAM data file ("SST"), local (§5)
<id:016x>.stci sidecar: tail of a file whose body lives in object storage (§5.10)
ZONES derived cache: zone-map seeds (§8.4)
SPANS derived cache: per-file value spans (§8.4)
TIERHEAT derived cache: per-file read heat (§8.4)
cache.hot derived cache: hot block list for warm restart (§8.4)
rcache/ derived cache: cold-tier frame cache (*.rc, index magic "SRC1")
*.tmp transient atomic-rename staging for the caches above
*.aside-<pid>-<n> transient handle-cache rename (fdcache); swept at open
load-tmp/ bulk-load spill runs (§8.5)
idxbuild-tmp/ index-build spill runs, removed after the build

The § marks refer to sections of the spec. This wiki has a page for each of them, linked below.

<id> is the 64-bit file number in lowercase hex, zero-padded to 16 digits (sst::file_name, crates/strata-lsm/src/sst.rs:535). A name that is not exactly 16 hex digits followed by .stc is not a data file.

Which of these files are mutable, how each is sealed and which are authoritative is on File kinds.

Objects outside the store directory, namely blob chunks in S3 or R2, backup containers and cluster snapshots, have their own formats and versions. They are outside SEAM except where a page says otherwise.