Storage and state
The operator guide to where CALIBER keeps metadata, files, workflow workspaces, and retention-controlled artifacts.
Use this page when the practical question is where CALIBER keeps state, what must be backed up, and which storage surface to inspect when something is missing or inconsistent.
At a glance
| State surface | What it stores | Related settings |
|---|---|---|
| Metadata database | CALIBER metadata and control-plane state, including worker heartbeats | CALIBER_DATABASE_URL; the schema is created and upgraded by caliber-migrate, never by the server |
| MLflow backend store and artifacts | prompt versions and aliases, experiments, runs, traces | the mlflow server --backend-store-uri and --default-artifact-root. The bundled stack uses the mlflow database on its PostgreSQL container and the mlflow MinIO bucket (s3://mlflow/mlruns). |
| Object store | files in the buckets the console browses (uploads, previews, extracted artifacts), knowledge-base sources, log sink targets, persisted workflow-run artifacts | CALIBER_OBJECT_STORE_* (the connection only); the buckets come from each knowledge base, CALIBER_LOG_BUCKET and CALIBER_WORKFLOW_RUN_ARTIFACT_BUCKET |
| Workflow storage | workflow-run workspaces and files | CALIBER_WORKFLOW_STORAGE_* |
| Retention policy | how long finalized run files remain | CALIBER_WORKFLOW_STORAGE_RETENTION_* |
1. Prompts live in MLflow, not in CALIBER's database
CALIBER's database records which prompt version a release made live, who did it and why. The prompt versions themselves, and the prod alias that says which one is live, are in the MLflow registry, in MLflow's own backend store. They are separate stores with separate backups: see Backup and recovery.
2. Separate metadata from file storage
CALIBER does not keep every operational artifact in the same place.
That means:
- a metadata record may exist even if file storage is unhealthy
- file storage may be present even if the metadata database is unavailable
Treat those as separate failure domains during diagnosis.
3. Workflow storage is its own operator concern
Workflow-run file storage has its own backend, endpoint, limits, signing, and retention controls. Do not assume the generic object-store settings cover the full workflow storage path. When the backend is remote (s3, gs, az or azure, or a base URI with one of those schemes), readiness lists its bucket as the required object_store check (Health and readiness). The bundled stack points it at the caliber-workspaces MinIO bucket.
4. Common failure modes
| Symptom | First thing to check |
|---|---|
| Metadata exists but files are missing | workflow storage or object-store backend health |
| Uploads succeed locally but fail in another environment | endpoint, region, path-style, or credential-source differences |
| Old run files disappeared | retention policy and janitor expectations |
| A release is recorded but the prompt version is missing | the MLflow backend store was restored from a different time than the CALIBER database |