Skippr is now Manifold.

Skip to content

Manifold Store ​

Manifold Store is the local key-value store on the writer host. Payload bytes stay in WAL .seg files or S3 objects. The store is the authority for which segments are live, how far each source has got, what the pipeline schema is, which migrations have applied, and where keyed aggregates have reached.

There is no remote table that other nodes consult. One process writes a DATA_DIR. Ephemeral hosts without a durable DATA_DIR are unsupported. DynamoDB is not Manifold Store. ManifoldLake may still use a DynamoDB Iceberg catalog table via destination config. Never set mfd.store.type to pick that catalog.

What lives where ​

FamilyWhat it holdsUsed by
catalogLive WAL: segments, index, compaction, reclaim, sequenceIngest, compact, mfd query pin
offsetsSource resume and CDC envelopes (rebuildable from catalog)mfd sync
schemaShredded pipeline metadataDiscover, evolution, ALTER
journalDDL migrate SQL journal (id + checksum + phase) and declared compute (compute#workspace#pipeline, keyed by compute name)mfd migrate, ALTER TABLE / ALTER COMPUTE, transform.compute
stream_stateMaterialised aggregate checkpoint and WAL cursor in one transactionMaterialised views
store_metaFormat version, leftover sled copy cursor, snapshot sequenceOpen, recovery

WAL payloads are not in the KV. Optional store snapshots (SKIPPR_S3_BUCKET) are best-effort and must not fail ingest. Recovery opens the live fjall log. It does not restore from a snapshot.

How the jobs use it ​

Ingest and transforms. Stateless compute (filter and derive) runs in memory, then Mfd commits the batch to the WAL catalog. Live resume is remembered in process. The offsets family is rebuilt from that catalog on start. The lake sees transformed rows.

Materialised views. After WAL commit, the processor updates stream_state in the same Manifold Store transaction as its cursor. Compact waits on that cursor. See Materialised views.

Migrations. mfd migrate and mfd query --sql "ALTER TABLE …" apply in-stream. The journal family records each file (or query checksum) so a retry is idempotent. Apply rewrites live WAL, applies destination DDL, then appends the ALTER log in schema/. See mfd migrate.

Realtime SQL. mfd query pins a flushed snapshot of the store (query_pin) so SELECT can union Iceberg with the WAL slices that were live at that pin. A second process may read while ingest holds the writer. It must not take writer.lock or commit. See Stream SQL.

Backend ​

The live engine is fjall under {DATA_DIR}/manifold-store. Leftover YAML mfd.store.type=sled maps to fjall. An on-disk {DATA_DIR}/db directory from that leftover engine is copied into fjall on start, then archived. mfd.store.type=dynamodb fails closed.

Tests may use an in-memory store. That is not a production engine.

Configure ​

Local default, no store block:

yaml
mfd:
  # WAL stays on DATA_DIR; Manifold Store stays next to it

Leftover YAML mfd.store.type: sled maps to fjall. It is not a live engine choice.

S3 WAL plus local store (WAL payloads on S3, KV still on DATA_DIR):

yaml
mfd:
  wal_s3_bucket: acme-mfd-wal
  store:
    type: fjall
bash
export WAL_STORAGE=s3
export SKIPPR_WAL_S3_BUCKET=acme-mfd-wal
mfd sync --once --pipeline google_analytics
python
from mfd import Config, FjallStore

cfg = Config.discover()
cfg.store(FjallStore())
cfg.save()

After a crash ​

Open ignores optional store snapshots and replays the local fjall log. If a resume row is missing but the WAL still has the batch, the next run rebuilds progress from the WAL.

If both the WAL and the store are gone, the pipeline starts from the beginning of the source.

A second writer process against the same DATA_DIR fail-closes. Extra reader processes pin a flushed copy and query. They do not write.

Settings ​

KeyValuesDescription
mfd.store.type / SKIPPR_STORE_TYPE / --store-typefjall (default)Local engine. Leftover sled maps to fjall. dynamodb is an error
WAL_STORAGEdisk, s3See WAL and buffering
SKIPPR_WAL_S3_BUCKETbucketDedicated WAL bucket when WAL_STORAGE=s3
SKIPPR_S3_BUCKETbucketOptional store snapshots only

Next steps ​