> It seems to me that the time harakiri should be counted from the moment of
> receipt of the request, and not from the start of its execution.
> If I set the harakiri at 3, I hope that no request will be made
> ​​longer than 3s. And if they arise, they will see it in the logs.
>
> Yet this is not true. eg.
> -p 1
>
> $ ab -c 8 -n 10 localhost
> ...
>  100%  16025 (longest request)
>
> So there are requests 16s at harakiri 3 and after this there is no trace
> in the logs.
>
> What's more ...
> [pid: 8542|app: 0|req: 5/5] ::ffff:127.0.0.1 () {30 vars in 379 bytes}
> [Sun Feb  5 18:01:01 2012] GET / => generated 2 bytes in 2002 msecs
> (HTTP/1.0 200) 2 headers in 78 bytes (1 switches on core 0)
> [pid: 8542|app: 0|req: 6/6] ::ffff:127.0.0.1 () {30 vars in 379 bytes}
> [Sun Feb  5 18:01:03 2012] GET / => generated 2 bytes in 2002 msecs
> (HTTP/1.0 200) 2 headers in 78 bytes (1 switches on core 0)
> [pid: 8542|app: 0|req: 7/7] ::ffff:127.0.0.1 () {30 vars in 379 bytes}
> [Sun Feb  5 18:01:05 2012] GET / => generated 2 bytes in 2003 msecs
> (HTTP/1.0 200) 2 headers in 78 bytes (1 switches on core 0)
>
> Logs suggest that each of these tasks was to wait 2 seconds, which is not
> true.
>
> sneaky, sneaky ;)


uWSGI knows about requests only after accept() and this could happen a lot
of seconds after the request is made on the webserver.

Some month ago i have sent a patch for nginx allowing you to set the time
of request in uwsgi/fastcgi/scgi variables. My ideas was monitoring the
real time taken by the request, but the patch was never accepted (sorry i
do not remember the specific reason). If you plan to use the uWSGI http
router (instead of nginx) this can be easily accomplished, otherwise
without webserver support wa can do nothing more :(

>
>
> --
> Ł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
>


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to