I currently use app engine standard environment with django. I want to have automatic scaling and always have at least one instance running.
Consulting the documentation it says that to use min_instances
it is recommended to have warm up requests
enabled.
My question is: is this mandatory? Is there no way to always have an active instance without using warm up requests
?
This is probably more of a question for Google engineers. But, I think that they are required. The docs don't say "recommended"; They say "must":
Imagine if your instances shut down because of a server reboot. The
warmup
request gets them running again. Astart
request would also do the trick, but after some delay. It could be that Google depends on sendingwarmup
requests after reboot, and notstart
.UPDATE
You just need a simple url handler that returns a 200 response. Could be something as simple as this in your
app.yaml
:Or better, in your
urls.py
, point the url handler to a view like this:in views.py: