Remix.run Logo
▲ FurqanJaved 5 hours ago

Budget alerts on GCP are notifications, not limits, and they run off billing data that can lag by hours.So a "20 minute" alert really means 20 minutes after the cost shows up in billing, which for a runaway Vertex AI job can be most of a day.

The things that actually stop spend fast are quotes. Lower the per-minute request/token quotes on the models you use to what your app really needs, and keep a usage counter on your own side that stops calls once a daily limit is hit.The Pub/Sub "auto-disable billing"trick has the same delay problem, since it reacts to the same budget data.

Hope you get it reversed. Sending someone to collections over an alert that fixed 10 hours late seems like exactly the kind of case support should escalate.

▲mrweasel 3 hours ago | parent [-]

Question, because I don't know GCP that well. Can you do both, as in: alert when I hit some limit and then just stop if you hit some other, higher limit?

▲dpkirchner 3 hours ago | parent [-]

No, the technology just isn't there yet, unfortunately.

▲spyspy 3 hours ago | parent [-]

This isn't true. It was introduced recently and doesn't cover every service (presumably they're adding more) but it exists today and it does cover VertexAI.

https://docs.cloud.google.com/billing/docs/how-to/budgets-sp...

▲dpkirchner 3 hours ago | parent [-]

They say on that page that the cap isn't really a cap, you can still be billed for overage even if it is because their cap system failed. But I'm glad they've hired the right people that can at least start figuring this out.