Skip to main content

dfe-docker architecture

dfe-docker runs a whole DFE stack on one host under Docker Compose, from the same images and pins as the Kubernetes path. It is packaging, not product: it builds no DFE component, so a fault in the data path is almost always fixed in a component repo.

Figure 1. L2 Services - DFE Compose stack. Dotted paths are optional. Up: top of dfe-docker. Down: L4 Detail - Loader topic choice, L4 Detail - Loader and schema checks, L4 Detail - One console origin, L4 Detail - Two listeners on port 6000.

How data flows​

  1. Push clients send to dfe-receiver over HTTP, Vector, Beats, OTLP, HEC, syslog or flow. dfe-fetcher pulls from REST APIs, databases and files. It idles until a fetcher source exists.
  2. On a *-kafka profile both produce to a *_land topic named after the event's _source. The name carries through character for character, so filebeat-vector gives filebeat-vector_land and a table that needs backticks in SQL.
  3. A source with a transform gets its own instance. It reads <source>_land and writes <source>_load. From then on the loader reads _load instead. Transforms run on Kafka profiles alone.
  4. dfe-loader auto-discovers every topic ending in _land or _load and inserts into ClickHouse. dfe-archiver writes each source's landing topic to its archive, so archiving needs a Kafka profile.
  5. On a *-grpc profile there is no broker and the receiver dials dfe-loader:6000 directly.
  6. The DFE console sends every change through dfe-engine. The engine creates each table and topic and renders each app's config.

Create a source before you send it data. A loader that meets rows for a table it has no schema for buffers them, then dead-letters them.

Components​

PartRoleIts page
dfe-receiverPush ingest, every protocol, HTTP on :8080dfe-receiver
dfe-fetcherPull ingest from REST APIs, databases and filesdfe-fetcher
Source topicThe *_land topic each source writesBroker
TransformsVRL, Vector or compiled Elastic pipelines, one instance per sourcevrl, vector, elastic
Transformed topicThe *_load topic a transform writesKnown issues
dfe-loaderWrites ClickHouse and hosts the gRPC Push listenerdfe-loader
ClickHouseEvery table, plus the stack's self-telemetrySecrets and storage
dfe-archiverWrites raw events to a filesystem, S3, MinIO, GCS or Azure Blobdfe-archiver
ArchiveThe archiver's filesSecrets and storage
DFE consoledfe-ui and its Search, dfe-hyperdx, behind dfe-proxydfe-ui
dfe-engineConfig and schema API, the schema and topic authoritydfe-engine

dfe-transform-splack and dfe-transform-wasm have repos but no service here.

External dependencies​

DependencyNeededChoices
Docker with Composealwaysone Linux host
Registryalwaysthe registry the stack pins, at the digests the Kubernetes path runs
Brokeron *-kafka profilesRedpanda or Apache Kafka with KAFKA_BACKEND=apache (broker)
Object storagefor an archive past local diskS3, MinIO, GCS, Azure Blob
OIDC providerwith the auth profileany, through oauth2-proxy (auth profile)

Deployment variants​

A profile is <tier>-<transport>: slim-grpc, slim-kafka, single-grpc or single-kafka (profiles). slim is the core data path: receiver, loader, engine, console and Search. single-kafka adds the per-source apps and one archiver. There is no scale, because Compose can't scale out.

A profile declares its footprint through the clickhouse, core, kafbat, hyperdx, otel and auth keys, each overridable by its .env flag. Each footprint is a Compose profile:

Compose profileServices
clickhouseclickhouse
kafka-apachekafka-apache
kafka-redpandakafka-redpanda, kafka-redpanda-config
kafka-uikafka-ui (Kafbat)
dfedlq-init, bearer-tokens-init, the config-check-<app> one-shots, archiver, fetcher, loader, receiver, every transform instance
coredfe-engine, dfe-hunt-runner, dfe-ui, dfe-proxy, the contract-<app> one-shots
hyperdxdfe-hyperdx, dfe-hyperdx-proxy, hyperdx-documentdb, hyperdx-documentdb-tls, dfe-dashboards
otelotel-collector
auththe three oauth2-proxy-* gates (auth-profile.md)

Four limit tiers set CPU and memory ceilings (operating).

Kubernetes is the primary DFE path and Compose is for small environments. Three things differ on purpose:

  • A new source's apps start when you run make apply. Argo does that on Kubernetes.
  • Envoy's OIDC filters stay unconfigured, because Docker mode can't assume an issuer exists. The engine API still needs a login per route.
  • Container logs reach the collector through Docker's fluentd log driver and the host's CPUs are the one host metric collected (observability).

Design considerations​

Security. The console and its Search authenticate. The receiver's HTTP listener takes only bearer tokens once make post has made the ingest credential. The other ingest ports, Kafbat and the metrics ports ask for no login, so arm the auth profile or put the stack behind a VPN, a tunnel or a firewall (operating).

Reliability. Every app waits for dfe-engine to report healthy, which means its tables and topics exist. Before an app starts, a one-shot runs its config-check against the exact config it will use, so a broken config stops make up with the app's own error and not a restart loop.

Operations. Nothing restarts a container on its own. A change an app can't take in place is reported as restart required: make apply SERVICES=<app> (per-source apps).

Performance. The Compose stack is sized for one host. DFE_SERVICE_CPUS has a floor of 2.0 (operating).

Why it's built this way​

Same images, same registry, same pins. Compose is safe to deploy because it runs the exact digests Kubernetes runs, pinned from the same stack definition.

dfe-engine renders each app's config. Compose runs no chart, so the engine merges each instance's overlay over the committed config/<app>/<transport>.yaml and writes the result to the dfe-app-config volume. Deployment facts stay in the committed file and nothing deployment-specific goes into the deploy repo.

dfe-engine alone owns the schema and topics. The schemas ride inside the engine image, so a schema change is an engine release and there's no schema pin here. scripts/tests/test_engine_only_schema_control.py fails the build on any DDL or topic step in this repo.

One transform per source. A source with a transform stops sharing main_land, so only a transform reading that source's topic sees it. That matches Kubernetes, which deploys one per source definition.

Diagram map​

What's next​