The original post: /r/nginx by /u/These_Shoe3594 on 2024-09-25 18:20:04.

Hi all,

I’m working on a project that’s hosted in an EKS cluster, and we’re facing an intermittent issue where accessing the REST API of our application sometimes results in a 503 error. Here’s what I’ve checked so far:

  1. The ingress file is valid.
  2. The service file is properly configured.
  3. The application works fine when tested locally.

Our reverse proxy is Nginx, and the 503 response is the standard Nginx error HTML. However, the odd thing is that there’s no trace of the 503 error in the Nginx logs, even though I’ve enabled debug logging. All other requests are logged as expected, but the 503 responses don’t appear in the logs.

The issue is quite random, and most of the time the API returns a valid response.

My question is: How can Nginx return a 503 without even logging it? Is there any scenario where Nginx might generate a 503 but not log the event? Any pointers would be greatly appreciated!

Thanks in advance!