Nginx reload
Maxim Dounin
mdounin at mdounin.ru
Mon May 31 15:53:39 MSD 2010
Hello!
On Mon, May 31, 2010 at 03:44:56PM +0400, Andrey Feldman wrote:
> We need to change upstreams weight dynamicly(every 15 sec.), is that normal
> to reload nginx so frequently in prodution?
Not really, but this depends on your workload.
Every reload gracefully shutdowns old workers. This means that if
there are long-lived requests (big downloads from clients with
slow links etc.) old workers may still be here for a while. And
they still consume memory and so on. In my practice shutdown time
reached several hours in some cases.
If you reload every 15 seconds and shutdown takes longer - you
have problem.
Maxim Dounin
More information about the nginx
mailing list