Using NGINX in non-fork mode

Igor Sysoev igor at sysoev.ru
Tue Apr 14 06:34:00 UTC 2015


On 14 Apr 2015, at 09:20, nitesh narayan lal <niteshnarayanlalleo at gmail.com> wrote:

> Hi,
> 
> I am using a single worker process and master_process off in nginx.conf.
> Now as per my understanding, the flow of operation would be something like:
> NGiNX master process will be created which will spawn a single
> worker_process using fork and then master process gets killed.
> Is that correct ?
> 
> If yes then is it possible to avoid forking.
> Pthreads is just now been introduced as a testing feature in NGiNX, so
> I don't want to use it. Is there any other way also to avoid fork?

When master_process is set to off, then master process does not fork any
child processes and all requests are processed by the master process.
However, this mode is intended only for development but for productions.
There are issues with graceful reload, etc.


-- 
Igor Sysoev
http://nginx.com



More information about the nginx mailing list