Interview Prep/Networking/Load Balancers, Proxies & CDNs

What are common nginx proxy timeouts and what do 499, 502 and 504 mean there?

IntermediateConceptLoad Balancers, Proxies & CDNs
Answer

proxy_connect_timeout, proxy_send_timeout, proxy_read_timeout (defaults 60s). 502 means the upstream refused, reset, or sent garbage. 504 means the upstream did not respond within the timeout. 499 is nginx-specific: the client closed the connection before the response.

A spike of 499s often means upstream latency made users or an upstream LB give up first.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancers, Proxies & CDNs