Configuration overview
Mfd takes configuration from three places. Each has one job:
| Layer | Use it for | Example |
|---|---|---|
mfd.yml | What you move: sources, destinations, pipelines, transforms, and engine settings you want under version control. | data_sources, pipelines.orders.transform |
| Environment variables | Secrets, referenced from mfd.yml as ${NAME}, and settings that describe the machine Mfd runs on. | APP_DB_PASSWORD, WAL_STORAGE, DATA_DIR |
| CLI flags | What to do on this run, plus a few per-run overrides. | --pipeline orders, --once, --log, --wal-storage s3 |
The usual split: commit mfd.yml, keep secrets in your environment or a gitignored .env.local, and set operator settings in your scheduler, container, or service definition.
Connectors are always configured in mfd.yml, through Python Config, or with mfd connect. Each connector page lists its fields.
Which value wins
When the same setting can come from more than one place, Mfd resolves it like this:
| Setting | Order, first wins |
|---|---|
Pipeline settings such as buffer_threshold_bytes, data_dir, sync_frequency_seconds, and transform.* | mfd.yml pipeline key → environment variable → built-in default |
mfd.workspace, mfd.tenant, mfd.mfd_s3_bucket, mfd.mfd_el_storage_mode, mfd.perf_profile, mfd.telemetry | mfd.yml → environment variable → built-in default. --log perf also turns perf_profile on. CI still posts telemetry as origin=ci. |
mfd.wal_s3_bucket, mfd.store.type | mfd.yml → CLI flag → environment variable → built-in default. Leftover store.name in YAML is ignored. |
WAL_STORAGE | --wal-storage flag → WAL_STORAGE environment variable → disk |
| Which config file to read | --config → SKIPPR_CONFIG_FILE → ./mfd.yml and the other default names |
| Which pipeline to run | --pipeline → PIPELINE_NAME |
A value in mfd.yml always beats the environment. To vary a setting per machine, leave it out of mfd.yml and set the environment variable instead.
Global flags
These flags work with any command:
| Flag | Sets | Notes |
|---|---|---|
--config <path> | The config file to read | Same as SKIPPR_CONFIG_FILE. |
--log [level] | Log output to stderr | trace, debug, info (default), warn, or error. See Logging. |
--wal-storage <disk|s3> | WAL backend | Overrides WAL_STORAGE. See WAL and buffering. |
--wal-s3-bucket <bucket> | WAL bucket for s3 | Overrides SKIPPR_WAL_S3_BUCKET. |
--store-type fjall | Manifold Store | Overrides SKIPPR_STORE_TYPE. Leftover YAML/CLI sled maps to fjall; it is not a live engine. See Manifold Store. |
--workspace, --tenant, --storage-mode, and --mfd-s3-bucket take effect with mfd connect, which writes them into the mfd: section of mfd.yml. Set them in the file for every other command.
Example: one file, two machines
Keep the pipeline in mfd.yml and let each machine supply its own settings.
On a laptop, use the defaults: the WAL and state stay in ./data.
export APP_DB_PASSWORD='your-postgres-password'
mfd sync --pipeline orders --onceOn a long-lived host, keep WAL payloads in S3 and Manifold Store on a durable DATA_DIR:
export APP_DB_PASSWORD='your-postgres-password'
export WAL_STORAGE=s3
export SKIPPR_WAL_S3_BUCKET=acme-mfd-wal
export DATA_DIR=/var/lib/mfd
mfd sync --pipeline orders --onceThis works only if mfd.yml does not set mfd.store or mfd.wal_s3_bucket, because file values win. Hosts without a durable DATA_DIR are unsupported.
Where to go
| To | Read |
|---|---|
| Look up any key in the file | mfd.yml reference |
| Define a pipeline, its schedule, and its buffers | Pipelines |
| Pick and wire a source | Sources |
| Pick and wire a destination or deadletter sink | Destinations |
| Split, partition, flatten, sort, filter, or derive records | Transforms |
| Keyed running aggregates in Manifold Store | Materialised views |
| Choose disk or S3 WAL | WAL and buffering |
| Keep catalog, journal, schema, and stream state | Manifold Store |
| Look up every other engine setting | Advanced settings |
