How Capital One Balances Lower Cost and Peak Performance in Databricks
Summary
- Scale and optimization: Capital One manages 4,000+ Databricks users running 500,000 queries and 5 million job runs annually, requiring strategic cost optimization.
- Cluster management: Capital One shares best practices for managing clusters, user governance, and cost control while maintaining peak performance on Databricks Data and AI platform.
- Proven results: By identifying waste sources and implementing optimization strategies, Capital One demonstrates how enterprises can balance cost efficiency with high performance.
How Capital One Balances Lower Cost and Peak Performance in Databricks

Talk by Jeff Chou, VP, Machine Learning Engineering, Capital One Software (Sponsor Speaker)
Companies need a lot of data to build and deploy AI models—and they want it quickly. To meet this demand, platform teams are quickly scaling their Databricks usage, resulting in excess cost driven by inefficiencies and performance anomalies. Capital One has over 4,000 users leveraging Databricks to power advanced analytics and machine learning capabilities at scale. In this talk, we’ll share lessons learned from optimizing our own Databricks usage while balancing lower cost with peak performance. Attendees will learn how to identify top sources of waste, best practices for cluster management, tips for user governance and methods to keep costs in check.
Here's more to explore:
The best data warehouse is a lakehouse: https://www.databricks.com/product/databricks-sql
How to migrate legacy data warehouses: https://www.databricks.com/resources/ebook/migrate-your-legacy-data-warehouse-databricks
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements
FAQs
What scale of Databricks usage does Capital One have?
Capital One operates at massive scale with over 4,000 Databricks users, running approximately 500,000 queries per year and executing 5 million job runs annually across the organization.
What are the main sources of Databricks cost waste?
This video identifies inefficiencies and performance anomalies as key cost drivers, which the speaker addresses through practical strategies for cluster management, user governance, and operational optimization.
What best practices does Capital One recommend?
Capital One shares lessons learned on identifying top waste sources, implementing cluster management best practices, applying user governance strategies, and maintaining cost discipline while preserving peak performance.
How did Sync Computing technology help?
Capital One recently merged technology from Sync Computing, which specializes in database cluster optimization, into their Slingshot product to improve Databricks cost management and performance.
Full transcript
All right, we'll just get started. So, thanks all for having me. A couple preamble slides I will just ram straight through. All right. Um, so hi everyone. Great to meet you all. um from Capital One and today I'm going to talk about how Capital One balances lower cost and peak performance in data bricks. Um, a little bit about me. So I actually joined recently from a startup called Sync Computing. Uh we joined a couple months ago and we we specialize in database cluster optimization.
So I'll get into some of that and we're actually merging our technology and product into Capital One's Slingshot product. So I'm excited to show you all both of what that product can do and also kind of the best practices of how does Capital One in general attack data bricks spend. So a little background about Capital One. So it's a technology first company and we changed from the inside out all the way back in 2016 capital one went all in into the cloud um which is a major kind of disruptive technology for kind of the banking industry as a whole and then in 2022 we launched uh Slingshot which is our first kind of B2B SAS product uh aimed at optimizing snowflake cost and user management and in around 202425 we launched Slingshot for data bricks which you'll see a couple slides here on and then we also just launched databol which is another kind of B2B SAS security product in in data tokenization.
So this is kind of the journey of data bricks um and kind of why we're all talking today but let's focus on data bricks. So what is the deal with capital one and data bicks? So since 2017 we've grown our data bricks usage across the enterprise. Our usage is pretty much ridiculous. We have 500,000 queries run per year, five million job runs per year, over 4,000 users plus monthly. And this usage is only growing every month.
So it's easy to say that our usage is pretty intense. And there's a huge question of how how do you manage all of this? How do you uh reduce cost but keeping employees happy, keeping jobs running, etc. So the goal of this talk is to provide kind of a highle framework of the strategy of how do you actually attack such a sprawling problem and we kind of broke it down into these four steps. Um and so the first step is just understanding your usage and your business goals.
So step one is well what are you trying to achieve right? So let's align on what is what does success look like for you for your business unit for your boss for your boss's boss for example you know how much cost savings are you even trying to achieve is 10% going to change the world for you or are you looking for like 90% cost savings depending on what you're looking for you're you're looking at very different solutions so try to calibrate you know what exactly are you looking for um another question is how much engineering time are you willing to spend um the deeper you cut the more resources you put into this probably the better you'll be able to do.
So these are some of the trade-offs you're going to have to consider just from the get-go what you're looking for. And then third, are you willing to trade off performance for and reliability? Um you know, are you a shop where every single job in data bricks has to run and has to never fail and actually costs aren't important and you just need stuff to run or are you running a bunch of ETL jobs that run in the middle of the night and it doesn't matter if they run a little bit slower or maybe they skip a run here and there. um the more flexibility you have the more you can do in terms of optimization cost savings experimentation etc.
So these are just kind of high level framework questions and to get a little more tactical something that everyone should do is look at contract analysis. So obviously for most people you sign kind of an annual contract with data bricks and the big question is are you on track to meet your spend goals or are you about to burst through six months early. So on the bottom here, you have kind of, you know, obviously a simple binary choice.
Either you're on track and there's a big question of do you even want to do anything anymore? If you're on track, you should probably just stand up, take off your headphones, and just walk out because you're a-okay and everything is sunshine and peaches. Um, I am guessing most of you are probably on the right hand side where you're looking at your spend and you're like, "Oh, shoot." projecting in, you know, another six 12 months down the road, we're going to bust through our contract and I'm going to get yelled at, right?
That's kind of the right hand side is what we're looking at here. So once you kind of align on really high level business goals and understanding your goals and what are your trade-offs and what you're willing to go down, now let's get even more tactical and let's go find out all right, what are our main cost drivers anyway? So typically if you're a large enterprise, you might have many workspaces, many teams, you might have a dev environment, a prod environment, you might have an ML team, an ETL team, probably a Gen AI team.
It's probably all just scattered and it's really messy. And typically, it's broken down into workspaces. And so a good kind of first sanity check is to see which workspace is driving most of my costs over time. And so here you can see kind of a bar chart of costs versus time and it's broken down by the various workspaces. So you always want to try to find kind of your main bottlenecks. So let's go and tackle kind of the big spenders who you know which group is it is it data science is it the data engineers who's the biggest offender and then once you kind of target all right what which workspace which workspace or which group of people am I going to go after then you can start to ask all right which compute skew is the largest and what is the breakdown and typically in most companies it's one of three it's either jobs compute allpurpose compute or SQL warehouses probably the genai model serving stuff is creeping up, but for most folks that's still kind of a an exploratory space.
So, it's probably one of these three and maybe it's like a you know 40% 30 uh 30 if my math is correct kind of breakdown but try to figure out what is what is the biggest offender for you. Is it jobs? Is it SQL? Is it evenly distributed? Is one very heavy? And just to kind of understand what is the difference between these big three you know jobs compute are scheduled jobs. are typically ETL jobs that are set on a schedule every hour, every day.
They're typically orchestrated via workflows or Airflow or maybe even DBT. Interactive all-purpose compute clusters. These are typically used for research like data scientists. You might have like a group of aundred or a thousand data scientists scattered across the world playing with the latest ML LLM models and they're not really doing anything in production. They're just researching and playing around and trying to figure out new use cases.
Um this the the middle column here is very user centric. Um it's very fragmented. It's a bunch of random people doing a bunch of stuff and it's it's really hard to kind of wrangle the costs there. And the third one is SQL warehouses. Um obviously it's all about SQL. These could also be kind of analytical workloads. You might have business analysts hitting your warehouses. It might be also random and ad hoc or they could be schedule jobs.
Maybe DBTs orchestrating jobs and you're running on the schedule. So SQL warehouses can be can be both maybe ad hoc and at a regular schedule. So what did we find at Capital One? So we did this exact analysis and it was pretty clear what we saw. Here's a kind of a highle breakdown of the spend versus time and the big blue was actually interactive APC clusters. So that middle column that I said which is a bunch of like literally 4,000 people were just spinning up all-purpose compute clusters doing random ML ad hoc research just spinning up clusters and that was our number one cost driver.
So obviously let's go after that and zoom in and see what we can do there. And you know I've worked with many many companies of all sizes from midsize to large enterprises and I have this kind of rule. It's like a 8020 rule. Like typically 80% of your spend comes from 20% of your something of your workloads. And typically typical best practices are well let's start with like top 10 jobs or find your top 10 users or your top 10 queries like you know choose what makes sense for you.
In our case since it was ABC which is a bunch of bunch of employees running jobs or doing kind of experimental ML it was actually finding the top 10 users. And when we kind of zoomed into their usage and we looked at the cluster utilization, this kind of jumped out and scared us a bit. You can see on the x- axis is actually CPU utilization for your all-purpose compute cluster and the y- axis is percentage of cluster.
And that huge spike on the very left hand side is basically saying most of our of our clusters are actually zero to 10% utilized. You know that's kind of scary. That means we have these clusters. We're paying data bricks in AWS and literally nothing is happening. And so that's hard to get any ROI, right? It's an ROI of zero. And unfortunately, it was a dominant case. And so for us, this was a very kind of clear-cut, easy way, kind of low hanging fruit to go after these users.
And we have to go basically send them alerts. We had to go talk to them, figure out what are they trying to do, trying to figure out. It was more of a human problem. It wasn't some like fancy cluster thing. it was just really just talking to humans and governance uh was kind of one of the bigger cost drivers. Um so once you kind of figure out okay aha we figured out who or what it is we understand technically what's going on now let's come up with an attack strategy.
Um and there are kind of at a high level there are two big paths you can take for attacking this. On the lefth hand side you have manual and on the right you have automation. So for manual what we're talking about here are like best practices some rule-based thing you can do code inspection but it's typically like you know a top- down reactive system like hey our spend is crazy this month engineers one through three go look at what's going on go do something um and then you have the right hand side which is automation this is you'll probably need some sort of machine learning powered solution something that can respond dynamically to whatever changes there are on your workloads we'll probably have to utilize historical data obviously the solution on the right is much more technically challenging to implement.
But if you're at scale, you just can't manually tune thousands of jobs or thousands of queries u by hand, right? You need automation. So these are like the two big forking pads. So let's start with the left, which is manual. And I think everyone should start here. This is like where where you'll get a lot of bang for your buck. Um so you should tackle kind of low hanging fruit things. U again focusing on these top three offenders, jobs, compute.
You can look for clusters that are underutilized, find jobs with high failure rates. Optimizing your code is very obvious and we're going to zoom in a little bit deeper after this slide. Um, and then what's what's new this lately is serverless. So you have job serverless, APC serverless. Um, and so you should try those out to see if if those are worth it financially for you or if it works for your business goals. Interactive APC, it's similar. kind of manually go in, find your top 10 lowest utilized clusters, talk to your users.
A big one for APC is that second bullet, which is migrate scheduled jobs from APC to jobs compute. For those of you may not know, APC compute is about a factor of two more expensive than jobs compute. Um, and if you're just running scheduled jobs, there's absolutely no reason why you should be doing that. So, you should just move it over to jobs compute. And out of the box, you get 50% cost savings, which is pretty amazing.
And then SQL warehouses on the right. You know, you want to find warehouses with long cues or maybe typically the solution for SQL warehouses is just downsize everything. You just went in and just reduced everything by one warehouse size. You probably save I don't know 20 to 30% of your budget right there. Um there's also stuff like enabling auto termination to make sure you don't have idle warehouses just running. And then of course optimize your code is everywhere.
So of all of these things, let me just quickly zoom into two of them. One is uh serverless since it's so new. So serverless is great and I'll just pick on one. Uh for example, job serverless is great. There are three new versions. So there's performance serverless. This is going to give you the best runtime, the lowest start time. It's going to start pretty much instantly. Unfortunately, it's probably the most expensive.
This is like a Ferrari. And if you if your ETL jobs need a Ferrari, then that's great. You should be using performance. They recently about a month or two ago la uh released standard standard serverless. Um uh by the way serverless means you don't have to pick instances anymore. You just click run and it'll go and data bricks will actually run the compute for you. So all the selecting of like is it an M5 or a R sixg like all that stuff is gone.
You just click run and it'll go. So that's what I mean by servos. So standard is the same experience. No instance selection, no infrastructure, nothing. Um, the trade-off there is it'll be about 40% slower than performance. There is a five minute startup time, so you have to wait for the cluster to spin up, but it potentially can be up to 70% cheaper relative to performance. So, it can be much cheaper. And this is great if you have a job that's running at like an ETL job that's running at 3:00 in the morning.
Do you care that there's a five minute startup time? Probably not. You're asleep and who cares that it's running five minutes later or that it's 40 minutes slower, right? So you have to really understand your use case and which one makes sense for you. And then there's classic which is kind of the traditional cluster. Um this runs inside your VPC. If security is a big thing for you, you might be forced to use classic and you're not even able to use serverless because your company doesn't let you use serverless.
But classic is nice because you can tune everything. So you can choose the instances, choose the cluster size, and if you're trying to hit a certain runtime, you can change it all. Um and you can really customize it. Um, and you could potentially be even cheaper than standard. Um, but it comes with the tax of you have to you have to manage it. You have to figure out what you want. Um, so it it all it ultimately depends on what you're trying to achieve for your business on what cluster and this is just jobs.
I'm not even talking about APC or SQL warehouses which also have their own serverless options. Um, so you can see data bricks gets quite convoluted as you kind of peel back the layers. The other big one is obviously optimize your code. This one's hard to automate. This one is you're just going to need your engineers to go and look at their code. And optimizations are very bespoke, very custom. You have to implement what's right for you.
Here's just a list of some of the more popular ones. Um, optimize and zorder partitioning, um, salting, column pruning, you name it, you can do a bunch of stuff to optimize both your tables and your code. And I highly recommend if this is something you want to look into, data bicks published an an excellent kind of summary of the best practices. Here's a link to it. That's the title. If you just Google you just Google data data bricks optimization, it was probably the number one link.
Um, but you can if you click on that, they actually have a great little cheat sheet of all of these and more to help you kind of figure out what's going on here. Um, but this is hard to automate. You're going to have to have your engineers go in and look and think about and try it and experiment. Um but if there's potentially a lot of cost savings and runtime savings if you kind of implement this um and uh at scale how do you actually solve this?
So everything I mentioned before is great for manual you know top 10 jobs or once a month go point an engineer go look at it but what happens if you have thousand or 10,000 or 100 thousand jobs running daily you know forget manual you can't do it. This is where you need some sort of op automation. So for jobs compute, ideally you have a solution that can automatically tune your classic clusters, automatically AB test serverless to see which one is right.
Interactive APC, you want something that can autoterminate clusters if they're low utilization or auto migrate jobs from uh jobs to from APC to jobs clusters or SQL warehouses. Auto right sizing warehouses based on scheduling. Um if you have this kind of repeat uh usage pattern, you want to auto resize based on your usage pattern or you can if you're really fancy, you can auto route queries, do query routing so that they can go to their right warehouses.
All of these are kind of would be great um but they're quite you know they're not you have to build them basically or you can use a third party tool which conveniently is something that we do do here at with Slingshot. Um, and so one of the things that we do do is offer a machine learning power optimization uh at scale. And so here's just a quick snapshot. This alone could be a 20-minute talk. Um, but basically on the y-axis you have cost.
On the x- axis you have one of your runs. And essentially what you have here is you see the ML algorithm is actually going to experiment and try toggle a few different cluster settings and it's going to train our ML model. And around five to 10 runs, it'll figure out what to do and then it'll automatically start reducing your costs. And this is all automatic. So while your engineers are out grabbing lunch, this thing is optimizing all of your jobs.
And this is just one of a thousand. So this is how you want to optimize everything at scale. Uh because no engineer wants to sit and tune clusters. It's the most boring thing in the world for an engineer to do. No engineer enjoys tuning uh number of workers and instant sizes and stuff like that. So let them focus on the interesting stuff and optimize at scale. Um one other note here is we actually also monitor the runtime.
So as the solution is optimizing and changing your cluster, we're going to obey your SLAs. If you say hey don't surpass one hour, we will make sure that we adhere to that as we kind of tune the cluster and get you the best cost savings. U but again the big advantage here is automations. All happens automatically. You don't have to do anything. Um so on the last part is implement and monitor. This one sounds very obvious, but it's actually extremely convoluted uh if you actually try to do it in practice.
So, it's very obvious to monitor cost before and after, right? You're I just described a whole bunch of stuff you should do and try. Makes sense. Go do it. You might think, "All right, I'm going to do it and then tomorrow I'm going to measure the cost and then easy peasy, I know how much I saved." Unfortunately, it's never that simple. I've been doing this for number of years now. It's ne, you know, sometimes it can be very simple if the code doesn't change, if data doesn't change.
But unfortunately, an apples to apples comparison is actually really complicated because so many things can change, data size can change, code can change, query volumes can change, new versions of data bricks can come out. If you're looking at it, you know, in in aggregate, new workloads can be added, old workloads can be removed. So understanding if a single change you made actually resulted in like a 30% cost reduction is really hard.
Um maybe you'll do something and your data size tripled. Um, and you might you might be angry that like, hey, this didn't do anything, but you have to peel back the onion and be like, "Oh, actually my table tripled in size and that's why everything went up." And actually, the optimization I did did work, but something else came in and clobbered my cost savings. And it's very convoluted. And so, um, this is probably one of the hardest steps.
And this is something that's our product slingshot helps, um, simplify and helps you understand. and we can kind of aggregate all the things that could potentially impact it and try to give you like a value report because deciphering this I'm going to tell you I spent many many hours with many many companies trying to figure out did it work or did it not work then at scale what was the overall ROI it's a really hard problem to solve um this is the last slide and so finally you know this is not a one-time thing unfortunately you have to repeat this over and over and over again right the drill down I just did was just APC and users but you should do it again and then you know a week from now or a month from now things will change workloads will change and you're going to have to redo this over and over again.
So our our product capital slingshot will help make this process a lot easier uh for folks. So thanks so much. We have a booth right over there. If this looks interesting, please stop by. I'll be there. Uh happy to show you a demo. But thanks so much. Appreciate your time. Thank you.
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.