Deployment
Data Pipeline runs as container images plus configuration. This page covers the pieces you deploy, what the platform needs from your environment, how it is configured, and how to verify and run it. For a local run with Docker Compose, see Installation.
What you deploy
| Component | Role |
|---|---|
Control plane (pipeline-app) | REST API, spec validation, scheduling, and run submission |
| Data plane (Apache Spark) | Executes each pipeline as a Spark job through the Spark driver |
| PostgreSQL 15 | All platform state; the schema is created and migrated by Liquibase at startup |
| Object storage (S3-compatible) | All product-managed files |
| Identity provider (OIDC) | Issues the JWTs the API validates |
The control plane owns the API, validation, and scheduling. Each run is submitted to Spark, whose driver executes the pipeline and writes run status, stages, and offsets straight to PostgreSQL. Product files live in object storage: pipeline definitions, inputs, outputs, stage samples, streaming checkpoints, stateful step state, and archived driver logs.
What the platform needs
- PostgreSQL 15 reachable from both the app and the Spark driver.
- S3-compatible object storage with a bucket and credentials, reachable from both sides. This is the required backend for a real deployment (
APP_STORAGE_BACKEND=object). - A Spark cluster reachable from the app over its submit API, with the engine and connector jars available to Spark: bake them into the image or mount them into the cluster.
- An OIDC identity provider (issuer URL and audience).
- A license (
DATAFLOW_LICENSE_MODE,onlineoroffline). - Networking: the app reaches the Spark submit API; the driver reaches PostgreSQL and object storage; browsers reach the app and its origin is allowed in
CORS_ALLOWED_ORIGIN_PATTERNS.
Configure
Deployment is configured entirely through environment variables. The groups to set:
| Group | Variables |
|---|---|
| Database | PIPELINE_DB_URL / _USER / _PASS |
| Auth | OIDC_ISSUER_URI, OIDC_AUDIENCE, SECURITY_SUPER_ADMIN_EMAIL |
| Storage | APP_STORAGE_BACKEND=object and the APP_OBJECT_STORAGE_* group |
| Spark | SPARK_REST_URL, SPARK_MASTER_URL |
| License | DATAFLOW_LICENSE_MODE, DATAFLOW_LICENSE_KEY / DATAFLOW_LICENSE_FILE, DATAFLOW_INSTALLATION_ID |
Serve the UI and API over HTTPS, and make sure the browser origin is allowed in CORS_ALLOWED_ORIGIN_PATTERNS. See Environment Variables for the full reference.
Deploy
- Publish images - build and publish the app image, and a Spark image that includes the engine and connector jars (or provide the jars to your Spark cluster).
- Bring up PostgreSQL - deploy PostgreSQL 15 or point at a managed instance; Liquibase migrates the schema on first boot.
- Bring up object storage - deploy an S3-compatible store or point at a managed bucket.
- Bring up Spark - deploy a Spark master and workers, or a single container for resource-constrained environments.
- Deploy the app - run it with the configuration above and the
clusterSpring profile, so every run is submitted to the Spark master instead of a local Spark. - Verify - check health and the Spark master, then run a pipeline end to end.
Verify
- The app is
UPat/actuator/health. Allow a ~90 second startup grace period. - The Spark Master UI lists registered workers.
- A pipeline run completes end to end.
Operate
- Scheduling - the scheduler runs inside the app; one instance triggers scheduled runs. A schedule that comes due while the platform is down fires once when it returns, then advances to its next time.
- Run tracking - the Spark driver writes run status, stages, and offsets to PostgreSQL; the app reconciles status by polling Spark and can kill a run.
- Restarts - streaming checkpoints and stateful step state live in object storage, so restarted jobs resume. Set
APP_DRIVER_LOG_ARCHIVE_ENABLED=trueto archive driver logs there too, so they survive restarts. - Access -
GET /actuator/healthincludes the license status. Public endpoints are/actuator/**,/v3/api-docs/**,/swagger-ui/**, and tokenized file downloads; everything else needs a valid JWT.
Related pages
- Environment Variables - the full configuration reference
- Architecture Overview - control plane, data plane, and persistence
- Execution Lifecycle - how a run progresses