502 Google Cloud LoadBalancer Error Response

I am using the Google App Engine Flexible env application (already ported to env: flex) using the python 3.4 runtime.

Over the past month, I noticed several times (but less than 5% of requests) that I, or automated processes, get 502 from the server (Bad Gateway). Failed to play it locally and could not find a trace for it in the GAE service logs . But, looking at the 502 error in all services, I realized that they came from the Cloud Load Load Balancer service.

Going through jsonPayload from these 502 errors, I see this reason:

statusDetails: "failed_to_pick_backend"
@type: "type.googleapis.com/google.cloud.loadbalancing.type.LoadBalancerLogEntry"

I do not have a custom load balancing service from GCP, I still have not dealt with it. A GAE VM instance is consistently below 10% CPU utilization.

Any suggestions on how to solve it?

+4
source share

Source: https://habr.com/ru/post/1674057/


All Articles