Environments
Configure INDW for development, staging, and production environments with environment variables and backend selection.
INDW behavior varies by deployment environment through environment variables, backend selection, and quality profile choice. This page covers configuration patterns for each environment.
Environment variable reference
| Variable | Values | Default | Purpose |
|---|---|---|---|
INSTANT_PIPELINE_BACKEND | local, thread, multiprocess, dask | multiprocess | Execution backend |
INSTANT_PIPELINE_EXECUTOR | Same as above | — | Legacy alias |
INSTANT_DASK_SCHEDULER | tcp://host:port | — | Dask scheduler address |
DASK_SCHEDULER_ADDRESS | Same as above | — | Standard Dask env var |
INSTANT_MERGE_HW_PROBE | 0, 1 | 0 | Auto-tune workers from hardware |
Development
Minimal resources, fast iteration:
Use quality_smoke_5mb.yaml or similar small-corpus profiles. Enable observability for debugging:
Staging
Match production configuration on a sample corpus:
Use the same quality profile as production. Verify hash stability before scaling.
Production
Cluster execution with full observability:
Production checklist:
-
indw doctorpasses with all required extras -
indw validatepasses on acceptance corpus -
indw audit --kind productionpasses - Work directory on durable storage (not ephemeral container FS)
- Quality profile pinned in version control
- Merge run lock prevents concurrent writes
CI environment
CI should not require Dask or GPU extras unless testing distributed-specific code paths.
Configuration precedence
Example: --backend local overrides INSTANT_PIPELINE_BACKEND=dask even if the YAML profile specifies multiprocess.
Do not use container ephemeral filesystems for work directories in production. Checkpoint loss on container restart forces a full re-merge from scratch.
Observability by environment
| Environment | Observability | Reject log | Stage profile |
|---|---|---|---|
| Development | Enabled | Yes | Yes |
| Staging | Enabled | Yes | Yes |
| Production | Configurable | Yes | Yes |
| CI | Disabled | No | No |