How to disable the "gcloud preview app run" health check

Is there a way to disable the health check when starting the development server for local management of virtual machines ( gcloud preview app run app.yaml )?

This health check causes me headaches during debugging.

I tried adding health_check settings to app.yaml as shown in https://cloud.google.com/appengine/docs/go/managed-vms/ :

 health_check: enable_health_check: False 

and tried different values โ€‹โ€‹for

  check_interval: 5 timeout: 4 unhealthy_threshold: 2 healthy_threshold: 2 restart_threshold: 60 

but none of these changes worked. enable_health_check: False seems to be ignored, and so most other settings (some of them cause an error) see https://code.google.com/p/googleappengine/issues/detail?id=11491

+5
google-app-engine
source share
1 answer

From the comment from the problem you provided:

There also exists an error about the dev server (gcloud viewer application), not following the health_check settings. It is still using the old and deprecated "vm_health_check". For your settings to take effect on the dev server, you will need to use vm_health_check.

So just use for now:

 # health_check: # not yet supported, use instead vm_health_check: enable_health_check: False 

or change one of the following settings

  # check_interval: # this is an error in the documentation, use instead check_interval_sec: 5 # timeout: 4 # didn't work with vm_health_check unhealthy_threshold: 2 healthy_threshold: 2 restart_threshold: 60 
+7
source share

All Articles