Skip to content

A scenario for a forward deployed engineer · Mid level and up

One script starves everyone

Beep · On call
Wednesday, 14:30

Five teams at a customer call the same model service in Unity Gateway on Databricks. One team's batch script sends thousands of requests a minute, and the assistant that live support staff use starts timing out.

What do you do?

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

Show the best call

Set rate limits on the service: a default for each user, and a custom limit for the batch team's service principal.

Past its limit the script gets 429 and has to wait and retry. The support assistant answers again.

Why

A model service in Unity Gateway can carry rate limits in requests per minute and tokens per minute: one for the whole service, a default for each user, and custom limits for a named user, service principal or group. A custom limit overrides the default, so one heavy caller can be capped without touching the rest.

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

The other two

Works, at a price. Create a separate model service for each team.
Nobody starves anybody. You now run five services, with five sets of grants and limits.
A poor call. Ask the batch team to run their script at night.
They do, until the next deadline.

The words in this scenario

Service principal.
An identity made for automation, not for a person. Jobs and tools sign in as one. In the docs (opens in a new tab)

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.