Welcome! Log In Create A New Profile

Advanced

Re: Nginx reload

Maxim Dounin
May 31, 2010 07:58AM
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

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

Nginx reload

Andrey Feldman May 31, 2010 07:50AM

Re: Nginx reload

Maxim Dounin May 31, 2010 07:58AM

Re: Nginx reload

Andrey Feldman May 31, 2010 08:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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