Skip to content

A scenario for a forward deployed engineer · Senior and up

One user spent the month's budget

Penny · Finance
Friday, 10:00

A customer gave 800 staff pay-per-token model access through Unity Gateway on Databricks. One person's looping script spent as much in a night as the whole pilot was meant to cost in a month. Finance asks how that is prevented.

What do you do?

Tap the one you would do. The answer opens below.

Show the best call

Set a budget on Unity Gateway with a daily limit for each user that blocks usage, and a monthly limit for everyone together.

A runaway script is blocked that day. Everyone else keeps working, and finance has a limit that holds to a close estimate.

Why

A Unity Gateway budget can have a shared monthly threshold for everyone in its scope and thresholds for each user, daily, monthly or both. A threshold can send an alert or block usage, and a user blocked by a daily limit can work again at 00:00 UTC. Budgets cover pay-per-token use. They do not cover provisioned throughput.

Read it in the Databricks docs (opens in a new tab)

The other two

Works, at a price. Build a dashboard of spend by user from the billing table and check it each morning.
You see it the next morning, after the money is spent.
A poor call. Ask everyone by email to be careful with scripts.
The next loop runs over a weekend.

Go deeper on brickster.ai

More scenarios

Had one like this at work? Send it to us: the best tickets come from real incidents.

Added on . Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.