Sébastien Rebecchi
July 16, 2024 11:10AM
Hello

Reading this doc seems unclear to me
https://nginx.org/en/docs/control.html#upgrade

According to it, we should do

kill -USR2 $nginxPid
kill -WINCH $nginxPid
kill -QUIT $nginxPid

with $nginxPid the pid of the old nginx.

But doing that seems not good cause we have a strange behaviour that old
nginx worker processes are shutting down but no new master and workers are
spawned

If I add a sleep time before sending the QUIT signal then all is good, for
ex sleep 20; between the WINCH and QUIT.

How to explain that? It seems nginx receiving QUIT before processing
the USR2 ignored messages received before and just ignores it? Or what is
the explanation? And how to solve that properly cause sleeping seems not a
clean workaround. I need an automatic procedure, not to have to manually
look at what happens on all my servers during upgrade.

Best regards,

Sébastien.
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Upgrading Executable on the Fly

Sébastien Rebecchi July 16, 2024 11:10AM

Re: Upgrading Executable on the Fly

Sébastien Rebecchi July 18, 2024 10:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready