News for hackers. Stuff that matters.
Re:Optimizing Nginx for High Traffic Loads by rryan on Sunday May 01, 2011 @01:35AM (#2502454)
Each worker can handle many thousands of concurrent connections so this isn't really an issue. This is where nginx and Apache differ. Generally you want one worker per CPU core.
Re:Optimizing Nginx for High Traffic Loads by originalgeek on Sunday May 01, 2011 @03:59AM (#2502650)
I know how nginx works, I use it all the time. He is saying if you have 1024 woker_connections, at 2 per connections per user, you'll get 512 users per worker process. But the truth with most modern browsers is it is 4 connections per user, woker_connections = 1024, that is more like 256 users. So if you really want to service 512 users, you need to set woker_connections to 2048. This is the math problem I was highlighting, a simple division problem.

I believe you are talking about worker_processes

Re:Optimizing Nginx for High Traffic Loads by rryan on Sunday May 01, 2011 @02:16PM (#2503609)
Oops -- you're right I misread your comment. Sorry about that.