SlowFS Cache or Proxy_Cache for GridFS

Elena Zwetkow ezwetkow at gmx.de
Tue Feb 22 10:59:42 MSK 2011


Hi,

> AFAIK it still uses the Mongo-provided C library, which is blocking, so 
> you'll lose many of the benefits of Nginx's performance.

> Marcus.

Thanks for the hint. Blocking sounds not good, i found some threads about issues with gridfs. 

> GridFS does not use the upstream, if it did then it'd be
> easy to hack a cache.  You could use memcache and srcache.

Thanks for this option, is memcache really a good option for caching 
images?

What do you think about such a configuration? 


proxy_cache_path /data/http levels=1 keys_zone=httpcache:2048m;

server {
    listen 80;
    location / {
        proxy_cache         httpcache;
        proxy_cache_valid   1d;
        proxy_cache_key     $request_uri;
        proxy_pass          http://127.0.0.1:81;
    }
}

server {
    listen 81;
    location /  {
        gridfs mediadb field=filename type=string;
    }
}
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de



More information about the nginx mailing list