Welcome! Log In Create A New Profile

Advanced

How many connections can nginx handle?

November 08, 2012 10:46PM
I have a server running proxy_pass the http request(mainly GET,html,jpg etc.) to backend server(20+ server running nginx cache).
this server with 32 core CPU,64G RAM,2X 10G NIC,RHEL 6.3,backend server with 1000M NIC.
When the load raise to 300k connections,3Gbps network traffic,new connection can not be serviced,cannot connect to nginx's port,but the system load is low(~1.00),and has many free memory,
no errorlog in /var/log/message,has some nginx errorlog like"upstream timed out to backend server",
but the backend's service is normal,load is not hight...
i have tune tcp config,can handle 2000K conn,it seems that nginx cannot handle so much connection?

nginx config:
worker_processes 32;use worker_cpu_affinity;
keepalive 32 to backend servers,
proxy_buffering on or off has the same result...
SubjectAuthorPosted

How many connections can nginx handle?

arnoldguoNovember 08, 2012 10:46PM

Re: How many connections can nginx handle?

Maxim KonovalovNovember 09, 2012 04:48AM

Re: How many connections can nginx handle?

arnoldguoNovember 11, 2012 08:57PM

Re: How many connections can nginx handle?

Valentin V. BartenevNovember 11, 2012 10:02PM

Re: How many connections can nginx handle?

arnoldguoNovember 12, 2012 03:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 47
Record Number of Users: 5 on December 17, 2014
Record Number of Guests: 154 on December 17, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready