Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> We run our monolith (Spring boot) as a Docker service

Does Cloud Run's free tier 'sleep' containers when they don't get regular traffic? Several years back Heroku nerfed their free tier -- they would proactively place low traffic apps into 'sleep' mode so the next request would have a noticeable several second long delay.

I ask because our SpringBoot monolith takes 30s to startup, and has bursty traffic, so I was of the expectation that Google Cloud would probably 'sleep' low traffic containers like this also. Would be nice if that were not the case.



You can set the minimum instances to 1 (default 0) or simply call the service regularly from somewhere. Both approaches work. When it gets killed, we have a 30 second latency on the first request. If you have a busy server, it will pretty much stay up.

I actually only set the minimum instances to 1 a few days ago as we at this point are preparing to onboard some customers.


Take a look at the recently introduced minimum instances setting : https://cloud.google.com/blog/products/serverless/cloud-run-...


It will starve the container of CPU, but might not 'sleep' it for a while. So wake time can actually be really quick if you have had traffic recently.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: