Need help regarding the load balancer issue. The configuraton is done in such a way that, the load balancer will connect to the Network endpoing group (Zonal) and the Network endpoing group connects to the VM instance on which the application is hosted. The issue is if I accessed the page directly through the external ip address of the vm instance then page renders and if try to access the same through load balancer ip address, it return 502 Bad gateway error. Not getting whether the issue is in load balancer or in network endpoint gateway set up
Asked
Active
Viewed 38 times
0

John Hanley
- 74,467
- 6
- 95
- 159

Aniket Patil
- 11
- 3
-
Show the configuration for both. Are these long running requests? This error means that the load balancer did not like the response from the backend. Check Stackdriver for the exact error message. https://cloud.google.com/load-balancing/docs/https/https-logging-monitoring – John Hanley Mar 24 '20 at 04:33
-
Do you use health-checks? – Serhii Rohoza Mar 24 '20 at 09:10