Welcome! Log In Create A New Profile

Advanced

Why set keepalive_timeout to a short period when Nginx is great at handling them?

Aahan Krish
June 18, 2016 07:28AM
I read something interesting today:
https://blog.martinfjordvald.com/2011/04/optimizing-nginx-for-high-traffic-loads/

"Keep alive is a HTTP feature which allows user agents to keep the
connection to your server open for a number of requests or until the
specified time out is reached. This won’t actually change the
performance of our nginx server very much as it handles idle
connections very well. The author of nginx claims that 10,000 idle
connections will use only 2.5 MB of memory, and from what I’ve seen
this seems to be correct.""

So why is it that people on the web (and in IRC) still recommend
setting `keepalive_timeout` to a short period (< 30 seconds) when
Nginx can handle idle keep-alive connections like a champ (using very
little resources) while serving active ones? Is that bad advise?

I get this advise so often that I believe there must be something that
I am missing. What's it?

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

Why set keepalive_timeout to a short period when Nginx is great at handling them?

Aahan Krish June 18, 2016 07:28AM

Re: Why set keepalive_timeout to a short period when Nginx is great at handling them?

B.R. June 18, 2016 08:14AM

Re: Why set keepalive_timeout to a short period when Nginx is great at handling them?

Aahan Krish June 18, 2016 11:30AM

Re: Why set keepalive_timeout to a short period when Nginx is great at handling them?

Valentin V. Bartenev June 19, 2016 04:54AM

Re: Why set keepalive_timeout to a short period when Nginx is great at handling them?

Aahan Krish June 19, 2016 06:56AM

Re: Why set keepalive_timeout to a short period when Nginx is great at handling them?

Valentin V. Bartenev June 19, 2016 09:46AM

Re: Why set keepalive_timeout to a short period when Nginx is great at handling them?

Aahan Krish June 19, 2016 10:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 297
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