Hacker News new | ask | show | jobs
by chrisoverzero 603 days ago
But if you’re constantly pinging the container (as suggested above), it will never scale to zero.
1 comments

It "scales to zero" as soon as the request stops as far as billing is concerned.

However, the image remains "warm" and incurs zero cost once the last request ends. So I usually have a `/heartbeat` endpoint for this purpose and point a Cloud Scheduler job at it.

I haven't read the docs to figure out the exact heuristics of when it becomes "cold" again.