Glossary

Spark cost terms explained

Short definitions of the terms that decide a Spark compute bill, from instance hours and DBUs to shuffle, spill and skew. Each entry links to the official documentation where the term comes from a standard or a platform. Terms are grouped by where they show up: the bill, the cluster, the job and the engine.

Which terms appear on the bill?

Cost per run

The full compute cost of one execution of a job: instance hours times rates, plus platform charges. The fairest number for comparing engines that change instance type or speed.

DBU (Databricks Unit)

The unit Databricks bills processing in. A cluster emits DBUs per hour; the DBU price depends on plan, cloud and region. On Jobs Classic compute the instances are billed separately.

Source: Databricks Lakeflow Jobs pricing

EMR charge

The Amazon EMR price that AWS adds to the EC2 instance price and EBS storage price for each instance in a cluster.

Source: Amazon EMR pricing

Idle capacity

Cluster resources that are allocated and billed but not doing work, such as spare nodes between busy periods or memory reserved but unused.

Instance hour

One instance running for one hour. On per-second billing, a cluster's instance hours are the sum of each instance's running seconds divided by 3,600. Most Spark cost levers shrink this number or its price.

Source: Amazon EMR pricing

On-Demand instance

An EC2 instance billed at the standard rate with no interruption risk. AWS quotes Spot discounts against On-Demand prices.

Source: Amazon EMR pricing

Per-second billing

Amazon EMR charges "a per-second rate for every second you use, with a one-minute minimum", on top of the EC2 and EBS price. Shorter jobs cost less on every per-second line.

Source: Amazon EMR pricing

Photon DBU emission rate

On classic Jobs compute, Databricks lists Photon with a "DBU emission rate 2.9X vs. non-Photon". The same cluster emits 2.9 times as many DBUs per hour with Photon on.

Source: Databricks Lakeflow Jobs pricing

Spot Instance

Spare EC2 capacity that AWS prices at "up to a 90% discount compared to On-Demand prices" and can reclaim. On EMR it is usually used for task nodes.

Source: Amazon EMR: instance guidelines (Spot)

vCore-hour

One virtual CPU core used for one hour. Definity prices its Pro tier "starting at $0.003 / vCore-hour".

Source: Definity pricing

Which terms describe the cluster?

Core node

An EMR node that runs tasks and stores data in HDFS. AWS lets Spark application masters run only on core nodes so jobs survive Spot task-node loss.

Source: Amazon EMR: instance guidelines (Spot)

EC2 F2 instance

An Amazon EC2 instance family offered in f2.6xlarge, f2.12xlarge and f2.48xlarge sizes. DualBird runs on F2 instances.

Source: Amazon EC2 F2 instances

EMR managed scaling

An EMR feature that adds and removes instances based on workload, on EMR 5.30.0 and later (not 6.0.0), for YARN applications such as Spark.

Source: Amazon EMR managed scaling

EMR on EKS

Amazon EMR running Spark jobs on Amazon EKS (Kubernetes), priced on the vCPU and memory jobs request.

Source: Amazon EMR pricing

EMR Serverless

An EMR option with no cluster to manage, billed for the vCPU, memory and storage jobs consume. Workers range from 1 to 16 vCPU and 2 to 120 GB.

Source: Amazon EMR pricing

GPU instance

An EC2 instance with NVIDIA GPUs. cuDF for Apache Spark on EMR needs GPU instance types for core and task nodes and does not support ARM.

Source: AWS: Using the Nvidia RAPIDS Accelerator for Apache Spark on EMR

Graviton instance

An ARM-based EC2 instance family. AWS states up to 30% lower cost and up to 15% better performance for Spark on EMR with Graviton2, an older AWS statement.

Source: Amazon EMR features

Primary node

The EMR node that runs the cluster's coordination services. AWS advises running it on Spot only if sudden termination of the cluster is acceptable.

Source: Amazon EMR: instance guidelines (Spot)

Task node

An EMR node that runs tasks but stores no HDFS data, which makes it the usual place for Spot capacity.

Source: Amazon EMR: instance guidelines (Spot)

YARN

The Hadoop resource manager that schedules Spark containers on a classic EMR cluster. EMR managed scaling works only with YARN applications.

Source: Amazon EMR managed scaling

Which terms describe a Spark job?

Adaptive Query Execution (AQE)

A Spark SQL feature, on by default, that re-optimizes the plan at runtime: it coalesces small shuffle partitions (advisory size 64 MB) and splits skewed join partitions (factor 5, threshold 256 MB).

Source: Apache Spark: SQL performance tuning

Broadcast join

A join that sends a small table to every executor instead of shuffling both sides. Spark broadcasts tables under spark.sql.autoBroadcastJoinThreshold, 10 MB by default.

Source: Apache Spark: SQL performance tuning

Data skew

Uneven data across partitions, so a few tasks take much longer than the rest while other cores wait. AQE can split skewed partitions in sort-merge joins.

Source: Apache Spark: SQL performance tuning

Driver

The process that runs a Spark application's main program, plans the work and schedules tasks on executors.

Source: Apache Spark: Tuning

Execution memory

The part of Spark's unified memory region used for shuffles, joins, sorts and aggregations. spark.memory.fraction sets the region at 0.6 of heap minus 300 MiB.

Source: Apache Spark: Tuning

Executor

A JVM process on a worker node that runs a Spark application's tasks and holds its cached data. Executor count and size drive how many instances a job needs.

Source: Apache Spark: Tuning

Partition

A slice of a dataset that one task processes. Too few partitions leave cores idle; too many add scheduling overhead. spark.sql.shuffle.partitions defaults to 200.

Source: Apache Spark: SQL performance tuning

Shuffle

The step where Spark redistributes data between stages, for joins and aggregations, by writing and reading it across the network. Large shuffles are a common cause of long, expensive stages.

Source: Apache Spark: Web UI

Spark event log

A record of a Spark application's jobs, stages and tasks, read by the history server. NVIDIA's qualification tool reads event logs to estimate GPU fit.

Source: NVIDIA: cuDF for Apache Spark on AWS EMR

Spill

Data written to disk when execution memory runs out during shuffles, joins, sorts or aggregations. The Spark UI reports shuffle spill to memory and disk per stage.

Source: Apache Spark: Tuning

Which terms describe engines and tools?

Capacity optimizer

A cost tool that raises the use of existing nodes, for example by letting the scheduler place more containers per node before adding nodes. Pepperdata Capacity Optimizer is one.

Source: Pepperdata FAQ

Fallback

When an accelerator meets an operation it does not support, that part of the plan runs on standard Spark instead. cuDF for Apache Spark and Photon both document fallback.

Source: NVIDIA spark-rapids FAQ

Native execution engine

An engine written in C++ or Rust that executes Spark's query plan outside the JVM, usually on columnar data. Photon, Velox (under Gluten), DataFusion (under Comet and Flarion) and Auron are examples.

Source: Apache Gluten homepage

Remote shuffle service

A separate service that stores shuffle data off the executors, such as Apache Celeborn. Comet 1.1.0 added native shuffle over Celeborn; Auron supports Celeborn.

Source: Apache DataFusion Comet 1.1.0 release post

Spark plugin

Code loaded into Spark through the spark.plugins setting to change how it runs. cuDF for Apache Spark and Apache Gluten load this way; DualBird describes adding its Spark plugin.

Source: AWS: Using the Nvidia RAPIDS Accelerator for Apache Spark on EMR

TPC-DS and TPC-H

Standard decision-support query suites often used for engine benchmarks. Gluten, Comet and Pepperdata publish figures on them; they compare engines more than they predict a specific ETL job.

Source: Apache Gluten homepage