My request flow looks like Client -> AWS ELB -> Nginx -> Backend
.
The backend takes a long time to respond to some requests, so proxy_read_timeout
is set to 5 min. However, nginx default keepAliveTimeout
is 70 sec and AWS ELB idleTimeout
is 6 min.
The AWS documentation says to keep the AWS idleTimeout less than the backend's keeplalive timeout which is 70 sec in my case. Where does nginx default keepAliveTimeout
come into the picture here?