Pipeline Authoring
Execution Settings
The optional execution.settings block sets Spark resources per run. Every key maps to a Spark submit property and overrides the platform's submit defaults for that pipeline - no code or cluster changes needed.
At a glance
- Optional - omit
execution.settingsto use the platform's Spark defaults. - Driver and executors - set memory and cores for each role.
- Run controls -
timeout,task_max_retries, andprioritytune how a run behaves.
All settings
Driver
| Setting | Type | Default | Maps to |
|---|---|---|---|
driver_memory | 4g, 1024m | 1g | spark.driver.memory |
driver_cores | int ≥ 1 | 1 | spark.driver.cores |
driver_memory_overhead | string | 256m | spark.driver.memoryOverhead |
Executors
| Setting | Type | Default | Maps to |
|---|---|---|---|
executor_memory | string | 1g | spark.executor.memory |
executor_cores | int ≥ 1 | 1 | spark.executor.cores |
executor_memory_overhead | string | 512m | spark.executor.memoryOverhead |
executors | int ≥ 1 | 2 | spark.executor.instances |
dynamic_allocation | bool | false | spark.dynamicAllocation.enabled |
maximum_cores | int ≥ 1 | 4 | spark.cores.max |
Run
| Setting | Type | Default | Maps to |
|---|---|---|---|
timeout | 60s, 30m, 2h | 300s | spark.network.timeout |
task_max_retries | int ≥ 3 | 4 | spark.task.maxFailures |
priority | low, medium, high | - | spark.scheduler.priority |
Example
Code
Notes
executorsis a fixed count - setdynamic_allocation: trueto let Spark scale executors instead, andmaximum_corescaps the total cores the run may claim.task_max_retrieshas a minimum of 3 - the platform's executor-exclusion safety layer needs room to retry before a task fails the run.- Streaming throttles are set per asset/output instead:
max_offsets_per_triggeron stream assets (see Sources) andtrigger_intervalon streaming outputs (see Destinations). - Unknown setting keys warn and are ignored - the run continues with the defaults.
- Check what the cluster can actually give you:
GET /api/cluster/resourcesreturns total and available cores and memory from the Spark Master.
Related pages
- Pipeline Spec Overview - the full spec model
- Execution Lifecycle - how runs use these settings
- Spark Troubleshooting - memory and timeout problems
- API Reference - the schemas endpoint (
/api/schemas/execution/settings)
Last modified on