[PATCH] Upstream: add use_temp_path=tmp to proxy_cache_path and friends

Maxim Dounin mdounin at mdounin.ru
Tue Jan 13 13:00:08 UTC 2015


Hello!

On Mon, Jan 12, 2015 at 03:47:27PM -0800, Piotr Sikora wrote:

> Hey Maxim,
> 
> > The downside of this approach is that with a separate temp
> > directory cache can't be effectively spread over multiple file
> > systems.
> 
> I disagree, we've been using exactly this structure to spread cache
> over multiple file systems (via multiple cache paths, each with its
> own "tmp") for the last 2 years.

The idea was to allow a _single_ cache to be on multiple file 
systems (e.g., via symlinking individual directories from 
different disks).  On the other hand, may be your approach is 
simplier and worth considering (especially given the fact that in 
most cases separate cache path will be required anyway, to 
maintain max_size, and we have variables support now to facilitate 
this).  Valentin is currently working on fixing the code, and I 
asked him to consider your approach as well.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list