[prev in list] [next in list] [prev in thread] [next in thread]
List: uwsgi
Subject: [uWSGI] how to deal with the limit 64 of uwsgi signal number?
From: xin <guxin_hi () 126 ! com>
Date: 2015-12-24 8:18:00
Message-ID: 72a31417.589d.151d310ecb5.Coremail.guxin_hi () 126 ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
hello:
I use uwsgi filemon to monitor file change, I only need monitor two or three \
file but my worker number are very many.
for some reason, I need add lazy-app option and It seems that workers can't share \
the signal, and every worker need register the signal two or three times.
so worker number * signal number > 64 and uwsgi report error. so I try to find \
way to deal with this situation:
1 can I register the signal in master, so worker can share the signal when I use \
lazy-app option? 2 can I execute some python code when I touch file ( not using \
signal because of the limit 64)? I find the touch-hook option, but I can't find a way \
to define a custom hook using python code maybe I can define a mule and in the mule \
use some sub/pub or pyinotify to monitor file, but I wonder are there some eaiser \
ways? thanks
[Attachment #5 (text/html)]
<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>hello:</div><div><br></div><div> \
I use uwsgi filemon to monitor file change, I only need monitor two or \
three file but my worker number are very many. </div><div><br></div><div> \
for some reason, I need add lazy-app option and It seems that workers can't \
share the signal, and every worker need register the signal two or three \
times.</div><div><br></div><div> so worker number * signal number > \
64 and uwsgi report error. so I try to find way to deal with this \
situation:</div><div><br></div><div> 1 can I register the signal \
in master, so worker can share the signal when I use lazy-app \
option?</div><div> 2 can I execute some python code when I touch \
file ( not using signal because of the limit 64)? I find the touch-hook option, but I \
can't find a way to define a custom hook using python code</div><div> \
maybe I can define a mule and in the mule use some sub/pub or pyinotify to monitor \
file, but I wonder are there some eaiser ways?</div><div> \
thanks</div></div><br><br><span title="neteasefooter"><p> </p></span>
_______________________________________________
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