Welcome! Log In Create A New Profile

Advanced

Re: Files still on disc after inactive time

Maxim Dounin
February 15, 2018 08:40AM
Hello!

On Thu, Feb 15, 2018 at 04:33:19AM -0500, Andrzej Walas wrote:

> Hi,
>
> I use nginx 1.12.2. I have settings like this:
> proxy_cache_path /ephemeral/nginx/cache levels=1:2
> keys_zone=proxy-cache:4000m max_size=40g inactive=1d;
> proxy_temp_path /ephemeral/nginx/tmp;
>
> And I have two problems with this:
> 1. If during the download to the cache the connection is disconnected, the
> files that are not completely downloaded are left as junk in tmp and block
> the re-download to the cache of the given file.

If you are able to reproduce this, please provide a debug log. See
http://nginx.org/en/docs/debugging_log.html for details.

> 2. Often, there are individual files that remain in the cache despite being
> inactive for more than one day. Restart nginx does not help.

Restart implies that all files in the cache become active. Please
make sure to wait for at least "inactive=" time after a restart.

Also, please make sure that there are no alerts in logs (notably,
no processes crashes). It might be also a good idea to test
without 3rd party modules if there are any.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Files still on disc after inactive time

Andrzej Walas February 15, 2018 04:33AM

Re: Files still on disc after inactive time

Maxim Dounin February 15, 2018 08:40AM

Re: Files still on disc after inactive time

Andrzej Walas February 15, 2018 08:48AM

Re: Files still on disc after inactive time

Maxim Dounin February 15, 2018 09:40AM

Re: Files still on disc after inactive time

Andrzej Walas February 16, 2018 03:16AM

Re: Files still on disc after inactive time

pbooth February 16, 2018 04:28AM

Re: Files still on disc after inactive time

Andrzej Walas February 16, 2018 04:39AM

Re: Files still on disc after inactive time

Richard Stanway via nginx February 16, 2018 05:38AM

Re: Files still on disc after inactive time

Andrzej Walas February 16, 2018 06:15AM

Re: Files still on disc after inactive time

Maxim Dounin February 16, 2018 06:46AM

Re: Files still on disc after inactive time

Andrzej Walas February 19, 2018 04:38AM

Re: Files still on disc after inactive time

Maxim Dounin February 19, 2018 07:46AM

Re: Files still on disc after inactive time

Andrzej Walas February 26, 2018 03:32AM

Re: Files still on disc after inactive time

Andrzej Walas February 28, 2018 05:22AM

Re: Files still on disc after inactive time

Maxim Dounin February 28, 2018 08:44AM

Re: Files still on disc after inactive time

Grzegorz Ćwikliński March 21, 2018 05:52AM

Re: Files still on disc after inactive time

Maxim Dounin March 21, 2018 11:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
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