What is a DBU?
A Databricks Unit (DBU) is the unit Databricks bills processing in. A cluster emits DBUs per hour at a rate that depends on its size and features, and the DBU price depends on your plan, cloud and region. The figures below are from the Lakeflow Jobs pricing page, on the Premium plan, AWS US East (N. Virginia).
- Jobs Classic: "$0.15 / DBU... Plus underlying compute costs". You also pay your cloud provider for the instances.
- Jobs Serverless: "$0.35 / DBU Includes underlying compute costs". There is no separate instance bill.
What changes when you turn on Photon?
On classic Jobs compute Photon is "Available as an option. DBU emission rate 2.9X vs. non-Photon". The cluster emits 2.9 times as many DBUs per hour with Photon on. The instances underneath cost the same per hour as before.
On serverless, Photon is "Automatically enabled", and Databricks says the serverless DBU rate "appropriately reflects the processing power of Photon and is comparable to the DBU rate of a classic Photonized cluster". There is no toggle to weigh: Photon is part of the serverless price.
When does Photon lower a classic bill?
Take a job whose cluster emits D DBUs per hour and runs for T hours.
- Without Photon, the DBU line is 0.15 x D x T dollars.
- With Photon, it is 0.15 x 2.9 x D x T2, where T2 is the new runtime.
The DBU line falls only when T2 is less than T / 2.9, which is about 34.5% of the old runtime. Put the other way, Photon must cut runtime by more than about 65% before the DBU line shrinks.
The instance line works differently: it falls in proportion to runtime, so any speedup helps it. Your total break-even therefore sits between "any speedup" and "about 65% faster", depending on how much of the job's cost is DBUs and how much is instances. If instances are most of the cost, a smaller speedup can still lower the total; if DBUs dominate, Photon needs to be close to three times faster.
What does Photon not accelerate?
The Photon documentation lists limits that matter for this arithmetic. Photon falls back to standard Spark for unsupported work, it does not accelerate UDFs, RDD APIs or stateful streaming, and it gives no gain for queries that run in under 2 seconds. A job dominated by those parts pays the higher emission rate for little or no speedup.
How should you test it?
Run the same job, on the same data and cluster size, with Photon off and on, and record runtime and DBUs from the job run details. Then apply your own DBU and instance rates. The Photon break-even post works through the arithmetic with example runtimes, and the Photon profile lists the published facts. Photon is available only on Databricks; teams on Amazon EMR use other engines.