Store layout
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.
Directory tree
Section titled “Directory tree”<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 buildThe § marks refer to sections of the spec. This wiki has a page for each of them, linked below.
File names
Section titled “File names”<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.
What each entry is
Section titled “What each entry is”strata.lock,db.id,db.parentandarchive.anchor: see Small files.keys: the sealed keyring file, whose keys are described in the key hierarchy.wal/seg-<id:016x>.walandwal/seg-<id:016x>.w<N>.wal: WAL segments, made of sealed blocks.data/MANIFEST: the MANIFEST, the version log.data/MANIFEST.tmpis its rewrite staging file.data/<id:016x>.stc: a SEAM data file.data/<id:016x>.stci: the sidecar of a remote file.data/ZONES: the ZONES cache.data/SPANS: SPANS.data/TIERHEAT: TIERHEAT.data/cache.hot: cache.hot.data/rcache/: rcache/. All five are derived caches.data/*.tmpanddata/*.aside-<pid>-<n>: transient files, swept as described in Lifecycle and atomic install.load-tmp/andidxbuild-tmp/: Spill runs.
Which of these files are mutable, how each is sealed and which are authoritative is on File kinds.
Outside the store
Section titled “Outside the store”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.