This could be due to your app taking long to startup and failing the readiness checks. Another possibility is resources on the instances are maxing out.
An instance will be restarted if it fails consecutive health checks [1]. To avoid this, you can tune health checks to be less aggressive by increasing check timeouts or intervals between checks [2]. You can also try to increase the memory in the app.yaml file as a test, optimum value depends on the app’s workload. Additionally, this doc [3] on deadline errors might be helpful to optimize your app. [1] https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-managed#health_checking [2] https://cloud.google.com/appengine/docs/flexible/custom-runtimes/configuring-your-app-with-app-yaml#readiness_checks [3] https://cloud.google.com/appengine/articles/deadlineexceedederrors -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/8d8f82c5-f43b-4040-baf7-ae4a8a389d91%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.