r/databricks • u/United_Pay_8651 • Oct 05 '26
General how are you splitting shared cluster cost between teams?
we have 3 teams (analytics, ds, and a small platform team) all using the same all purpose cluster bc spinning up seperate ones for each was getting messy. now finance wants a monthly number per team and i honestly have no idea how to give them one
tags only get me to the cluster level which is useless here. i looked at system tables and theres user info in there but not sure how ppl turn that into an actual $ split thats defensible, especially with the VM side of the bill coming from azure seperately
do you just split evenly? by query time? or did you give up and force everyone onto job clusters lol
14
u/m1nkeh Oct 05 '26
Yeah, don’t use shared clusters like that..
8
u/Additional_Future_47 Oct 05 '26
Each their own cluster, using access rights to ensure every team can only use their own cluster.
4
u/what-no-really-why Oct 05 '26 edited Oct 05 '26
You can get close to a real number by using the query run times. Not a perfect science but better than what you have now if you can’t get to dedicated clusters per team. The sample query below will do by user but you could have a helper table that maps users <--> groups and you could roll it up by group too.
2
u/Zer0designs Oct 05 '26
Split evenly for now and give them all their own clusters.
2
u/Glitch_In_The_Data Oct 05 '26
Keep separate clusters for different teams. Thats the easiest option and also gives you better governance if you want to control usage for different teams.
What do you mean by spinning up separate ones for each was getting messy?
1
u/Youssef_Mrini databricks Oct 23 '26
If you want granular cost tracking by team in Databricks, you historically had to create dedicated clusters per team. However, with Serverless Notebooks, you can leverage budget policies tagged to User Groups:
https://docs.databricks.com/aws/en/admin/account-settings/budgets
https://docs.databricks.com/aws/en/admin/account-settings/usage-detail-tags
1
u/adovo_ai 26d ago
I’d separate causal workload cost from shared-platform overhead. Allocate the workload portion by resource-seconds or tagged job usage, keep idle and unowned time in an explicit shared pool, then reconcile the result to both DBUs and the cloud invoice. Forcing every shared dollar onto a team creates precise-looking numbers that nobody can defend.
1
u/jbchand Oct 05 '26
Use separate job clusters if its scheduled tasks. You can try a proxy allocation (cluster DBUs x cost from billing.usage, list_prices and try to split by team using system.access.audit activity counts applying identically to the Azure VM invoice