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

AW: Scaling nginx caching storage

2017-09-24 Thread Lukas Tribus
> After some researching i've decided to go with individual nginx > nodes for now . If we encounter too much request to our > upstream, i'm gonna set up the multi layer architecture you > mentioned probably While multi layers of nginx cache may help with bandwidth, it wastes huge amount of storage

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 Lucas Rolff
ly-To: "nginx@nginx.org" Date: Saturday, 23 September 2017 at 11.48 To: "nginx@nginx.org" Subject: Re: Scaling nginx caching storage Sorry for the confusion . My problem is that i need to cache items as much as possible so even if one node had the storage capacity to satisfy my

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.

Re: Scaling nginx caching storage

2017-09-23 Thread Lucas Rolff
, just 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 Reply-To: "nginx@nginx.org" Date: Saturday, 23 September 2017 at 10.58 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 ___