Spawning of Nginx worker process
mdounin at mdounin.ru
Fri Apr 21 12:46:09 UTC 2017
On Thu, Apr 20, 2017 at 05:31:22PM -0400, shivramg94 wrote:
> Hi All,
> When we issue a reload to Nginx binary (<binary_location> -s reload), what
> are the steps involved inthe spawning of new set of worker processes?
> Is it something like, while the older worker processes are still running or
> are serving in flight requests, Nginx spawns the newer worker processes and
> then brings down the older processes once they have served all the accepted
Yes. It is documented here:
> Also, is there any chance where one of the spawned up newer worker
> processes after reload, uses the PID of the older/earlier running Nginx
> worker process?
No, if there is only one configuration reload and by "older" your
mean only the previous set of worker processes.
Yes, as long as there is more than one configuration reload and
"older" includes all previously running worker processes.
More information about the nginx