> Hi,
>
> I've decided to go down this route and I am building in a feature into the
> code to allow for a chain reload by staggering the SIGHUP signals sent out
> in grace_them_all() by a configurable delay (the mercy kill time must also
> be controlled in a way by this parameter). However, I am curious about one
> thing -- how would setting shared imports affect the speed of my startup?
>
> Thanks,
> Greg


If you have code in your app that never changes, using shared-import will
avoid reloading it every time

>
> On Wed, Jun 13, 2012 at 3:57 AM, Roberto De Ioris <[email protected]>
> wrote:
>
>>
>> Another trick, is in loading the apps in lazy mode (add --lazy) then
>> kill
>> one worker at time. Every new (respawned) worker will have the new copy
>> of
>> the app. There is currently no option/way to make this kind of
>> chain-reload so you have to make some kind of script getting the pids of
>> the currently running workers and killing them one at time (wait for
>> full
>> app loading before triggering a second kill)
>>
>>
>> --
>> Roberto De Ioris
>> http://unbit.it
>> _______________________________________________
>> uWSGI mailing list
>> [email protected]
>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>>
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to