logoalt Hacker News

badatnames • today at 4:29 PM • 1 reply • view on HN

> this can be a matter of scaling at 50% capacity

At which point we're paying double just to work around cold start latency, which was the original point.


Replies

CharlieDigital • today at 5:26 PM

Cloud Run doesn't bill when idle; it only bills when active.

So if you're at 50% capacity with lots of idle time, it can scale to 0.

Scale to 0 doesn't mean "cold". One easy way to keep both Cloud Run and Container Apps "warm" but functionally scaled to 0 for costs is to just ping it every few minutes with Cloud Scheduler set up on a cron pointing to a health endpoint.

➕ show 1 reply