srcache + mogilefs module

agentzh agentzh at gmail.com
Mon Apr 23 03:41:17 UTC 2012


On Sun, Apr 22, 2012 at 2:14 PM, haad <nginx-forum at nginx.us> wrote:
>
> So if I configure location with /mogstored and sets srcache_store there
> it should be working ?
>
> location ~ /mogstored_ {
>   srcache_store PUT /memc
> }
>

No, the /mogstored_spare_34991976/ location is automatically generated
by ngx_mogilefs. I'm not sure if it helps by putting your
srcache_store configuration into the "anonymous" location block under
the mogilefs_pass directive, i.e.,

           mogilefs_pass {
               proxy_pass $mogilefs_path;
               proxy_hide_header Content-Type;
               proxy_buffering off;
               srcache_store PUT /memc;
           }

But you can try it out anyway.

>> AFAIK, the ngx_eval module also does something
>> similar here (i.e.,
>> creating nested locations automatically).
>
> I'm not sure what you mean by this :) are you suggesting that
> I should use it ?
>

No.

I was just talking about the similarity in their implementations.

Regards,
-agentzh



More information about the nginx mailing list