Databricks Cluster Cost Advisor · guide

Databricks cost: autotermination, Jobs compute and DBU rates

Short answer: a cluster bills DBUs for every hour it runs, busy or not, and the rate depends on the kind of compute. Most avoidable spend is scheduled work on all-purpose clusters, clusters nobody stopped, and long autotermination tails.

What it costs (illustrative)

Where the money is

Measure and fix

  1. DBUs: SELECT usage_metadata.cluster_id, sku_name, SUM(usage_quantity) FROM system.billing.usage WHERE usage_date >= date_sub(current_date(), 30) GROUP BY 1, 2;
  2. Autotermination and DBU per hour: the cluster configuration; starts from the cluster event log.
  3. Paste rows into the advisor or run node cli.mjs analyze clusters.csv. It prints the setting to change per cluster.
  4. Change one cluster at a time and watch for a week before rolling out.

Questions

What autotermination should a Databricks cluster use?

30 minutes is a common default for interactive clusters. Shorter saves more idle tail but restarts cold; longer pays for idle time after each session.

Why is my Databricks bill high when jobs are short?

Usually the compute kind and idle time: a job on a shared all-purpose cluster pays about 3.5 times the DBU rate of a job cluster, and an always-on cluster bills around the clock.

Does Jobs compute change what my job does?

The code is the same; the cluster is created for the run and terminated after, so there is a startup wait and no shared state between runs.