App engine standard java8 - health check for instances?

1,018 views
Skip to first unread message

Roman Mašek

unread,
Sep 12, 2018, 12:30:26 PM9/12/18
to Google App Engine
Hi,

Is it possible to implement a custom health-check for standard engine instances? I tried to configure liveness-check and readiness-check, but these seem to be supported only in flex environment.

The reason I would like to do that is that recently we ran into following issue several times: one of the instances stopped responding successfully to requests, always returning HTTP status 500. This instance is then being kept alive and accessible for hours, leading to intermittent failures for our customers. Our workaround for this is to delete the problematic instance (and fix the problematic code eventually). 

Sam (Google Cloud Support)

unread,
Sep 13, 2018, 8:13:49 PM9/13/18
to Google App Engine
Hi,

You cannot implement custom health checks in Google App Engine (GAE) Standard Environment. Our public documentation shows that adding legacy and updated health checks you are referring to is possible in Custom Runtime apps (i.e. GAE Flex apps) by configuring the app.yaml file [1]. This is an advantage of switching to GAE Flex.

For App Engine Standard, which doesn't afford you that flexibility, hardware and software failures that cause early termination or frequent restarts can occur without prior warning. This sometimes manifests as a non-responsive instance, returning HTTP status 500. We advised that you construct your GAE Standard apps to be able to handle this [2]. And you can reference this documentation for configuring your app.yaml file for your GAE app's app.yaml.

Reply all
Reply to author
Forward
0 new messages