Hi Jordan,
we would like to share with you what we have found.

We have delete our custom health check that was an handler responding with 
200 OK as follows:

app.get('/_ah/health', function (req, res) {
 res.sendStatus(200);
});

It looks like this has solved the problem as we *do not* see any 502 Bad 
Gateway errors anymore.

We created the custom health check handler following the documentation 
<https://cloud.google.com/appengine/docs/flexible/nodejs/how-instances-are-managed>,
 
so we did not thought that this could be the problem:

> You can write your own custom health-checking code. It should reply to 
> /_ah/health requests with a HTTP status code 200. 

The response must include a message body, however, the value of the body is 
> ignored (it can be empty).


Maybe this could be a bug of some sort? Should I point this out in the 
Public Issue Tracker?

Marco


On Wednesday, September 27, 2017 at 5:36:20 PM UTC+2, Jordan (Cloud 
Platform Support) wrote:
>
> If you have tested turning the nginx health checks off 
> <https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml#health_checks>
>  
> and you still see these 502 errors, then I highly suggest you report this 
> in the Public Issue Tracker 
> <https://cloud.google.com/support/docs/issue-trackers>. If the issue is 
> resolved when the health checks are off, then you may be able to reduce the 
> thresholds and intervals of the checks to allow your instances more time to 
> respond to nginx. 
>
> - If you do open an issue report, it is recommended to provide your 
> project ID, the type of health checks you are using (legacy or updated), 
> and a stacktrace of the error you are seeing. 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/70989b39-164f-4b26-b514-a3b826e4aca5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Marco Galassi
    • [google-appen... 'Jordan (Cloud Platform Support)' via Google App Engine
      • [google-a... 'Jordan (Cloud Platform Support)' via Google App Engine
        • [goog... Marco Galassi
          • [... 'Jordan (Cloud Platform Support)' via Google App Engine
            • ... Marco Galassi
              • ... 'Jordan (Cloud Platform Support)' via Google App Engine
                • ... Marco Galassi
                • ... 'Jordan (Cloud Platform Support)' via Google App Engine
                • ... Marco Galassi
                • ... Jonas Klemming
    • [google-appen... Marco Galassi

Reply via email to