Calculator
Spark cluster sizing calculator
A starting point, not a guarantee: it uses the rules of thumb from the Spark & Databricks guide. Run a sample, measure the real seconds per task in the Spark UI, then come back and refine.
What this does not know
- File format: CSV is often 5–10× slower per task than Parquet, and gzip files cannot be split (one task per file).
- Skew: one huge key makes one task run far longer. Enable AQE skew join or salt the key; more cores will not help.
- Startup, shuffles and the driver do not speed up with more cores, so returns diminish as you add them.
- Streaming jobs: size for the peak input rate per trigger, not the total data volume.