Welcome! Log In Create A New Profile

Advanced

Re: Using NGINX in non-fork mode

April 14, 2015 02:36AM
On 14 Apr 2015, at 09:20, nitesh narayan lal <niteshnarayanlalleo@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

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

Using NGINX in non-fork mode

niteshnarayanlal April 14, 2015 02:22AM

Re: Using NGINX in non-fork mode

Igor Sysoev April 14, 2015 02:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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