Hello,
> I'm talking about upstream server, not the "server" directive in
> the "upstream" block. Assuming you are using nginx as an upstream
> server you should use keepalive_requests.
We are not using nginx on the upstream side (we have some legacy server), this is why I was looking for keepalive_requests on the upstream side, or something to better control the upstream keepalive connections (for instance when they start failing or just close after a certain threshold of requests reached).
Something like:
upstream backend {
server 127.0.0.1:8080;
keepalive 10;
keepalive_requests 10; ##max requests per connection
}
It could be a good thing to add in nginx upstream module. It would allow controlling when to close a keepalive upstream connection and setup a new one.
Thanks!
--
Hakim