I have multiple node web servers hosted on EC2 with a Load Balancer, and some users are getting a 502 even before the request reaches the server.
I don't have the logs of those requests inside the servers, that's why I am assuming that the request never reaches the server.
I had a similar problem before, and I had to add keepAliveTimeout
and headersTimeout
to the node configuration.
I have a few unhealthy instances during the day, every day, but the time when does that happen doesn't always match with the time of the 502 error. Should I increase the health check timeout from 5s to 10s and see what happens?
The memory and the CPU usage seems fine.
Any tips on how should I debug this issue?