A scenario for a platform engineer · Junior and up
Which team spent the money?
Penny · Finance
Monday, 10:00
Finance wants the Databricks bill split by team. Clusters and jobs are named however their owners liked, and nothing says who they belong to.
What do you do?
Tap the one you would do. The answer opens below.
Show the best callThe best call
Require a team tag on clusters and job compute through compute policies, and report cost by that tag from the billing system table.
Every cluster started under a policy now carries its team in the usage records. The split is one query.
Why
Custom tags on compute are copied to the usage records, so cost can be grouped by them in system.billing.usage. A compute policy can make a tag required on classic compute, so the tagging does not depend on anyone's memory. Serverless work is tagged through serverless usage policies.
Read it in the Databricks docs (opens in a new tab)The other two
- Works, at a price. Ask every team to put its name at the start of each cluster and job name.
- Most do. The report needs text matching, and the unnamed ones land in a pile called other.
- A poor call. Split the bill evenly across the teams.
- The team with one small job pays for the team that trains models all night, and says so.
The words in this scenario
- Compute policy.
- A set of rules that limits what people can choose when they create compute, such as its size or how long it may sit idle. In the docs (opens in a new tab)
- System tables.
- Tables that Databricks keeps about your own account, such as the audit log and the billing usage. They are read with ordinary queries. In the docs (opens in a new tab)
Go deeper on brickster.ai
- Cost Optimization: what changed recentlyNews, releases, videos and questions on it, gathered daily.
More scenarios
- Dashboards queue at nine · platform engineer
- Cut the cost of the night jobs · platform engineer
- Five minutes of waiting for two minutes of work · platform engineer
- All 47 scenarios
Had one like this at work? Send it to us: the best tickets come from real incidents.
Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.