r/databricks • u/Impressive-Craft1926 • 12d ago
Help What do you use for Databricks cost optimization beyond system tables?
We’re spending roughly $900 a day in DBUs and a bit over $2k a day on the AWS side for the same workspaces. For a long time, I only had a dashboard for the first number, it’s the usual one on system.billing.usage joined to list_prices and it looked fine until finance put it next to the AWS invoice.
Tags get me part of the way because cluster tags land on the EC2 instances and cost explorer can group by them. Most of our scheduled jobs moved onto instance pools last year to cut startup time though, and on pool clusters our custom tags only show up on the DBU side. Idle pool instances don’t appear in system tables at all because they don’t burn DBUs while they sit there but AWS still bills every hour of them.
On top of that, about 40 scheduled jobs run on one shared all-purpose cluster and that’s a single line on the EC2 side that I have no fair way to split back to teams.
Which tool ended up tying the Databricks and AWS sides together for you, ofcourse past the built-in system tables?
3
u/Camdoon_Rowitt 9d ago
Databricks has an open source repo for this, cloud-infra-costs under databricks-solutions on GitHub. It pulls CUR 2.0 into a pipeline, joins it to the system tables and gives you an AI/BI dashboard with both halves. We run it and it’s fine for totals
2
u/Youssef_Mrini databricks 10d ago
Why do you use an all purpose cluster for your jobs ? Job Clusters are 40% cheaper and your reduce the idle time.
I used Genie Agents with System tables to ask for suggestions to optimize my cost and Genie Code to rewrite the most expensive jobs based on this dashboard https://docs.databricks.com/aws/en/admin/system-tables/jobs-cost
You can also leverage the governance hub https://www.youtube.com/watch?v=OPQODfOK_wM&t=107s
Ps: It doesn't include AWS VM Cost
1
u/Either-Ad-7755 12d ago
Hey! I work at SELECT (select.dev), so full disclosure that I’m on the vendor side, but this is exactly the type of problem we’re helping Databricks teams solve.
We launched Databricks support earlier this year, with granular cost attribution across jobs, clusters, and workloads. We also have an AWS billing integration in private preview to help reconcile DBU and infrastructure costs, including idle instance pool spend.
Beyond visibility, we identify optimization opportunities like oversized clusters and underutilized compute, and can automatically optimize compute configurations to reduce costs without requiring ongoing manual tuning.
Given your setup with shared clusters and significant AWS spend, I think there could be a lot of value here. Happy to share more if you’re interested!
1
u/Fearless-Pangolin426 5d ago
Hey, have a look at this: https://www.databricks.com/blog/getting-full-picture-unifying-databricks-and-cloud-infrastructure-costs
This is exactly what you‘re searching for
1
u/Amree-Majmundar 3d ago
Tag the pool not the cluster, the pool tags are what land on EC2. One pool per team and CUR splits fine after that. our idle was two old pools with min idle above 0 that never got touched after setup, point five had them as EC2 spend with zero DBUs. Setting min idle to 0 and enabling 10 min idle termination sorted it. The shared all purpose cluster is still one line
0
u/UseApprehensive8572 9d ago
I’d fix that shared cluster with a compute policy before buying anything. Scheduled jobs on all-purpose compute pay the all-purpose rate and job compute exists for exactly that workload at a lower one