Timeouts are not money limits
A per-hour cap on rented GPUs limits how fast you spend, not how much. What I changed the day I noticed, and why I deleted the whole thing five days later.
15 Sept 2026 · Updated 2 Oct 2026 · 4 min · Ernest
Correctness, MeasurementI have a small gateway in front of a locally hosted LLM. It checks who's calling, counts the request against their daily allowance, queues when the model is busy, and forwards. For a few days it also carried a control loop that could rent GPUs by the hour from vast.ai when the queue got long.
The loop had a setting called MaxFleetPricePerHour. On the day I moved it into its own service, I read that name properly for the first time.
A per-hour cap limits how fast you spend. It puts no limit on how much. The case I was protecting against was a cheap instance in a loop: it provisions, fails its readiness check, gets destroyed, gets re-rented. A circuit breaker would open eventually, but nothing bounded the bill until then. Every guard in that loop was in seconds, and none of them was in dollars.
Charge the worst case first
So the service charges itself the worst case up front: the hourly rate times the longest the instance can live before it gets killed. The charge is written to the database before anything else happens, so a process that dies mid-lease doesn't take the limit with it.
On top of that there's a flat $10 per rolling day, counted from the first spend rather than from midnight, because a calendar day lets you spend the whole allowance at 23:59 and again at 00:01.
Every refusal writes a greppable line, GPU_RENT_REFUSED reason=…, so "why didn't it scale up?" is answered by the log. Almost every one, anyway. I found one path that still said nothing.
Then I deleted it
Five days after I moved the fleet code in, I deleted it: 70 files and 6,801 lines, 2,385 of them passing tests. Nothing had broken and nothing had ever been rented, but I didn't want something whose failure mode is billing me forever sitting one kubectl apply away from running. Inference had moved to the gateway by then, so nothing needed a rented GPU any more. The loop's own README listed the ways it could go wrong, including two autoscalers on one account destroying each other's instances.
I kept the lease tables, though. Nothing reads them now, but they're the only record of what the fleet spent.