Welcome! Log In Create A New Profile

Advanced

Limit number of connections to server

Kamil Gorlo
April 04, 2017 01:24PM
Hi,

is there a way to limit total number of open connections per listening port
in Nginx? I know that there is limit_conn module but as far as I understand
it only works on "request" layer, which means connections are counted only
when request headers have been already read.

I have problem when number of SSL connections to my server is very high
(CPU is 100% and server becomes unresponsive), and I would like to "cut"
new connections after some defined threshold is exceeded. It would possibly
save some CPU cycles needed to handle SSL handshake, etc.

Is it possible?

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

Limit number of connections to server

Kamil Gorlo April 04, 2017 01:24PM

Re: Limit number of connections to server

Valentin V. Bartenev April 04, 2017 05:00PM

Re: Limit number of connections to server

gariac April 04, 2017 06:14PM

Re: Limit number of connections to server

unclepieman April 04, 2017 09:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 232
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready