Welcome! Log In Create A New Profile

Advanced

Re: Upgrading Executable on the Fly - wrong docs?

Ruslan Ermilov
February 11, 2013 02:08AM
On Sat, Feb 09, 2013 at 05:12:28PM -0500, piotr.dobrogost wrote:
> Hi!
>
> After reading the section titled "Upgrading Executable on the Fly" in the
> docs (at http://nginx.org/en/docs/control.html) I have an impression the
> information given is wrong.
> In the first bullet one reads
> "Send the HUP signal to the old master process. The old process will start
> new worker processes without re-reading the configuration. (...)"
> then in the second and third bullet one reads
> "When the new master process exits, the old master process will start new
> worker processes."

The instructions in the bullets are not supposed to be executed in
a sequence. Instead, they document two possible actions to perform:

1) Start old workers with old configuration, then gracefully stop new
master/workers (bullet #1).

2) Stop new master/workers immediately (*). Old master will restart
workers automatically when new master exits (bullet #2). (*) send
KILL to new workers if they don't exit normally (bullet #3).

> If the old master process already started new worker processes after it had
> received the HUP signal then it means it didn't have to wait until the new
> master process exited, right? Doesn't this contradict the subsequent
> information that the old master process waits with starting new worker
> processes until after the new master process exited?

I can see where your confusion comes from. How's this instead?

http://pp.nginx.com/ru/libxslt/en/docs/control.html#upgrade

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

Upgrading Executable on the Fly - wrong docs?

piotr.dobrogost February 09, 2013 05:12PM

Re: Upgrading Executable on the Fly - wrong docs?

Ruslan Ermilov February 11, 2013 02:08AM

Re: Upgrading Executable on the Fly - wrong docs?

piotr.dobrogost February 12, 2013 03:01PM

Re: Upgrading Executable on the Fly - wrong docs?

Maxim Konovalov February 13, 2013 05:34AM

Re: Upgrading Executable on the Fly - wrong docs?

piotr.dobrogost February 13, 2013 02:39PM

Re: Upgrading Executable on the Fly - wrong docs?

Ruslan Ermilov February 19, 2013 06:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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