Welcome! Log In Create A New Profile

Advanced

Re: Proxy cache max size

Maxim Dounin
July 02, 2012 05:06AM
Hello!

On Mon, Jul 02, 2012 at 02:56:47AM +1000, SplitIce wrote:

> I came up with a crude solution, proxy_max_temp_file_size. By limiting the
> max size in cached paths to 50mb I should make it impossible for someone to
> store GBs of data to the disk before the cache manager runs.

No, the proxy_max_temp_file_size directive is ignored if cache is
used. This is for reason, as common use case is to disable disk
buffering with "proxy_max_temp_file_size 0;", but have cache
switched on for some requests.

Maxim Dounin

>
>
>
> On Sun, Jul 1, 2012 at 2:11 AM, Brian Akins <brian@akins.org> wrote:
>
> >
> > On Jun 30, 2012, at 3:20 AM, SplitIce wrote:
> >
> > > Hmm this presents a rather large issue for me.
> > >
> > > Is it possible to get the upstream response size in lua and set a
> > variable to influence proxy_no_cache? If it is ill learn lua.
> >
> > By the time Lua gets involved, the response has already been cached (or
> > not).
> >
> > You could do your own cache instead of proxy_cache, of course. I have
> > some things that store the "cache" in redis, for example. Could be
> > memcache, custom cache, etc.
> >
> > --Brian
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> >

> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy cache max size

splitice June 29, 2012 09:30AM

Re: Proxy cache max size

Maxim Dounin June 29, 2012 09:56AM

Re: Proxy cache max size

splitice June 30, 2012 03:22AM

Re: Proxy cache max size

Brian Akins June 30, 2012 12:12PM

Re: Proxy cache max size

splitice July 01, 2012 12:58PM

Re: Proxy cache max size

Maxim Dounin July 02, 2012 05:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 283
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready