Welcome! Log In Create A New Profile

Advanced

nginx serving large files - performance issues with more than ~800-1000 connections

Tomasz Chmielewski
May 24, 2012 03:30AM
Hi,

I have a cluster of 10 nginx 1.2.0 servers, on Linux. They primarily serve large files.

Whenever the number of ESTABLISHED connections to nginx is above 800-1000, the things get very slow.

I.e. it can take a minute or more before nginx starts serving such a connection; then, the file is served very slow (started from a server in the same rack):

wget -O /dev/null http://server/content/7a35859b7d91ca48fef7a3e2a9bc6fc8.dat


I've tried different tuning parameters (nginx, sysctl etc.), but they don't seem to change much.

The only thing which helps is starting one more nginx instance, on a different port.

Then, this second instance serves the files just fine. I.e. with the number of established connections above 800-1000, this one is slow:

PORT=80; wget -O /dev/null http://server:$PORT/content/7a35859b7d91ca48fef7a3e2a9bc6fc8.dat


The second instance running on port 82 will reply fast and serve files fast:

PORT=82; wget -O /dev/null http://server:$PORT/content/7a35859b7d91ca48fef7a3e2a9bc6fc8.dat


Does it suggest nginx issues? Because the second nginx instance serves the files fine.

Or maybe some system / sysctl parameters?



--
Tomasz Chmielewski
http://www.ptraveler.com

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

nginx serving large files - performance issues with more than ~800-1000 connections

Tomasz Chmielewski May 24, 2012 03:30AM

Re: nginx serving large files - performance issues with more than ~800-1000 connections

Maxim Dounin May 24, 2012 06:26AM

Re: nginx serving large files - performance issues with more than ~800-1000 connections

Tomasz Chmielewski July 06, 2012 10:34AM

Re: nginx serving large files - performance issues with more than ~800-1000 connections

Maxim Dounin July 06, 2012 12:18PM

Re: nginx serving large files - performance issues with more than ~800-1000 connections

Tomasz Chmielewski July 06, 2012 10:56PM

Re: nginx serving large files - performance issues with more than ~800-1000 connections

Maxim Dounin July 07, 2012 06:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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