Nginx reload

Andrey Feldman 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>

> 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 at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



-- 
-- 
Andrey Feldman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100531/05b9ffe4/attachment-0001.html>


More information about the nginx mailing list