Welcome! Log In Create A New Profile

Advanced

Re: memcached problems...

Istv
August 31, 2009 05:41PM
"swf and flv files into memcached which should be possible for my
understanding."
are you sure?

On Mon, Aug 31, 2009 at 10:34 PM, JG wrote:

> 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).
>
> 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.
>
> i think i found one of my problems, the missing fallback server if the
> content isnt already in memcached.
>
> but now i get 502 bad gateway error messages, and such strange error log
> entries
>
> 2009/08/31 23:21:17 30612#0: 8192 worker_connections is not enough while
> accepting new connection on 0.0.0.0:81
>
> ? no connections yet ... no production
>
> but anyway, i trimmed down my config to a minimum for testing
>
>
> server {
> listen 81;
> server_name _;
>
> #access_log logs/host.access.log main;
>
> location / {
> set $memcached_key $uri;
> memcached_pass 127.0.0.1:11211;
> error_page 404 502 = /fallback;
> # default_type text/html;
>
> root /usr/share/nginx/html;
> index index.html index.htm;
> }
>
> location /fallback {
> proxy_pass http://127.0.0.1:81;
> }
>
> location ~ \.php$ {
> set $memcached_key $uri;
> memcached_pass 127.0.0.1:11211;
>
> root /home/www/htdocs;
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> /home/www/htdocs$fastcgi_script_name;
> include fastcgi_params;
> }
>
>
>
> 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
>
> 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: "GET /koch/_banner/paldauer/paldauer.zip HTTP/1.0",
> upstream: "http://127.0.0.1:81/yes/_this/doesnt/work.zip", host: "
> 127.0.0.1:81", referrer: "
> http://ftp.nastyhost.de:81/koch/_banner/paldauer/index.php"
>
> please igor, anyhow if you got an idea how i can get nginx to use memcached
> to store content...
>
> greetings & thanks
>
> juergen
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,5434,5452#msg-5452
>
>
>


--
the sun shines for all
Subject Author Posted

memcached problems...

Juergen Gotteswinter August 31, 2009 02:05PM

Re: memcached problems...

Igor Sysoev August 31, 2009 03:49PM

Re: memcached problems...

JG August 31, 2009 05:34PM

Re: memcached problems...

Istv August 31, 2009 05:41PM

Re: memcached problems...

JG August 31, 2009 06:15PM

Re: memcached problems...

JG September 02, 2009 05:37PM

Re: memcached problems...

JG September 02, 2009 05:56PM

Re: memcached problems...

JG September 02, 2009 05:58PM

Re: memcached problems...

Igor Sysoev September 03, 2009 05:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready