# Databricks Compute

> The machines that run your code in Databricks. You pay while they are on.

**Field:** Data Engineering  
**Category:** Platforms  
**Also known as:** Databricks Cluster, All-Purpose Compute, Job Compute, Databricks Serverless Compute

## Think of it like

It is like renting a car. You pay for each hour you have it, so you give it back when you are done.

## Definition

Databricks compute is the set of machines that runs your code in Databricks. Classic compute is a cluster of cloud machines that you pick and size yourself. All-purpose compute is for notebooks and can be shared by a team. Job compute starts for one job and shuts down when the job ends. Serverless compute is run by Databricks, so there are no machines for you to pick. SQL warehouses are the kind used for SQL and BI.

## Example

A team sets its all-purpose cluster to shut down after 30 idle minutes. It no longer runs all night with nobody using it.

## Why it matters

Compute is most of what Databricks costs. The kind and size you choose decide the bill.

## Common mistake

Running nightly jobs on the team's shared cluster. Give each job its own job compute, which stops as soon as the job is done.

## Three principles

- **Classic or serverless.** You size it, or Databricks does.
- **All-purpose or job.** Shared for notebooks, or one job.
- **Auto stop.** Idle clusters shut down after a set time.

## Related terms

- [Databricks](https://learn.benibix.com/term/data/databricks)
- [Databricks Notebook](https://learn.benibix.com/term/data/databricks-notebook)
- [Lakeflow Jobs](https://learn.benibix.com/term/data/lakeflow-jobs)
- [Databricks SQL](https://learn.benibix.com/term/data/databricks-sql)
- [Apache Spark](https://learn.benibix.com/term/data/apache-spark)
- [Serverless Computing](https://learn.benibix.com/term/infrastructure/serverless-computing)

![On the left, a notebook with three cells, one in Python and one in SQL. In the middle, a job with three tasks in a row: load files, run a pipeline, update a report, started by a clock at 2 AM. At the bottom, two kinds of compute: an all-purpose cluster the notebook attaches to, and job compute that starts for the job and stops when it ends.](https://learn.benibix.com/diagrams/dat3-databricks-work.svg)

---

Source: https://learn.benibix.com/term/data/databricks-compute
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
