----- Oryginalna wiadomość -----
> Od: "Roberto De Ioris" <[email protected]>
> Do: "uWSGI developers and users list" <[email protected]>
> Wysłane: niedziela, 4 marzec 2012 17:20:21
> Temat: Re: [uWSGI] harakiri
> 
> 
> > harakiri = 3
> > harakiri-verbose = 1
> > reload-mercy = 3
> >
> >
> 
> a bit "aggressive" :)

3s, IMHO is very long for a reply www :]

sample from nginx $time_local|$request_time :

16:58:10|0.010
16:58:12|0.020
16:58:18|0.090
16:58:18|0.006
16:58:18|7.847
16:58:21|0.007
16:58:25|0.010
16:58:29|0.054
16:58:30|19.994|408
16:58:30|19.992|408
16:58:30|19.996|408
16:58:31|0.065
17:01:49|0.032
17:01:56|0.00
17:01:56|0.014
17:02:00|0.010
17:02:02|0.334
17:02:04|0.030
17:02:07|0.013
17:05:09|0.000
17:05:09|0.000
17:05:29|19.933|408
17:05:29|19.936|408
17:07:03|0.032
17:07:10|0.013
17:07:25|0.207
17:12:01|0.199
17:12:19|0.021
17:15:43|0.456
17:15:43|0.000
17:15:43|0.062
17:15:43|0.085
17:15:43|0.000
17:22:28|11.768
17:22:38|0.054


There should be no such jumps to 7 or 11s.
There is nothing which could be the cause.
Analysis showed that they are experiencing a moment harakiri, but what caused 
them? If the previous request was made ​​quickly.


> 
> 
> >>
> >> 168 is poll(), that could be the one used by uWSGI while waiting
> >> for
> >> protocol data. If you have a 4 seconds harakiri, which is the
> >> socket
> >> timeout ? (the one you set with -z)
> >>
> >
> > "used by uWSGI while waiting for protocol data"
> > ...from nginx ?
> 
> yes


So nginx can't handle traffic ?
Begin a conversation with uWSGI, but does not provide data to the end and uWSGI 
throws timeout?


> 
> >
> >
> > And I also have something like that:
> > syscall> -1  ?
> >
> 
> this could mean the exit of a syscall or not a syscall at all:
> 
> while True:
>     pass
> 
> there is no syscall involved, but harakiri will come in.
> 
> As a general rule i would not set harakiri <= socket_timeout.
> 
> If nginx cannot send datas fast enough (on high-load it could
> happens) it
> would be better to gracefully close the connection using the normal
> timeout and without killing a worker.

How do I do it?



-- 
Łukasz Wróblewski
http://www.nri.pl/ - Nowoczesne Rozwiązania Internetowe
http://www.hostowisko.pl/ - Profesjonalny i tani hosting
http://www.katalog-polskich-firm.pl/ - Najlepszy darmowy katalog firm
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to