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
python django uwsgi


source to share


No one has answered this question yet

Check out similar questions:

817
Django scale?
794
differentiate null = True, blank = True in django
4
Why is multiprocessing running on Django server and not ngnix uwsgi?
2
Why do UWSGI workers stop responding with SIGHUP?
1
Ubuntu Nginx uwsgi socket not working
1
Nginx - 4021 # 0 - Configuration Issues
0
Upstream timeout (uWSGI + NGINX + Flask)
0
uwsgi cannot load app when configuring nginx + django service on centos
0
Problems deploying django app using nginx and uwsgi?
0
Nginx + bottle + uwsgi Server returning 404 on every request



All Articles
Loading...
X
Show
Funny
Dev
Pics