Welcome! Log In Create A New Profile

Advanced

Re: max clients != worker processes * worker connections

Alexandr Gomoliako
October 11, 2011 11:40AM
On 10/11/11, davidcie <nginx-forum@nginx.us> wrote:
> Can you please let me know why this setup might not be serving the
> "promised" ;-) worker_processes * worker_connections connections?

> Is it possible that new connections are not being evenly distributed to the
> two processes?

They aren't supposed to be evenly distributed. Whoever gets cpu time
first is likely to accept as many connections as possible. Unless you
have blocking or cpu intensive requests in which case it won't have
enough time to call another accept but other worker will.
And it's actually not specific to nginx. I think any non-blocking
server behaves like this.
Although you can try setting accept_mutex or something to influence this.

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

Re: max clients != worker processes * worker connections

Alexandr Gomoliako October 11, 2011 11:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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