Learn about heath issues associated with load balancers.
Backend Servers Health Checks
Receiving a 502 Bad Gateway error can indicate one of the following causes:
No backend servers are assigned to the backend set.
No backend servers are responding to the health check.
If you receive this error, determine why the backend servers are not responding to health
check. Check and adjust any health check settings, including status code, regular
expressions, interval timeout, port, and protocol.
Any of the following load balancer behaviors are indicative of health connection
issues:
The client fails with a 502 Bad Gateway error.
The backend server is periodically or chronically failing health checks.
The entry connect timed out appears in the error logs.
These are possible causes of health connection issues:
The backend server is not responding to health checks in the expected time
period.
Slow upstream dependency including, database, application service or API, or slow
storage services, such as Oracle Cloud Infrastructure File Storage service,
Elastic Block Store, or Object Storage.
Possible solutions include:
Performing a local test to the backend server to eliminate the load balancer as a
cause.
Checking the performance of all upstream dependencies.
Checking application logs on the backend server for any dependencies reporting
any sort of timeout.