SlowFS Cache or Proxy_Cache for GridFS

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


> 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 

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;

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!

More information about the nginx mailing list