<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(68, 68, 68); ">&quot;swf and flv files into memcached which should be possible for my understanding.&quot;</span><div>
<font class="Apple-style-span" color="#444444" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(68, 68, 68); ">are you sure?<br>
</span><br><div class="gmail_quote">On Mon, Aug 31, 2009 at 10:34 PM, JG <span dir="ltr">&lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
normally, i whould agree. but in this special case the system has trouble to handle the high io load due to really lots of files (about 8 million.... i know... crazy, not my content).<br>
<br>
to get a workaround for the hd io load, i just wanted to get nginx to load the swf and flv files into memcached which should be possible for my understanding.<br>
<br>
i think i found one of my problems, the missing fallback server if the content isnt already in memcached.<br>
<br>
but now i get 502 bad gateway error messages, and such strange error log entries<br>
<br>
2009/08/31 23:21:17  30612#0: 8192 worker_connections is not enough while accepting new connection on <a href="http://0.0.0.0:81" target="_blank">0.0.0.0:81</a><br>
<br>
? no connections yet ... no production<br>
<br>
but anyway, i trimmed down my config to a minimum for testing<br>
<br>
<br>
    server {<br>
        listen       81;<br>
        server_name  _;<br>
<br>
        #access_log  logs/host.access.log  main;<br>
<br>
        location / {<br>
            set $memcached_key  $uri;<br>
            memcached_pass      <a href="http://127.0.0.1:11211" target="_blank">127.0.0.1:11211</a>;<br>
            error_page 404 502  = /fallback;<br>
#           default_type        text/html;<br>
<br>
            root   /usr/share/nginx/html;<br>
            index  index.html index.htm;<br>
        }<br>
<br>
        location /fallback {<br>
            proxy_pass <a href="http://127.0.0.1:81" target="_blank">http://127.0.0.1:81</a>;<br>
        }<br>
<br>
        location ~ \.php$ {<br>
            set $memcached_key  $uri;<br>
            memcached_pass      <a href="http://127.0.0.1:11211" target="_blank">127.0.0.1:11211</a>;<br>
<br>
            root           /home/www/htdocs;<br>
            fastcgi_pass   <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
            fastcgi_index  index.php;<br>
            fastcgi_param  SCRIPT_FILENAME  /home/www/htdocs$fastcgi_script_name;<br>
            include        fastcgi_params;<br>
        }<br>
<br>
<br>
<br>
PHP works well, but it doesnt seem to get stored in memcached, why? and, for example if i try to download a zip file i get this in the error log<br>
<br>
2009/08/31 23:30:16  30815#0: *12285 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: _, request: &quot;GET /koch/_banner/paldauer/paldauer.zip HTTP/1.0&quot;, upstream: &quot;<a href="http://127.0.0.1:81/yes/_this/doesnt/work.zip" target="_blank">http://127.0.0.1:81/yes/_this/doesnt/work.zip</a>&quot;, host: &quot;<a href="http://127.0.0.1:81" target="_blank">127.0.0.1:81</a>&quot;, referrer: &quot;<a href="http://ftp.nastyhost.de:81/koch/_banner/paldauer/index.php" target="_blank">http://ftp.nastyhost.de:81/koch/_banner/paldauer/index.php</a>&quot;<br>

<br>
please igor, anyhow if you got an idea how i can get nginx to use memcached to store content...<br>
<br>
greetings &amp; thanks<br>
<br>
juergen<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,5434,5452#msg-5452" target="_blank">http://forum.nginx.org/read.php?2,5434,5452#msg-5452</a><br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>the sun shines for all<br>
</div>