SlowFS Cache or Proxy_Cache for GridFS

Hello,

checking SlowFS looks like a good solution for caching Files/Images
stored by GridFS (MongoDB). But my config saves no file in my
“fastcache” dir:

location / {
gridfs test field=filename type=string;
slowfs_cache fastcache;
slowfs_cache_key $uri;
slowfs_cache_valid 1d;
}

Any ideas how to cache Files stored in GridFS? Perhaps Proxy_Cache can
Store the files localy? Any Ideas are welcome.

Thanks for your help.

Elena

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

On 2/21/11 11:56 AM, “Elena Z.” [email protected] wrote:

Any ideas how to cache Files stored in GridFS? Perhaps Proxy_Cache can Store
the files localy? Any Ideas are welcome.

Neither will work. Slowfs actually uses file system calls for the
“read”
part of the cache. GridFS does not use the upstream, if it did then it’d
be
easy to hack a cache. You could use memcache and srcache.


Brian A.

Hi,

On 21/02/2011 18:56, Elena Z. wrote:

Any ideas how to cache Files stored in GridFS? Perhaps Proxy_Cache can Store the
files localy? Any Ideas are welcome.
If you are at all concerned about performance, you might want to think
about an alternative to using the gridfs module for Nginx. 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.