pr1 at pr1.ru
Mon May 31 16:26:04 MSD 2010
Thanks for the quick reply.
But what is the right way for dynamic weight management of upstreams?
2010/5/31 Maxim Dounin <mdounin at mdounin.ru>
> 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
> > 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 at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx