When on-call alerts fire at 2 AM, three infrastructure incidents account for a disproportionate share of wasted debugging time because the symptom hides the real bottleneck one layer below.
1. Nginx 504 Gateway Time-out
Nginx returns 504 when the upstream accepts the TCP connection but fails to send a response header before proxy_read_timeout (default 60s ) expires.
Raising proxy_read_timeout alone only masks slow DB queries or missing upstream keepalive pools.
Check whether upstream_response_time matches your timeout ceiling, and confirm proxy_connect_timeout vs proxy_read_timeout vs Kubernetes Ingress annotations ( nginx.ingress.kubernetes.io/proxy-read-timeout ).
Full tuning walkthrough: Nginx 504 Gateway Timeout & proxy_read_timeout Tuning and Ingress Nginx 504 Upstream Postmortem .
2.…