Welcome! Log In Create A New Profile

Advanced

worker_process & blockend IO

Michael Baudino
July 22, 2009 01:38PM
Hello,

I'm using nginx 0.7.59 on a Debian unstable machine to serve huge files
(300+ MB) from 2 different filesystems : one is local, the other is
nfs-mounted over an ADSL link.

The nfs filesystem is sooooo slow !
To reduce IO latency, I'm using worker_process 16 (single CPU, though).

How does nginx handles workers ?
Does it choose a worker randomly for each connection ?
Or does it connect to the same worker until it has reached its
worker_connections limit then connect to the next worker ?
In that case, should I set a very low worker_connection to force it to
change worker often ? (I tried it but I got a lot of "worker_connections
are not enough while connecting to upstream")


Thanks in advance.
Subject Author Posted

worker_process & blockend IO

Michael Baudino July 22, 2009 01:38PM

Re: worker_process & blockend IO

Gabriel Ramuglia July 22, 2009 02:31PM

Re: worker_process & blockend IO

Igor Sysoev July 22, 2009 02:48PM

Re: worker_process & blockend IO

Michael Baudino July 23, 2009 03:58AM

Re: worker_process & blockend IO

Igor Sysoev July 23, 2009 04:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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