I’ve built an API with a load balancer in front of an auto-scaling VM instance group. Each VM runs a workload then returns the results. If the workload doesn’t return after X seconds, it throws an error. The problem is that in the case of the workload throwing an error after X seconds, the result isn’t returned to the client. When I run tests directly against the VMs, the error works fine.
On the load balancer level, I have setup a timeout of Y (greater than X), but even after Y time, the results are not returned.
1 Like
Hi @bbakerma ,
What does the error look like? You can attach screenshots of it and add it to your question. You can also add if you have followed any guides or documentations prior to the setup.
1 Like
Hi @bbakerma ,
The following documentations might help in your issue:
If you are using an Internal Load Balancer, you can refer to this documentation. Also for other troubleshooting and related errors that you might have encountered when accessing your website, you can check this documentation.
You may also check these community discussions and find your issue related. You can find some helpful solutions provided as well by community members:
- Google Cloud HTTP Load Balancer can’t connect to my instance
- GCE Network Load Balancer Hangs after period of inactivity
- Google cloud-Internal Load balancer connectivity issue
1 Like