Ну раз уж взялся ковырять проблему хотел и обновиться.. Ну делать нечего, пропатчил 0.7.61<br><br>Собственно  возвращаясь к сути проблемы - на разных серверах все сильно по разному.<br>Вот логи с сервера где проблему побороть не удалось.<br>
FREEBSD 7.0-RELEASE<br>nginx version: nginx/0.7.61<br>Патч наложен.<br><br>конфиг:<br>limit_req_zone $binary_remote_addr  zone=avi:10m   rate=2r/m;<br>limit_req   zone=avi  burst=22;<br><br><br>Хочу чтобы нжинкс просто подвешивал все мульти-хотелки и не устраивал перестрелку в 503.<br>
После перезапуска с этим конфигом лог взрывается от строчек с &quot;206 65536&quot;.<br><br>Например,<br>95.24.28.67 - - [14/Jul/2009:23:02:58 +0400] GET /multiki/ostrov.oshibok.avi HTTP/1.0 1.400 ZZ 206 64877<br><br><br>
2009/07/14 23:02:57 [debug] 89383#0: *969 accept: 95.24.28.67 fd:80<br>2009/07/14 23:02:57 [debug] 89383#0: *969 event timer add: 80: 30000:2057691717<br>2009/07/14 23:02:57 [debug] 89383#0: *969 kevent set event: 80: ft:-1 fl:0025<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 post event 284BBB7C<br>2009/07/14 23:02:57 [debug] 89383#0: *969 delete posted event 284BBB7C<br>2009/07/14 23:02:57 [debug] 89383#0: *969 malloc: 29004C00:660<br>2009/07/14 23:02:57 [debug] 89383#0: *969 malloc: 29005000:1024<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 malloc: 2900F000:4096<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http process request line<br>2009/07/14 23:02:57 [debug] 89383#0: *969 recv: eof:0, avail:473, err:0<br>2009/07/14 23:02:57 [debug] 89383#0: *969 recv: fd:80 473 of 1024<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http request line: &quot;GET /multiki/ostrov.oshibok.avi HTTP/1.0&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http uri: &quot;/multiki/ostrov.oshibok.avi&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http args: &quot;&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http exten: &quot;avi&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http process request header line<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http header: &quot;User-Agent: Download Master&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http header: &quot;Cookie: b=b; __utma=24853414.223958894.1247162475.1247581104.1247592162.18; __utmz=24853414.1247592162.18.17.utmccn=(referral)|utmcsr=<a href="http://film.arjlover.net">film.arjlover.net</a>|utmcct=/film/|utmcmd=referral; __utmb=24853414; __utmc=24853414; hotlog=1&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http header: &quot;Accept: */*&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http header: &quot;Referer: <a href="http://multiki.arjlover.net/info/ostrov.oshibok.avi.html">http://multiki.arjlover.net/info/ostrov.oshibok.avi.html</a>&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http header: &quot;Range: bytes=116294291-&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http header: &quot;Pragma: no-cache&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http header: &quot;Cache-Control: no-cache&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http header: &quot;Host: <a href="http://inka.arjlover.net">inka.arjlover.net</a>&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http header done<br>2009/07/14 23:02:57 [debug] 89383#0: *969 event timer del: 80: 2057691717<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 generic phase: 0<br>2009/07/14 23:02:57 [debug] 89383#0: *969 add cleanup: 2900F590<br>2009/07/14 23:02:57 [debug] 89383#0: *969 generic phase: 1<br>2009/07/14 23:02:57 [debug] 89383#0: *969 test location: &quot;/&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 test location: &quot;50x.html&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 test location: &quot;statn&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 test location: &quot;no.html&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 test location: ~ &quot;/php2/&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 test location: ~ &quot;/mrtg/.*&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 test location: ~ &quot;\.(html|php|pl)$&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 test location: ~ &quot;/(stat|session)/&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 test location: ~ &quot;^/(film|filmiki|multiki)/.*\.(avi|mpg|gif|jpg)$&quot;<br>2009/07/14 23:02:57 [debug] 89383#0: *969 using configuration &quot;^/(film|filmiki|multiki)/.*\.(avi|mpg|gif|jpg)$&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http cl:-1 max:1048576<br>2009/07/14 23:02:57 [debug] 89383#0: *969 generic phase: 3<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http script var<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http script var: &quot;&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http script if<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http script if: false<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http script var<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http script var: &quot;/multiki/ostrov.oshibok.avi&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http script regex: &quot;\.(gif|jpg)$&quot;<br>2009/07/14 23:02:57 [notice] 89383#0: *969 &quot;\.(gif|jpg)$&quot; does not match &quot;/multiki/ostrov.oshibok.avi&quot;, client: 95.24.28.67, server: <a href="http://inka.arjlover.net">inka.arjlover.net</a>, request: &quot;GET /multiki/ostrov.oshibok.avi HTTP/1.0&quot;, host: &quot;<a href="http://inka.arjlover.net">inka.arjlover.net</a>&quot;, referrer: &quot;<a href="http://multiki.arjlover.net/info/ostrov.oshibok.avi.html">http://multiki.arjlover.net/info/ostrov.oshibok.avi.html</a>&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 http script if<br>2009/07/14 23:02:57 [debug] 89383#0: *969 http script if: false<br>2009/07/14 23:02:57 [debug] 89383#0: *969 post rewrite phase: 4<br>2009/07/14 23:02:57 [debug] 89383#0: *969 generic phase: 5<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 add cleanup: 2900F6A0<br>2009/07/14 23:02:57 [debug] 89383#0: *969 generic phase: 6<br>2009/07/14 23:02:57 [debug] 89383#0: *969 limit_req: -2 1.000<br>2009/07/14 23:02:57 [warn] 89383#0: *969 delaying request, excess: 1.000, by zone &quot;avi&quot;, client: 95.24.28.67, server: <a href="http://inka.arjlover.net">inka.arjlover.net</a>, request: &quot;GET /multiki/ostrov.osh<br>
ibok.avi HTTP/1.0&quot;, host: &quot;<a href="http://inka.arjlover.net">inka.arjlover.net</a>&quot;, referrer: &quot;<a href="http://multiki.arjlover.net/info/ostrov.oshibok.avi.html">http://multiki.arjlover.net/info/ostrov.oshibok.avi.html</a>&quot;<br>
2009/07/14 23:02:57 [debug] 89383#0: *969 event timer add: 80: 1000:2057662719<br>2009/07/14 23:02:58 [debug] 89383#0: *969 event timer del: 80: 2057662719<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http run request: &quot;/multiki/ostrov.oshibok.avi?&quot;<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 limit_req delay<br>2009/07/14 23:02:58 [debug] 89383#0: *969 generic phase: 6<br>2009/07/14 23:02:58 [debug] 89383#0: *969 generic phase: 7<br>2009/07/14 23:02:58 [debug] 89383#0: *969 add cleanup: 2900F6BC<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 limit zone: A9BD7F57 2<br>2009/07/14 23:02:58 [debug] 89383#0: *969 access phase: 8<br>2009/07/14 23:02:58 [debug] 89383#0: *969 access phase: 9<br>2009/07/14 23:02:58 [debug] 89383#0: *969 post access phase: 10<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 content phase: 11<br>2009/07/14 23:02:58 [debug] 89383#0: *969 content phase: 12<br>2009/07/14 23:02:58 [debug] 89383#0: *969 content phase: 13<br>2009/07/14 23:02:58 [debug] 89383#0: *969 content phase: 14<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 content phase: 15<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http filename: &quot;/data/multiki/ostrov.oshibok.avi&quot;<br>2009/07/14 23:02:58 [debug] 89383#0: *969 add cleanup: 2900F6F4<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 http static fd: 156<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http set discard body<br>2009/07/14 23:02:58 [debug] 89383#0: *969 HTTP/1.1 206 Partial Content<br>2009/07/14 23:02:58 [debug] 89383#0: *969 write new buf t:1 f:0 2900F890, pos 2900F890, size: 293 file: 0, size: 0<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 http write filter: l:0 f:0 s:293<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http output filter &quot;/multiki/ostrov.oshibok.avi?&quot;<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http range body buf: 0-232466432<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 copy filter: &quot;/multiki/ostrov.oshibok.avi?&quot;<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http postpone filter &quot;/multiki/ostrov.oshibok.avi?&quot; 7FBFE910<br>2009/07/14 23:02:58 [debug] 89383#0: *969 write old buf t:1 f:0 2900F890, pos 2900F890, size: 293 file: 0, size: 0<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 write new buf t:0 f:1 00000000, pos 00000000, size: 0 file: 116294291, size: 116172141<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http write filter: l:1 f:0 s:116172434<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http write filter limit 65536<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 tcp_nopush<br>2009/07/14 23:02:58 [debug] 89383#0: *969 sendfile() sent only 65170 bytes (35: Resource temporarily unavailable)<br>2009/07/14 23:02:58 [debug] 89383#0: *969 sendfile: -1, @116294291 65170:68973<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 http write filter 2900FA08<br>2009/07/14 23:02:58 [debug] 89383#0: *969 copy filter: -2 &quot;/multiki/ostrov.oshibok.avi?&quot;<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http finalize request: -2, &quot;/multiki/ostrov.oshibok.avi?&quot; 1<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 event timer add: 80: 30000:2057692721<br>2009/07/14 23:02:58 [debug] 89383#0: *969 kevent set event: 80: ft:-2 fl:0025<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http run request: &quot;/multiki/ostrov.oshibok.avi?&quot;<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 http writer handler: &quot;/multiki/ostrov.oshibok.avi?&quot;<br>2009/07/14 23:02:58 [info] 89383#0: *969 client timed out (60: Operation timed out) while sending response to client, client: 95.24.28.67, server: <a href="http://inka.arjlover.net">inka.arjlover.net</a>, request: &quot;GET /multiki/ostrov.oshibok.avi HTTP/1.0&quot;, host: &quot;<a href="http://inka.arjlover.net">inka.arjlover.net</a>&quot;, referrer: &quot;<a href="http://multiki.arjlover.net/info/ostrov.oshibok.avi.html">http://multiki.arjlover.net/info/ostrov.oshibok.avi.html</a>&quot;<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 http finalize request: 408, &quot;/multiki/ostrov.oshibok.avi?&quot; 1<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http close request<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http log handler<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 http geo started: 95.24.28.67<br>2009/07/14 23:02:58 [debug] 89383#0: *969 http geo: ZZ<br>2009/07/14 23:02:58 [debug] 89383#0: *969 run cleanup: 2900F6F4<br>2009/07/14 23:02:58 [debug] 89383#0: *969 file cleanup: fd:156<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 run cleanup: 2900F6BC<br>2009/07/14 23:02:58 [debug] 89383#0: *969 free: 2900F000, unused: 1390<br>2009/07/14 23:02:58 [debug] 89383#0: *969 close http connection: 80<br>2009/07/14 23:02:58 [debug] 89383#0: *969 event timer del: 80: 2057692721<br>
2009/07/14 23:02:58 [debug] 89383#0: *969 free: 29005000<br>2009/07/14 23:02:58 [debug] 89383#0: *969 free: 29004C00<br>2009/07/14 23:02:58 [debug] 89383#0: *969 free: 284DBF00, unused: 56<br><br>Какой у него timed out?? Сервер запущен в 55 секунд, в 58 коннект уже устал?<br>
Есть еще пара дебагов на этот айпи, где он пытается устроить долбежку и медленно получает 503. Там вроде все верно. Непонятно что случилось с этим &quot;основным&quot; коннектом.<br><br>Антон.<br><br><br><div class="gmail_quote">
2009/7/14 Михаил Монашёв <span dir="ltr">&lt;<a href="mailto:postmaster@softsearch.ru">postmaster@softsearch.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Здравствуйте, Антон.<br>
<br>
А зачем Вы гонитесь за последними версиями? Если всё работает, то<br>
делать этого не стоит.<br>
<br>
AK&gt; Я правильно понимаю, что старый патч не накатывается на 0.8.5? :)<br>
<font color="#888888"><br>
--<br>
<br>
С уважением,<br>
Михаил Монашёв, SoftSearch.ru<br>
mailto:<a href="mailto:postmaster@softsearch.ru">postmaster@softsearch.ru</a><br>
ICQ# 166233339<br>
<a href="http://michael.mindmix.ru/" target="_blank">http://michael.mindmix.ru/</a><br>
Без бэкапа по жизни.<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Anton Kuznetsov.       <br>