July 08, 2019 02:24AM
Patrick Wrote:
-------------------------------------------------------
> On 2019-07-07 22:39, allenhe wrote:
> > Per my understanding, the reloading would only replace the old
> workers with
> > new ones, while during testing (constantly reloading), I found the
> output of
> > "ps -ef" shows multiple masters and shutting down workers which
> would fade
> > away very quickly, so I guess the master process may undergo the
> same
> > replacement.
> > Could some experts help confirm this?
>
> It depends on what exactly is done to "reload" nginx? Different
> operating systems will do different things.
>
The "reload" script just contains one command line:
/usr/bin/nginx -s reload
And this happens on Ubuntu Linux x86_64
Curious that in the official doc It does not mention that the "-s reload" would impact the master

> In production, you should probably be using some form of commit /
> rollback, e.g. something like nginx-graceful[0] which automates the
> recommended zero-downtime restart[1].
>
It is about "restart" while I'm concerned with reloading to apply configuration changes.

>
> Patrick
> [0] https://github.com/patrickhaller/nginx-graceful
> [1]
> https://www.nginx.com/resources/wiki/start/topics/tutorials/commandlin
> e/
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Multiple master processes per reloading

allenhe July 07, 2019 10:39PM

Re: Multiple master processes per reloading

Patrick July 07, 2019 11:34PM

Re: Multiple master processes per reloading

allenhe July 08, 2019 02:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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