Re: Inner workings of nginx cache manager

2018-11-30 Thread Stefan Safar
Hi! So the cache loader only does something like stat() during the filesystem walk, which should be fairly fast, unless you have tens/hundreds of millions of files in cache. Thanks again! Stefan On Fri, Nov 30, 2018 at 1:58 PM Maxim Dounin wrote: > Hello! > > On Fri, Nov 30, 2018 at 01:26:27P

Re: Inner workings of nginx cache manager

2018-11-30 Thread Maxim Dounin
Hello! On Fri, Nov 30, 2018 at 01:26:27PM +0100, Stefan Safar wrote: > So the process/thread that scans through the files on disk need to read the > all the file headers to find the KEY for the all cache files to keep the > information in memory before it starts deleting anything, is that correct

Re: Inner workings of nginx cache manager

2018-11-30 Thread Stefan Safar
Hi Maxim, thanks a lot for the clarification! So the process/thread that scans through the files on disk need to read the all the file headers to find the KEY for the all cache files to keep the information in memory before it starts deleting anything, is that correct? It would be great if I cou

Re: Inner workings of nginx cache manager

2018-11-29 Thread Maxim Dounin
Hello! On Thu, Nov 29, 2018 at 03:23:51PM +0100, Stefan Safar wrote: > Hi there, > > I'd like to know a little bit more about the inner workings of the cache > manager. I looked through the code, and if I understand it correctly, when > it runs out of disk space specified by max_size, it tries t

Inner workings of nginx cache manager

2018-11-29 Thread Stefan Safar
Hi there, I'd like to know a little bit more about the inner workings of the cache manager. I looked through the code, and if I understand it correctly, when it runs out of disk space specified by max_size, it tries to run the cache manager, which looks at a queue of last-accessed URLs and tries t