PostgreSQL
Stores users, workflows, jobs, runtime nodes, notification state, analytics aggregates, idempotency records, outbox rows, job leases, retry metadata, and processed-event identity.
Container lifecycle records
Jobs-service owns the durable container protocol in PostgreSQL:
| Record | Authority / retention |
|---|---|
container_creation_intents | Per-attempt name, original routing/instance, single-use grants and monotonic closure; retained for late discovery |
container_materializations | Verified immutable IDs; one daemon/container identity cannot belong to multiple intents |
runtime_capacity_holds | Unresolved Start-reserved physical capacity; released only by matching removal proof |
container_cleanup_receipts | Exact original-instance completion evidence; repeated acknowledgment cannot release capacity twice |
outbox_events cleanup fields | Execution generation, token/lease, retry budget, backoff and quarantine on the retained cleanup intent |
container_cleanup_redrives | Accepted cleanup generation changes with authenticated actor, repair reason and timestamp; survives source/outbox pruning |
container_intent_redrives | Separate audit of administrative discovery-inspection redrive |
Durable-state gauges read unfinished cleanup rather than counting deliveries. Audit retention is separate from outbox retention. Neither elapsed age nor an audit record replaces physical removal proof.
ClickHouse
Stores retained job logs optimized for high-volume ordered reads. It is not the authoritative workflow or job state store.
Redis
Stores HTTP sessions and supports live log pub/sub, workflow lifecycle locks, and runtime-node-scoped image pull locks. Workflow and user reads use PostgreSQL directly.
Meilisearch
Indexes retained log messages for text search and highlights. ClickHouse remains the retained log body store.
Kafka
Carries durable asynchronous events. It is a transport log, not the only record of command completion or job ownership.
Runtime registry and Docker proxy
runtime-agent registers Docker-capable nodes in PostgreSQL and heartbeats Docker endpoint health, capacity, and status. The Docker proxy exposes a token-authenticated, method-and-path-allowlisted subset of Docker APIs to workers instead of mounting the daemon socket directly into every process.
runtime-agent owns rows in runtime_nodes. Jobs store runtime_node_id and an endpoint snapshot while they are running so execution, logs, termination, deletion, and expired-lease recovery use the Docker daemon that owns the container.
Ownership rule
Do not add a second writable source for a domain entity without defining reconciliation. Each store has a distinct operational role.
