Hacker News new | ask | show | jobs
by showdeddd 1106 days ago
You have to implement that with your own code but it isn't much more than a dict/map and a timestamp for last update.
1 comments

Same-ish problem, though. You wouldn't know for sure the instance will run again...your dict/map data can be dropped. I don't see any sort of instance timeout callback where you could guard against that.
I think it's negligible. The only metrics you lose are on rare scaledowns and they are averaged out anyways. GCP likes to keep instances idle for a long time.