<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div id="x_compose-container" itemscope="" itemtype="https://schema.org/EmailMessage" style="direction:ltr">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization"><span itemprop="name"></span></span>
<div>
<div>
<div style="direction:ltr">Okay cool, I'll give it a try</div>
<div><br>
</div>
<div style="direction:ltr">In our case we do not run http2 on the machines since haproxy runs in front as well (which doesn't support http2)</div>
<div><br>
</div>
<div style="direction:ltr">I'll also try enable a bit more verbose logging on one of the machines to see what the logs say</div>
<div><br>
</div>
<div style="direction:ltr">Thanks a lot Maxim!</div>
<div><br>
</div>
<div style="direction:ltr">Best regards,</div>
<div style="direction:ltr">Lucas Rolff</div>
</div>
<div><br>
</div>
<div class="x_acompli_signature">Get <a href="https://aka.ms/o0ukef">Outlook for iOS</a></div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> nginx <nginx-bounces@nginx.org> on behalf of Maxim Dounin <mdounin@mdounin.ru><br>
<b>Sent:</b> Thursday, September 14, 2017 6:55:57 PM<br>
<b>To:</b> nginx@nginx.org<br>
<b>Subject:</b> Re: nginx cache growing well above max_size threshold</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hello!<br>
<br>
On Thu, Sep 14, 2017 at 04:34:09PM +0000, Lucas Rolff wrote:<br>
<br>
> I have a minor question, so I have an nginx box using <br>
> proxy_cache, it has a key zone of 40 gigabyte (so it can cache <br>
> 320 million files), a max_size of 1500 gigabyte for the cache <br>
> and the inactive set to 30 days.<br>
> <br>
> However we experience that nginx goes well above the defined <br>
> limit - in our case the max size is 1500 gigabyte, but the cache <br>
> directory takes goes well above 1700 gigabyte.<br>
> <br>
> There's a total of 42.000.000 files currently on the system, <br>
> meaning the average filesize is about 43 kilobyte.<br>
> <br>
> Normally I know that nginx can go slightly above the limit, <br>
> until the cache manager purges the files, but it stays at about <br>
> 1700 gigabyte constantly unless we manually clear out the size.<br>
> <br>
> I see there's a change in 1.13.1 that ignores long locked cache <br>
> entries, is it possible that this bugfix actually fixes above <br>
> issue?<br>
> <br>
> Upgrading is rather time consuming and we have to ensure nginx <br>
> versions across the platform, so I wonder if anyone has some <br>
> pointers if the above bugfix would maybe solve our issue. <br>
> (currently the custom nginx version is based on nginx 1.10.3).<br>
<br>
<a href="https://trac.nginx.org/nginx/ticket/1163">https://trac.nginx.org/nginx/ticket/1163</a><br>
<br>
TL;DR:<br>
<br>
This behaviour indicate there is a problem somewhere, likely <br>
socket leaks or process crashes. Reports suggests it might be <br>
related to HTTP/2. The change in 1.13.1 don't fix the root cause, <br>
but will allow nginx to keep cache under max_size regardless of <br>
the problem.<br>
<br>
-- <br>
Maxim Dounin<br>
<a href="http://nginx.org/">http://nginx.org/</a><br>
_______________________________________________<br>
nginx mailing list<br>
nginx@nginx.org<br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div>
</span></font>
</body>
</html>