Re: Scaling nginx caching storage

2017-09-24 Thread Amir Keshavarz
> > What I'd suggest instead is setup a load balancer with URI hashing > in front of it, so the cache hit ratio is as high as possible without > multiple layers caching the same object. We can also combine LB and cache nodes in one machine as explained in nginx blog and that could be very efficie

Re: Scaling nginx caching storage

2017-09-23 Thread Amir Keshavarz
> between multiple servers, and it just adds a lot of complexity to minimize > the cost and then it might turn out you actually do not save anything > anyway. > > > > Best Regards, > > Lucas > > > > *From: *nginx on behalf of Amir Keshavarz < > am

Re: Scaling nginx caching storage

2017-09-23 Thread Amir Keshavarz
set the > keys_zone size to be big enough to contain the amount of files you wanna > manage (you can store about 8000 files per 1 megabyte). > > > > > > > > *From: *nginx on behalf of Amir Keshavarz < > amirk...@gmail.com> > *Reply-To: *"nginx@nginx.

Scaling nginx caching storage

2017-09-23 Thread Amir Keshavarz
Hello, Since nginx stores some cache metadata in memory , is there any way to share a cache directory between two nginx instances ? If it can't be done what do you think is the best way to go when we need to scale the nginx caching storage ? Thanks ___