Re: nginx cache mounted on tmpf getting fulled

2017-02-19 Thread Peter Booth
Just to be pedantic. It’s counterintuitive but, in general, tmpfs is not faster than local storage, for the use case of caching static content for web servers. Sounds weird? Here’s why: tmpfs is a file system view of all of the system’s virtual memory - that is both physical memory and swap sp

Re: nginx cache mounted on tmpf getting fulled

2017-01-24 Thread omkar_jadhav_20
omkar_jadhav_20 Wrote: --- > Hi, > > We have used tmpfs to mount frequently used media application cache > serving. We have also mounted rest applications on disk where we are > facing similar issues of max_size being breached . Please find below

Re: nginx cache mounted on tmpf getting fulled

2017-01-24 Thread omkar_jadhav_20
Hi, We have used tmpfs to mount frequently used media application cache serving. We have also mounted rest applications on disk where we are facing similar issues of max_size being breached . Please find below details for your reference : # du -sh /cache/* 245G/cache/12007 161G/cache/1215

Re: nginx cache mounted on tmpf getting fulled

2017-01-16 Thread steve
Hi, On 01/17/2017 02:37 PM, Peter Booth wrote: I'm curious, why are you using tmpfs for your cache store? With fast local storage bring so cheap, why don't you devote a few TB to your cache? When I look at the techempower benchmarks I see that openresty (an nginx build that comes with lots o

Re: nginx cache mounted on tmpf getting fulled

2017-01-16 Thread Peter Booth
I'm curious, why are you using tmpfs for your cache store? With fast local storage bring so cheap, why don't you devote a few TB to your cache? When I look at the techempower benchmarks I see that openresty (an nginx build that comes with lots of lua value add) can serve 440,000 JSON responses p

Re: nginx cache mounted on tmpf getting fulled

2017-01-16 Thread Igor A. Ippolitov
Hello, Your cache have 200m space for keys. This is around 1.6M items, isn't it? How much files do you have in your cache? May we have a look at `df -i ` and `du -s /cache/123` output, please? On 06.01.2017 08:40, omkar_jadhav_20 wrote: Hi, I am using nginx as webserver with nginx version: ngi

Re: nginx cache mounted on tmpf getting fulled

2017-01-15 Thread omkar_jadhav_20
can someone please respond and suggest best way to manage cache in highly utilized cache dependent environment. As number of nginx requests increases and cache hit ratio becomes significant , the tmpfs crosses the max_size limit mentioned in the nginx.conf file and use full cache mounted . This in

Re: nginx cache mounted on tmpf getting fulled

2017-01-09 Thread omkar_jadhav_20
Yes I do have RAM of size : 1.5T and swap space of around 200G. It has been observed that swap is not getting used in this case. But it seems either OS is not clearing the RAM that fast or nginx is not able to control RAM as mentioned in the nginx configuration file. Could you please suggest what

Re: nginx cache mounted on tmpf getting fulled

2017-01-09 Thread Matthew Slowe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 06/01/2017 05:40, omkar_jadhav_20 wrote: > Hi, > > I am using nginx as webserver with nginx version: nginx/1.10.2. For > faster access we have mounted cache of nginx of different > application on RAM.But even after giving enough buffer of size ,

nginx cache mounted on tmpf getting fulled

2017-01-05 Thread omkar_jadhav_20
Hi, I am using nginx as webserver with nginx version: nginx/1.10.2. For faster access we have mounted cache of nginx of different application on RAM.But even after giving enough buffer of size , now and then cache is getting filled , below are few details of files for your reference : maximum size