Compute and cluster types
Compare SQL warehouses, jobs compute, and interactive compute. Match startup time, concurrency, and scale to a workload.
How a Spark cluster is built
A cluster has one driver node (runs your notebook code, plans work, collects results) and zero or more worker nodes, each running an executor that processes tasks in parallel. A single-node cluster has a driver and no workers; Spark runs locally on the driver.
The compute types

| Compute | Use it for | Key traits |
|---|---|---|
| All-purpose (interactive) cluster | Interactive development in notebooks, shared by several users | Created manually, can be restarted, stays up until auto-termination. Highest DBU rate. Do not use for production jobs. |
| Job cluster | Scheduled production jobs | Created by Lakeflow Jobs when a run starts and terminated when it ends. Cannot be restarted. Lower DBU rate. Isolates each run. |
| SQL warehouse | SQL queries, BI tools, dashboards, analysts | Types: Serverless, Pro, Classic. Photon always on. Sized in T-shirt sizes (2X-Small to 4X-Large). Scales by adding clusters for concurrency. |
| Serverless compute for notebooks, jobs and pipelines | Most new workloads | No cluster configuration, starts in seconds, autoscaling managed by Databricks, billed only while running. You cannot set most Spark configs or install init scripts. |
| Instance pools | Faster startup of classic clusters | Keep idle, ready VMs. Databricks charges no DBUs for idle pool instances, but the cloud provider still bills the VMs. |
- Many analysts running ad hoc SQL, fast startup, concurrency, controlled cost: serverless SQL warehouse with autoscaling.
- Nightly scheduled ETL notebook: job compute (or serverless jobs), not an all-purpose cluster.
- Team exploring data in notebooks together: all-purpose cluster or serverless notebook compute.
- Small single-user experimentation, ML on one machine: single node.
The SQL editor, dashboards and alerts run on SQL warehouses, not on all-purpose clusters. Notebooks attach to all-purpose clusters, serverless compute or SQL warehouses (SQL cells only). Databricks Connect lets an IDE such as VS Code run Spark code on a Databricks cluster or serverless compute.
SQL warehouse types

| Type | Startup | Features |
|---|---|---|
| Serverless | Seconds | Photon, Predictive I/O, Intelligent Workload Management, fastest autoscaling. Recommended. |
| Pro | Minutes | Photon, Predictive I/O, runs in your account |
| Classic | Minutes | Photon only, entry level |
A warehouse has a size (power per cluster, affects single-query speed) and min/max clusters (scaling for many concurrent queries). Queries queue when all clusters are busy.
The default SQL warehouse in a new workspace is the Serverless Starter Warehouse; its edit page shows its DBU/h for the chosen size.
Serverless limits worth knowing
Serverless compute for notebooks and jobs removes cluster configuration, and that comes with limits:
- Languages: serverless notebooks and jobs are built for Python and SQL. R is not supported, and Scala support arrived late (check the current docs). If a cell fails with "not supported by serverless compute", run it on a classic cluster.
- Environment panel: serverless notebooks pick an environment version and list dependencies in the Environment side panel instead of cluster libraries.
- Serverless jobs performance: standard mode accepts a few minutes of startup latency for lower cost; performance-optimized mode starts quickly. A simple job taking several minutes on serverless is usually startup time, not your code.
Configuration options on classic clusters


- Access mode: Standard (formerly Shared): many users, user isolation, Unity Catalog enforced, Python and SQL (Scala supported on recent runtimes). Dedicated (formerly Single user): assigned to one user or one group, supports all languages and features like RDD APIs and ML runtimes. No isolation shared is legacy and has no Unity Catalog support.
- Databricks Runtime (DBR): the image of Spark plus libraries. Prefer an LTS (long-term support) version for production. Pin the same Databricks Runtime version across clusters and jobs for reproducibility. Special runtimes exist for ML: the ML runtime adds ML libraries (the Genomics runtime in older material is retired). Photon is a checkbox.
- Autoscaling: min and max workers. Spark adds workers when tasks back up and removes idle ones.
- Auto termination: stop an all-purpose cluster after N idle minutes. Saves the most money for interactive clusters.
- Instance types: general purpose, memory optimized (large joins, caching), compute optimized, storage optimized (disk caching), GPU (deep learning).
- Spot instances for workers: much cheaper, can be reclaimed by the cloud. Keep the driver on-demand.
- Cluster policies: admin-defined rules limiting what users can configure (max size, allowed types, required tags). Used for cost control and governance.
- Init scripts: shell scripts run on each node at startup (install system packages). A failing init script makes the cluster fail to start.
- Libraries: install PyPI, Maven or wheel libraries on the cluster, or notebook-scoped with
%pip install. - Advanced options include cluster log delivery path and init scripts. The JSON view shows the API definition, for example
"data_security_mode": "DATA_SECURITY_MODE_AUTO","kind": "CLASSIC_PREVIEW", and Photon enabled.
Default compute policies
The buttons "Create with Personal Compute" and similar simply pre-select a compute policy (cluster policy). Policies work like IAM policies for compute: they restrict node types, Databricks Runtime versions, number of workers, access mode, pools and tags. Default policy families:
| Policy | What it gives |
|---|---|
| Unrestricted | Every option available (admins, or users with the unrestricted cluster creation entitlement) |
| Personal Compute | Single node (0 workers), one user, minimal configuration. For small to medium data and libraries like pandas and scikit-learn |
| Power User Compute | Single user, multi-node with autoscaling, for heavier individual work |
| Shared Compute | Multi-node, several users of a workspace, standard (shared) access mode |
| Legacy Shared Compute | Older shared mode without Unity Catalog, kept for compatibility |
Photon in more detail
- Enabled by default on compute running Databricks Runtime 9.1 LTS and above, and always on for SQL warehouses and serverless notebooks, jobs and pipelines. On classic clusters it is the Photon acceleration checkbox (Compute, Create compute).
- Speeds up scans, joins (it uses hash joins in place of sort-merge joins), aggregations, and Delta and Parquet writes. Benefits Spark SQL and DataFrame code, with no code change.
- It has some unsupported operations, which simply fall back to the standard Spark engine.
- Photon is on by default in new compute forms but raises the DBU rate on classic compute and does not speed up every workload (for example Python UDF-heavy or RDD code).
Instance pools in more detail
- A pool is a set of idle, ready-to-use cloud instances. Clusters attached to the pool take nodes from it, so cluster start and autoscaling are faster.
- If the pool has no idle instance, it expands by requesting a new instance from the cloud provider. When a cluster releases an instance, it returns to the pool for another cluster to use.
- Only clusters attached to a pool can use its idle instances.
- Idle instances cost cloud VM fees but no DBUs.
- If the workload supports serverless compute, Databricks recommends serverless instead of pools.
The cluster pages in the UI
- Visibility: the Compute list shows only clusters you have permission on; filter by "Created by me", all, running or terminated.
- Cluster tabs: Configuration, Libraries (install from Workspace, Volumes, PyPI, Maven and more, then restart if needed), Event log (created, running, terminated due to inactivity, resized), Spark UI, Driver logs, Metrics (CPU, memory).
- Permissions on a cluster: Can Attach To, Can Restart, Can Manage.
Cluster lifecycle: restart vs terminate vs delete
| Action | Effect | Use it when |
|---|---|---|
| Restart | Reboots driver and workers, clears variables and cache, keeps configuration, reinstalls cluster libraries | Broken library state or runtime errors, after changing libraries or Spark config |
| Terminate | Stops all VMs, ends all sessions and running commands, stops DBU and VM billing, keeps configuration | Work is finished or the cluster is idle (auto termination does this for you) |
| Delete | Removes the cluster and its configuration permanently | You will not use it again |
- Restarting a cluster clears all variables and cached data, and detaches notebooks' state.
- Terminated clusters keep their configuration and can be started again. All-purpose cluster configurations are kept for 30 days after termination unless pinned.
- A running but idle classic cluster still bills DBUs and VM time. A terminated cluster does not bill compute.
Cost model
You pay in DBUs (Databricks Units), a normalized unit of processing per hour. The DBU rate depends on compute type: jobs compute is cheaper than all-purpose; SQL and serverless have their own rates. For classic compute you also pay your cloud provider for VMs. For serverless, the DBU price includes the infrastructure. Track spend with the system.billing.usage system table, and attribute it with tags on clusters, jobs and warehouses.
Cost details in the UI
- The create compute form shows an estimated DBU/hour (for example 0.75 DBU/h for an Azure DS3_v2 node, 1 DBU/h for an AWS i3.xlarge). That is a number of units, not dollars. Cost = DBUs x price per DBU (depends on compute type, tier and cloud) + the cloud VM price on classic compute.
- DSU (Databricks Storage Unit) is the billing unit for Databricks-managed storage, the storage counterpart of the DBU.
- Databricks publishes a pricing calculator on its pricing page.
- Account console > Usage: the usage dashboard (an AI/BI dashboard on system billing tables, imported into a workspace) replaces the legacy Consumption page.
- Budgets (account console): name, workspace scope, optional tags, amount in USD, email recipients (comma separated). An email is sent when spend reaches the amount. Budgets alert only; they do not stop compute.
Split two workloads
A team runs a nightly Python ETL job and serves independent dashboard queries every morning. Choose compute for each and specify when you would release it.
Check your reasoning
Run the notebook on job or serverless job compute. Use a SQL warehouse for the dashboards and configure auto-stop for idle periods.
Product reference
Compute and cluster types quiz
Answer 7 questions. Check each answer for an explanation.