Nginx reload

We need to change upstreams weight dynamicly(every 15 sec.), is that
normal
to reload nginx so frequently in prodution?

Hello!

On Mon, May 31, 2010 at 03:44:56PM +0400, Andrey F. 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 D.

Thanks for the quick reply.
But what is the right way for dynamic weight management of upstreams?

2010/5/31 Maxim D. [email protected]