Skip to main content

How to Reduce Databricks Costs: A 6-Part Cost Management Framework from 250+ Customers

Summary

  • 6-part framework: proven through work with over 250 Databricks customers.
  • Visibility and guardrails: visibility and attribution help teams understand spending while controls like auto-termination and cluster policies prevent runaway costs.
  • Decentralized ownership: drives faster adoption than centralized budgets and controls.

How to Reduce Databricks Costs: A 6-Part Cost Management Framework from 250+ Customers

Watch: How to Reduce Databricks Costs: A 6-Part Cost Management Framework from 250+ Customers
Talk by Ian Whitestone, General Manager, DoiT
Reducing Databricks cost comes down to six capabilities: visibility, attribution, controls, alerts, insights and automations. Drawn from cost optimization work with more than 250 companies, this video walks through each one: how to calculate fully loaded workload cost of Databricks DBUs plus cloud infrastructure, how to use system tables and lineage to see what a pipeline really costs, how to attribute spend to teams by workspace or tag, and which guardrails actually hold, including auto-termination, cluster policies with RBAC and query timeouts.
Learn how to calculate fully loaded workload costs (Databricks DBUs plus cloud infrastructure), use system tables and lineage to see the true cost of a pipeline, and attribute spend to teams by workspace or tag. The video covers guardrails such as auto-termination, cluster policies with RBAC, query timeouts and budgets, plus custom alerts that give context and reach people in Slack or email. It also covers automations such as cleaning up unused data, why showing engineers what their jobs cost drives quick wins, and why decentralizing cost ownership across teams is the only approach that scales.
Sponsored by SELECT.

Chapters

FAQs

How do I know what my Databricks workloads cost?

Use system tables and lineage to calculate fully loaded costs of Databricks DBUs plus cloud infrastructure. This video walks through setting up dashboards that show the true cost of each pipeline, including both compute and infrastructure spend.

How can I control Databricks spending?

The video covers guardrails such as auto-termination, cluster policies with RBAC, query timeouts, and custom budgets. These controls help prevent runaway costs when properly configured and combined with visibility and alerts.

Should I centralize or decentralize cost ownership?

The video explains why decentralizing cost ownership across teams is the only approach that scales—when engineers see what their jobs cost, they drive quick wins and adopt cost practices faster than when spending is managed centrally.

What do system tables show about Databricks cost?

System tables provide visibility into query execution, resource usage and lineage, which you can use to attribute costs by team, workspace or tag, and identify which workloads are consuming the most resources.

Full transcript

00:00 Introduction: Databricks cost optimization

Thank you all for coming, although it seems like it's time for your lunch. I appreciate you listening to my story about Databricks costs, even though you could be having lunch. For today's conversation, or maybe first, let me quickly introduce myself. My name is Ian, and I'm one of the co-founders of a company called Select. I'll talk about what Select does soon, but today's conversation is about all the lessons we've learned working with over 250 Snowflake and Databricks customers, helping them specifically with cost management.
So, everyone will find something for themselves here. I'm very happy to talk to you about this. Just to provide context for why I'm here talking about this. So, I'm one of the co-founders of a company called Select. We are a SaaS web application that helps any cloud data customer like Snowflake, Databricks, BigQuery optimize and manage their cloud data usage. Many of these platforms are incredible. They are also very easy to spend money on, so you need to be very careful or have controls and monitoring tools set up.

00:43 Who is SELECT and where the framework comes from

This is what we do as a company. Together, we have worked with over 250 Snowflake and Databricks customers, helping them do just that. So today's conversation is about all these lessons we learned. No matter what stage of your Databricks journey you are at, you'll find something useful here, whether you're just starting out or an experienced user. I hope you like it. I will stay to answer questions after the end. I'll give a quick overview of what we do as a product, and then there will be less advertising and more useful information.
So, as mentioned, we are a SaaS solution for cost optimization. So what does this mean in practice? We have fully automated optimizations that help automatically reduce the costs of your core compute services in Databricks. For example, general-purpose computing tasks and serverless SQL storage. This is just one step, and we provide a host of other features that help you put into practice many of the things I'm going to talk about today: whether it's distributing costs across different teams to decentralize them, or providing end users with information on how they can optimize, or providing the various safeguards and controls needed to keep track of your costs.
This is a little background information about us. I wo n't say anything more. Feel free to come over and chat with us after the performance. I want to outline the foundation of what we've learned about all the different aspects needed to effectively manage costs over the long term on any of these platforms, particularly Databricks. So, viewability and attribution sound like basic things, but they will help you a lot, which I'll talk about shortly.

02:32 Visibility: do teams know what they spend on Databricks?

Do you see your expenses? Do the different teams know how much they are spending? It sounds simple, but it's difficult to put into practice, and it's incredibly important to do it right. Control and notifications: how to avoid mistakes that hurt you and not be caught off guard, as well as automation and insights. How can you automate actions on behalf of users to save money, and if you can automate, how can you offer them something they can do?
So those are the things I'm going to talk about today. I will speak very quickly and try to fit as much useful information into this presentation as possible. We'll start with spend visibility and attribution as two main pillars. There is a very good quote in FinOps. FinOps, if anyone hasn't heard, is a common practice for effectively managing cloud costs. It seems to stand for financial transactions. And this quote goes like this: The biggest savings in the cloud come from costs that weren't there.
Sure, it's great if you find a task that didn't need to be done, disable it, and tell your boss you saved $100,000 a year, but it would be ideal if it didn't run at all all year and you could detect it in advance so the costs don't pile up. So that's the point of this quote - to detect things like this before they become a problem, that's why visibility is so important. I'm interested in conducting a very quick audience survey .
How many people here know how many dollars a month they spend on Databricks? And if not, that's okay. Okay, most of you know. And how many people here use, for example, serverless SQL storage? Do people know how much a single query costs when you run it there? This is a little more complicated because these are shared computing resources that run many different tasks. But that's where cost attribution becomes very important.
And this is probably an even more difficult question. How many people know what your total costs are for Databricks? I mean both DBU and your base costs for AWS, Azure or GCP. There are several hands. Things are starting to get really complicated. So that's all you ultimately want to come to, to be able to answer all these questions, because that will tell you where there are losses and where there aren't. So, I won't spend much time on this.
You probably know what you can do in Databricks out of the box. If not and you are new to Databricks, they provide very useful ready-made templates that you can use, and they are investing more in their built-in cost analyzer in the product. You will usually find that this gives a general idea of ​​the costs, but once you want to go deeper, you have to either build your own dashboard or run queries against system tables.

04:58 System tables and dashboards for Databricks cost

This is extremely important. So this is where we spend a lot of time investing, and if you're investing in your Databricks cost management strategy , I highly recommend taking the time to do this. Really make sure your end users understand the cost at the workload level . So what do I mean by workload? In the Databricks world, this could be, for example, a task. So make sure it's pretty obvious to the engineer, does he know how much his task costs when he launches it?
Or here's an example of what we do for server-side SQL repositories, where we group similar SQL queries that people run, and then show end users, "Hey, did you know your job costs $10,000 a year?" This may seem trivial and simple, but it actually has an incredible impact when you just provide this information to people— often they can notice something like, “Oh, that was a quality control task. It no longer needs to be run.
It doesn't have to cost $10,000. I will reduce the frequency of its execution. So, this visibility seems basic, but it makes a big difference when you put this information prominently in front of users. Another thing you can invest in and benefit from—we help clients understand what we call the full value of a data asset. So, have you all seen the lineage view before ? This is something like a representation of your DAG.

06:11 Using lineage to see full pipeline cost

So, that's basically what it is, but I wonder if I can point with a laser pointer here. No, it's okay. What you can see in this pedigree representation, we call it a value-based pedigree. So, you can see each node in your DAG, whether it's a table or a task, and how much each one costs. And the reason why this is important is because individual tasks or workloads can be cheap, right? It might be $1,000 or $2,000 a year, but if you combine about 20 of these into a pipeline, which is common, you're already spending $40,000 a year.
So having a full contextualized pipeline cost from start to finish for your users—that's another thing that can be really helpful when individual tasks or workloads might be cheap, but then you think, "Wow, collectively we're spending 40k on this one-time use case for this manager who asked for this custom data product, right?" And you can really start having conversations about the value they bring to your business.
Um, one more question: how many people have implemented tagging in Databricks? Good. How many of you have all of your database resources or Databricks resources tagged? Yes. Very impressive for those who raised their hands. Hmm, that's hard. Most people don't , and they will have some kind of mixture. So what you're ultimately going to have to do is get to a point where you can allocate costs across different departments, teams, projects, so you can start analyzing what you're spending money on.

07:23 Attribution: allocate costs by team, workspace or tag

Um, what I will say is that when you're going to build something yourself, you're, I'm sorry to say, never going to be able to tag everything, either because it's too complicated or something doesn't support tagging yet. This, believe me, will happen. I've never met a client who had everything tagged. So you will need to create backup rules. This is something we also do in our product, where you can act based on whether something has tags— use them, and if not, go to legend, workspaces, or tags by repository user, etc.
So, um, cost allocation is extremely important , so that individual teams ask, "Hey, do you know how much you're spending on Databricks?" Or if you're responsible for the platform bill, you can explain to management, "Hey, our Databricks bill doubled this year because we added all these new use cases, or maybe there's something that shouldn't be growing so much that's worth talking about." So, this is cost visibility and attribution .
Again, this sounds simple, but it's the most important place to start, and it will actually help you achieve a lot. Don't rush to set up Spark SQL shuffle partitions on day one, if you don't have that visibility and answers to these questions, that's where you need to start . I promise, this will result in significant savings. Next is control and notification. What you can do to keep your expenses from increasing and you from wasting money .

08:36 Controls: auto-termination, cluster policies and query timeouts

I divided this into two types: proactive and reactive. Being proactive helps you avoid spending unnecessary money at all. Reactive sounds worse, but is also very useful. You still need safeguards, because even with all the control methods mentioned, costs can still increase. The first way is obvious: ask yourself, what if we turned off resources when they weren't working ? Sounds great. That's what autocomplete is for.
You would be surprised. There are still clusters and storages that run without this setting. If you haven't turned it on, do it everywhere. This is a very simple way to both save money now and avoid wasting it in the future. Second, and I'm in a hurry. You can write to me after the talk and I will share the slides. The second method is often overlooked as a way to control costs, but it is access control. You're doing this for safety anyway.
Think of it as restricting access to performing operations that are too expensive. So, what are overly expensive surgeries? Creating a giant cluster or executing queries on a huge SQL repository, right? If you control it through RBAC, you stop the data scientist—or whoever, I like to pick on data scientists. I was one of them myself. You can prevent them from running a small query on a huge cluster that will blow up your bill.
So controlling resources through RBAC is an often underestimated way to minimize costs, and I highly recommend it. Cluster Policies: If you don't know, you can set up policies that restrict what users can create. This might prevent someone from creating a 6X Large cluster just because they wanted their work to be completed faster. I strongly recommend using this. As I said, I was a data scientist. I worked at Shopify.
We had a huge local Spark cluster . And we were allowed to choose any amount of computing power. And guess what I chose every time? Of course, I'll choose the XX-large size because it makes the job go faster, and I'm not the one paying for it, right? So I'm telling you: if there are no restrictions, people will naturally choose the highest capacity , because there's no reason not to . Therefore, implementing these policies and controls is a very useful thing.
Many of you raised your hands regarding SQL server storage. Databricks offers a feature called query timeout. The system automatically cancels the request if it takes too long. This is a very useful tool. I don't remember exactly what the default value is . In Snowflake it's 2 days. I think there's something similar here. I promise, this time is worth reducing, and you can customize it for each user individually. If you have a user like Airflow that takes a long time, you can set a different limit than for business users who won't wait 12 hours for a request to be completed.
This is just a waste of money. Let's move on to more reactive methods. No one will care about spending unless you incentivize them to do so . Budgets are a great way to achieve this. If you are responsible for the costs of the Databricks platform and you have many different departments or teams, find out how much capacity they need per year and demand reporting. This doesn't necessarily mean immediate shutdown when the limit is reached, but you'll at least be able to see how they're spending compared to the plan.

11:38 Budgets for teams and departments

And then, when management asks, "Why did we spend more money?" You will answer: "Well, the marketing department said that's exactly how much they need." This way, you can encourage others to become more responsible for using the resources they themselves requested. Next—notifications: Even with all of the above, you still need customized notifications to stay on top of things . Even with cluster policies, query timeouts, and auto-completion, your bill can still skyrocket.

12:14 Alerts: notifications people act on

That is why notifications are the last resort to avoid a situation where at the end of the month you receive a bill that is significantly higher than you expected. I want to share with you three things that are important to do when sending notifications, because we've all been in channels that turn into a chaos of notifications that everyone ignores. So these three things: first, direct them to the appropriate place.
If you know your team doesn’t use Slack or doesn’t check it, try a group email, or vice versa—if people don’t check their email, send to Slack. We see some customers using a central Slack channel for monitoring and then tagging relevant people there. If your team is small and you know who is responsible for what, you can tag them directly. If you send via mail, add yourself to the cc and then you can reply to everyone: "Hi, did you see this?"
These are little things that help a lot. So, first, direct the notification to the most appropriate place. Second, make them informative. There's nothing worse than getting a notification like "expenses increased by $1,000." You are: " Class". "Why?" So leave them at least some clues. We like to show two things, as you can see here. First, we show a graph with history, which is very helpful in understanding the context: "Is this a one-time jump or has this been going on for a while?"
Like, " Wow, we really should look at this ." Provide context and, if possible, explain exactly what happened. We do a little root cause analysis and then show what tasks caused this jump. So users can quickly check, "Oh , yes, this is the data processing task." We can ignore this. It will disappear tomorrow. So try to add this information, and although it may be hard to see, there are little hyperlinks on the right.
We do this in our product. You can do this in your own control panel. Make it easy for them to go into the product or dashboard and figure out what happened. If you reduce the number of distractions, it will be the difference between someone finding 5 minutes between meetings to watch or saying, "Oh, that's going to take too long." "I have more important things to do." So, those are the three tips for notifications that I can give.
And the last one is a bonus. As we all know, that two-letter word that has become very popular and that we are told about every day is AI. Well, take a picture . I just said AI. Um , you can now perform automated root cause analysis for, um, price spikes. So this is what we actually did last year for our clients, and you can see the jump in value, click on the data point, and instantly know what happened. Again, all of this is done just to reduce friction.
Everyone in business has more important things to do than worry about Databricks costs, unfortunately or fortunately. So you want to make it extremely clear to them if something jumped, why it happened, and what they can do if it was unexpected or, um, misconfigured . So obviously there are ways to build this yourself or use third-party platforms to do it. This is a really great way to drive adoption. OK. Next, we'll talk about automation and analytics, right?

15:15 Automations and insights to optimize workloads

So, you've already told your users that their costs are very high. What can they do about it if they want to optimize? Um, the first thing I'll share is: where possible, try to automatically do things on behalf of your users. Here are some examples of what you can create yourself. You can create an automated data deletion policy if a specific data set has not been accessed for a certain period of time. There was this guy who had a script in Shopify that did this, and it would delete every developer's workspace every month.
It was funny, but extremely effective, because, guess what? I had no incentive to delete my terabyte copy of data that was lying there, right? So anything that can be automated around data deletion or decommissioning of unused resources is a relatively safe option. And another thing we do that is difficult to implement in practice is to automatically configure compute configurations so that users don't have to do it themselves; if you find something is overpriced, or we have real-time detection, you can automatically generate cost savings for your users.
Um, unfortunately, no matter what the AI ​​hypers tell you, you can't automate everything. There are definitely still certain things where you want a person to be in the decision-making loop. Data deletion is one of them. You should be very careful if you automate the deletion of customer- accessible datasets . So there are things, believe it or not, where we humans still have a purpose. There are places where you want a person to be involved in verifying something.
So, this is where we invest in analytics, and what we can't automate or don't feel like automating on behalf of our clients, we derive as useful insight. You should change this SQL query. Here's how we think you should modify this SQL query. Of course, this requires someone to test whether it works on their data. We do not have access to any of their data, so we are only providing this information. So you'll need both, because you won't be able to automate absolutely everything.
In cases like these, you want to make it as efficient as possible. Show the end user , business user, or data engineer how much they can potentially save and how much effort it will take so they can evaluate whether it's worth their time. Sometimes it will be worth it, sometimes it won't, and that's okay. So yes, be as specific and actionable as possible. Steeply. I have 2 minutes left. I'll close with a few lessons we've learned from working with different clients.
So, first, if you're just starting out, consider gradually expanding your expense management strategy . You won't be able to implement all six recommendations from day one. If you can't answer the questions I mentioned at the beginning, like how much each task or each user costs, invest in it. You'll find a lot of quick fixes by simply saying, "Hey, Bob, did you know your job is worth $ 200,000 a year?" You'll find things that people never even knew existed.
So start with that, and then tackle the simplest tasks , like, have we set up automatic shutdown? Can we start implementing some of the controls and policies I mentioned to prevent uncontrolled spending? This is number one. Then you can think about addressing those simple optimization opportunities I talked about: auto-completion, long-running tasks, significantly overkill—these are quick wins that will give you a good return on your time.
Leave things like "I'll try to configure my Spark job" as a last resort, when you've exhausted all other options, because these are very time-consuming tasks that may not yield the expected payback. Your time is very valuable and expensive , so you have to be careful about what you try to optimize for. And the last thing I want to share is: how many people here are part of the platform team? That is, the team that is responsible.
So, most of you, right? The main point I want to make is that in the long run, the only way to manage costs—and this applies not only to Databricks, but to all platforms. The only way to sustainably manage costs is to decentralize them. You can't be the only one watching this and trying to change something. This will work in the short term for quick results, but in the long term you need to invest in quality tools, notifications, and visibility so users can take control of their spending.

18:52 Why decentralizing cost ownership scales

So, I hope this was helpful. As I said, feel free to email me. My address is pretty simple. This is ian@select. dev. I can share the slides after the talk or you can come and chat with us. Our stand is over there, opposite the puppies. I will be happy to show you the product or, if you prefer, just share my experience. By the way, if you don't have time, this QR code is a complete scam, it simply doesn't work. I need to pay some company for QR codes.
But our website is listed there. So if you go to select. dev/demo, you can book a demo if you don't have time to chat with us at the conference. Maybe next time I'll pay for QR code hosting. So, thank you very much. My time is up. I hope this was helpful, and I wish you a great end to your week at the Databricks Summit .

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.