Welcome! Log In Create A New Profile

Advanced

Re: nginx cache loader process

Maxim Dounin
July 10, 2013 07:54AM
Hello!

On Tue, Jul 09, 2013 at 07:50:32PM -0400, badtzhou wrote:

> We are running nginx 1.2.9. What will happen if cache loader is running. The
> file on disk haven't been loaded into the cache zone yet and someone try to
> access the same file. Will it cause any issue? How will it affect cache
> loader process.

If the cache isn't yet loaded, nginx will try to check if a cache
file is there by a looking into disk directly from a worker
process. That is, it will work without problems and will use
cached responses, but will be slightly less effective.

> If I don't want any file on the disk to be loaded, can I simply kill the
> cache loader process? Will that cause any problem?

It's not a good idea. In a worst case, if you'll kill it with
kill -9 at a wrong time, shared memory zone will be corrupted,
resulting in completely non-working nginx.

If cache loader causes too high load on your server, may want to
tune it's settings to make it less aggressive. See
http://nginx.org/r/proxy_cache_path for details.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx cache loader process

badtzhou July 03, 2013 08:57PM

Re: nginx cache loader process

nginxorg July 04, 2013 01:44AM

Re: nginx cache loader process

Igor Sysoev July 04, 2013 04:36AM

Re: nginx cache loader process

badtzhou July 09, 2013 07:50PM

Re: nginx cache loader process

Vil Surkin July 09, 2013 07:56PM

Re: nginx cache loader process

Maxim Dounin July 10, 2013 07:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready