Hi, dear Riccardo, > *Have you tried -HUP with latest stable version?*
Yes, I used version 1.9.21.1 before. But after I switch to the latest version 2.0.11.2, the problem still exists. According to the following docs, a version higher than 1.4 would be ok. http://uwsgi-docs.readthedocs.org/en/latest/articles/TheArtOfGracefulReloading.html#the-art-of-graceful-reloading > *Another thing may be that your app takes a bit to come up* Even in a tiny app (respond 'hello world'), the problem still exists. I have put the tiny project (along with the uwsgi , nginx configuration) in the github. https://github.com/zejiachen/uwsgi_problem It could be easily deployed. For convenience, I paste the uwsgi configuration again as below: uwsgi: master: 1 vacuum: 1 virtualenv: /home/projects/uwsgi_app/virtualenv procname-prefix: uwsgi_app_ processes: 6 chdir: /home/projects/uwsgi_app wsgi: tinyapp.app need-app: 1 lazy-apps: 1 disable-logging: true logto2: /home/projects/uwsgi_app/var/log/uwsgi_app.log http-socket: 0.0.0.0:3008 stats: 127.0.0.1:4008 max-fd: 65535 reload-on-rss: 256 log-reopen: true log-slow: 1000 buffer-size: 32768 umask: 027 max-requests: 50000 worker-reload-mercy: 10 listen: 1024 harakiri: 20 Thanks a lot! 2015-11-18 22:35 GMT+08:00 Riccardo Magliocchetti < [email protected]>: > Hi, > > Il 18/11/2015 15:09, 陈泽佳 ha scritto: > >> Hello, Dear Riccardo, >> Thanks for your help on the uwsgi reloading problem. >> I follow your suggestion to use subscription server in the uwsgi. >> Then I >> got no nginx connection reset errors when reloading the uwsgi. >> However, I still don't understand why I cannot reload uwsgi >> gracefully >> without the subscription server. >> In the uwsgi docs: >> >> http://uwsgi-docs.readthedocs.org/en/latest/articles/TheArtOfGracefulReloading.html#standard-default-boring-graceful-reload-aka-sighup >> It says that 'send HUP to the master is the method of 'standard >> graceful >> reload' without mentioning the *subscription* server. Using subscription >> server >> is ‘probably the best approach when you can count on multiple servers’, >> but *not >> necessary for the graceful* *reloading*, according to my understanding of >> the >> documents. >> > > Well if you care that much about client disruption during reload > subscription server may well fit you for this reason. > > So what's the matter? >> > > Have you tried -HUP with latest stable version? > > Another thing may be that your app takes a bit to come up, a trick is to > force the app loading the wsgi file itself, like simulating a request to /. > > hth > > -- > Riccardo Magliocchetti > @rmistaken > > http://menodizero.it > -- Best Regards Chen Zejia (陈泽佳) Tsinghua National Lab for Information Science and Technology Dept. of Computer Science and Technology Tsinghua University, Beijing, P.R. China, 100084 Email:[email protected] <[email protected]>
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
