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
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi