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.
More on Load Balancers, Proxies & CDNs
What is a load balancer and why do we use one?BeginnerWhat is the difference between L4 and L7 load balancing?IntermediateCompare ALB, NLB, GWLB and Classic Load Balancer in AWS.IntermediateWhat load-balancing algorithms are common?BeginnerWhat are health checks and how should they be designed?AdvancedWhat is connection draining (deregistration delay)?Intermediate