Welcome! Log In Create A New Profile

Advanced

Dropping keepalive connections

Posted by VRider 
Dropping keepalive connections
November 21, 2013 07:21AM
This question might sound stupid, but I haven't found straight answer in the documentation.

If I have 2 workers with 1024 worker connections, that gives me 2048 open connections limit.
With keepalive set to 60 seconds, I could have all 2048 connections established.

If clients tries to connect while there are 2048 connections established, will some of the inactive keepalive connections be dropped, or the new connection will be rejected?

I like speed that I get with keepalive but I want to avoid that someone DOS my server by creating bunch of keepalive connections.

If nginx rejects new connections, what would be the solution, beside lowering keepalive, increasing number of worker connections and maybe limiting number of connections per IP (not helpful with DDOS)?

Thank you all in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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