> Hi, I have a pretty large emperor on-demand uwsgi setup, with 700 projects
> on one machine.
>
> When restarting the emperor, it takes somewhat long time for all the
> sockets to start listening.
> I'd say it takes around 0.5 seconds for every line like this to appear in
> the logs, so the least lucky project has to wait several minutes to be
> able
> to get requests.
>
> [uwsgi-emperor] ....ini -> "on demand" instance detected, waiting for
> connections on socket "...socket" ...
>
> Is there a way to speed this up somehow?
>
> Thanks!
> _______________________________________________
>


One of the job of the Emperor is to avoid fork() bombing. It solves it
using a throttling system that slow down spawning upto 1000 milliseconds
(1 second).

You can tune that value with --emperor-throttle <n>

(<n> is in milliseconds)

Try experimenting with lower values (i would start with 100)

Let me know


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

Reply via email to