[prev in list] [next in list] [prev in thread] [next in thread]
List: uwsgi
Subject: Re: [uWSGI] restarting uwsgi with HUP occasionally gives bad fd
From: Tim Tisdall <tisdall () gmail ! com>
Date: 2014-04-16 15:42:16
Message-ID: CAGxYWpYK9QGnRuiKUGd3nN-h9AODkvNu314AmrEcMcDuW3uYXQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
It is used in the master too, so I guess that must be it. I'll see what I
can do about it, thanks!
On Wed, Apr 16, 2014 at 10:56 AM, Roberto De Ioris <roberto@unbit.it> wrote:
>
> > Which config? The INI config file I use to start up uwsgi? Here's that
> > config:
> >
> > ------------------
> > [uwsgi]
> > # %d - the absolute path of the directory containing the config file
> > socket = /var/run/uwsgi/metrics_dev.sock
> > master = true
> > processes = 2
> > threads = 20
> > harakiri = 60
> > harakiri-verbose = true
> > limit-post = 65536
> > post-buffering = 8192
> > daemonize = /var/log/uwsgi/metrics_dev.log
> > pidfile = /var/run/uwsgi/metrics_dev.pid
> > max-requests = 1000
> > log-slow = true
> > virtualenv = %denv/
> > uid=33
> > gid=33
> > vacuum=False
> > enable-threads=True
> > attach-daemon = %denv/bin/python %dmainserver/msg_server.py
> > %ddevelopment.ini
> > attach-daemon = %denv/bin/python %dmainserver/alert_generator.py
> > %ddevelopment.ini
> > -----------------
> >
> > I am using zeromq, but not as the interface between uwsgi and nginx, just
> > for internal process use. If it were that, I'd think that uwsgi would
> > still be able to recover and restart as expected.
> >
> >
>
> if zeromq is initialized in the master (and it crashes), the master will
> die too. This happens because zeromq generates a posix thread.
>
>
> Check where you initialize zeromq
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> uWSGI@lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
[Attachment #5 (text/html)]
<div dir="ltr">It is used in the master too, so I guess that must be it. I'll \
see what I can do about it, thanks!</div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Wed, Apr 16, 2014 at 10:56 AM, Roberto De Ioris <span \
dir="ltr"><<a href="mailto:roberto@unbit.it" \
target="_blank">roberto@unbit.it</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br> > Which config? \
The INI config file I use to start up uwsgi? Here's that<br> > config:<br>
><br>
> ------------------<br>
> [uwsgi]<br>
> # %d - the absolute path of the directory containing the config file<br>
> socket = /var/run/uwsgi/metrics_dev.sock<br>
> master = true<br>
> processes = 2<br>
> threads = 20<br>
> harakiri = 60<br>
> harakiri-verbose = true<br>
> limit-post = 65536<br>
> post-buffering = 8192<br>
> daemonize = /var/log/uwsgi/metrics_dev.log<br>
> pidfile = /var/run/uwsgi/metrics_dev.pid<br>
> max-requests = 1000<br>
> log-slow = true<br>
> virtualenv = %denv/<br>
> uid=33<br>
> gid=33<br>
> vacuum=False<br>
> enable-threads=True<br>
> attach-daemon = %denv/bin/python %dmainserver/msg_server.py<br>
> %ddevelopment.ini<br>
> attach-daemon = %denv/bin/python %dmainserver/alert_generator.py<br>
> %ddevelopment.ini<br>
> -----------------<br>
><br>
> I am using zeromq, but not as the interface between uwsgi and nginx, just<br>
> for internal process use. If it were that, I'd think that uwsgi would<br>
> still be able to recover and restart as expected.<br>
><br>
><br>
<br>
</div></div>if zeromq is initialized in the master (and it crashes), the master \
will<br> die too. This happens because zeromq generates a posix thread.<br>
<br>
<br>
Check where you initialize zeromq<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Roberto De Ioris<br>
<a href="http://unbit.it" target="_blank">http://unbit.it</a><br>
_______________________________________________<br>
uWSGI mailing list<br>
<a href="mailto:uWSGI@lists.unbit.it">uWSGI@lists.unbit.it</a><br>
<a href="http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi" \
target="_blank">http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi</a><br> \
</div></div></blockquote></div><br></div>
_______________________________________________
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic