Forum: NGINX how to find a suitable number for the keepalive connections ?

Posted by mozatkey (Guest)
on 2012-11-05 08:45
(Received via mailing list)
The |/connections/| parameter should be set low enough(??)
to allow upstream servers to process additional new incoming
connections as well.


I am very confused about the keepalive 
<http://nginx.org/en/docs/http/ngx_http_upstream_mo... 
connections in the ngx_http_upstream_module,
can somebody  tell me how to determine the keepalive connections in http 
protocol ?


just like this:
upstream http_backend {
    server 127.0.0.1:8080;

    keepalive 16;// why 16 ? how to determine a suitable number ?
}

server {
    ...

    location /http/ {
        proxy_pass http://http_backend;
        proxy_http_version 1.1;
        proxy_set_header Connection "";
        ...
    }
}
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.