Uwsgi + django slow respawn / reload / restart
I am using django 1.7.7 and uswgi 2.0.7 on debian jessie
Uwsgi is very slow to restart / reload / restart. It seems to reach a timeout (30 seconds).
Fri Jul 31 08:20:59 2015 - SIGINT/SIGQUIT received...killing workers...
Fri Jul 31 10:21:29 2015 - *** Starting uWSGI 2.0.7-debian (64bit) on [Fri Jul 31 10:21:29 2015] ***
Fri Jul 31 09:25:53 2015 - SIGINT/SIGQUIT received...killing workers...
Fri Jul 31 11:26:24 2015 - *** Starting uWSGI 2.0.7-debian (64bit) on [Fri Jul 31 11:26:24 2015] ***
I have a problem with two versions of the uwsgi ini file. First like describe (django doc) :
# Django wsgi file
module = ntbserver.wsgi:application
and seconde as described here (uwsgi doc)
# Django wsgi file
module = ntbserver.wsgi
I found the third version at turorials. If I do this:
# Django wsgi file
module = django.core.handlers.wsgi:WSGIHandler()
He instantly
Fri Jul 31 11:25:46 2015 - SIGINT/SIGQUIT received...killing workers...
Fri Jul 31 11:25:47 2015 - worker 1 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - worker 2 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - worker 3 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - worker 4 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - worker 5 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - worker 6 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - worker 7 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - worker 8 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - worker 9 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - worker 10 buried after 1 seconds
Fri Jul 31 11:25:47 2015 - goodbye to uWSGI.
Fri Jul 31 11:25:47 2015 - VACUUM: pidfile removed.
Fri Jul 31 11:25:47 2015 - VACUUM WARNING: unix socket /run/uwsgi/app/ntbserver/socket changed inode. Skip removal
Fri Jul 31 11:25:48 2015 - *** Starting uWSGI 2.0.7-debian (64bit) on [Fri Jul 31 11:25:48 2015] ***
But I don't understand the difference and the impact of this change. I can't find any documentation or guidelines on this. If anyone can help me.
+3
source to share
No one has answered this question yet
Check out similar questions: