For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Deployment recipes

Ready-to-copy sparkConf and resource sizing for common Spark deployment shapes: daily incremental, medium lakehouse mart, large backfill, and MERGE-heavy CDC.

Use these recipes as a starting spec instead of tuning from a blank slate. Each one is a complete resource-sizing shape for a common workload; pair it with the driver/executor guidance in limits-and-performance.md if you need to adjust further.

Every recipe sets sparkConf in both spec.workflow.sparkConf (tunes migrate/plan/run) and spec.sparkConf (tunes the API track's separate Spark session). spec.api is sized independently. It sets request and limit resources plus replica count for REST/GraphQL/MySQL-wire concurrency.

Daily incremental, small project (5 to 20 models)

spec:
  engine: spark
  compute: spark-compute
  depots:
    - dataos://lakehouse-depot?purpose=rw
  workflow:
    schedule:
      crons: ['0 3 * * *']
      timezone: UTC
      endOn: '2028-01-01T00:00:00Z'
      concurrencyPolicy: Forbid
    resources:
      driver: { coreLimit: "2000m", cores: 1, memory: "2G" }
      executor: { coreLimit: "4000m", cores: 2, memory: "4G", instances: 2 }
    sparkConf:
      spark.sql.adaptive.enabled: "true"
      spark.sql.adaptive.coalescePartitions.enabled: "true"
      spark.serializer: org.apache.spark.serializer.KryoSerializer
  sparkConf:
    spark.sql.adaptive.enabled: "true"
    spark.sql.adaptive.coalescePartitions.enabled: "true"
    spark.serializer: org.apache.spark.serializer.KryoSerializer
  api:
    replicas: 2
    resources:
      requests: { cpu: "200m", memory: "512Mi" }
      limits:   { cpu: "2000m", memory: "2Gi" }

Medium lakehouse mart (~10 to 100 GB)

Large backfill (first run, 1 to 5 years of history)

Run backfills off-peak, and return to the normal executor count immediately after the backfill completes. The API track keeps serving existing materialized data throughout. Its sizing doesn't need to scale with the backfill's driver and executor resources.

MERGE-heavy CDC project

Pair with unique-key models that explicitly declare Iceberg format:

when_matched branches use source. and target. aliases. New keys fall through to implicit insert, so delete tombstones for missing keys insert rows unless filtered upstream.

Next steps

Return to the Spark to continue with serving, operations, and troubleshooting guidance.

Last updated

Was this helpful?