Welcome! Log In Create A New Profile

Advanced

how to find a suitable number for the keepalive connections ?

November 05, 2012 02:46AM
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_module.html#keepalive> 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 "";
...
}
}

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

how to find a suitable number for the keepalive connections ?

mozatkey November 05, 2012 02:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready