<div dir="ltr"><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">Hi,</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">We use Varnish 4.0.3 for out website and serve a lot of pages with semi-unlimited (i.e. 1 year) TTL. When content gets changed, we ban te cache objects through special http headers. Please note that there can be 250.000+ new bans per day.</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">Our problem is that page load times turn out to be slower and slower the longer Varnish runs. When checking with "varnishstat -1" it seems that band never get deleted. MAIN.bans_deleted is always 0.</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">When i login to varnishadm and type the ban.list command I see a long list of bans with status "C". Varnishstat learns me that there can be hundreds of thousands of these bans with C status active. I don't have a clue what this C means, I can't find it anywhere in the documentation.</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">---</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">Here are the important part from our VCL:</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">sub vcl_recv {</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">if (req.method == "BAN") {<br>if (!client.ip ~ purgers) {<br>return (synth(405, "Not allowed"));<br>}</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">if (req.http.X-Cache-Tags) {<br>ban("obj.http.X-Cache-Tags ~ " + req.http.X-Cache-Tags);<br>return (synth(200, "Banned"));<br>}</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">if (req.http.X-Url) {<br>ban("obj.http.x-origurl ~ " + req.http.X-Url);<br>return (synth(200, "Banned"));<br>}</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">return (synth(405, "No cache tags provided"));<br>}</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">...<br>}</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">sub vcl_backend_response {<br>set beresp.http.x-origurl = bereq.url;<br>...<br>}</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">---</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">Here's an example of the ban.list output from varnishadm:</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">1428440119.975700 20 C<br>1428440119.875178 21 C<br>1428440119.775048 0 C<br>1428440119.675068 1 C<br>1428440119.575059 0 C<br>1428440119.474236 0 C<br>1428440119.374664 1 C<br>1428440119.275055 0 C<br>1428440119.173203 1 C<br>1428440119.070568 1 C<br>1428440118.968622 0 C<br>1428440118.867101 0 C<br>1428440118.767099 2 C<br>1428440118.665274 3 C<br>1428440118.565995 2 C<br>1428440118.463959 4 C<br>1428440118.360379 3 C<br>1428440118.259975 4 C<br>1428440118.157665 4 C<br>1428440118.054391 8 C<br>1428440117.953973 3 C<br>1428440117.851816 16 C<br>1428440117.749820 7 C<br>1428440117.647959 8 C<br>1428440117.546431 2 C<br>1428440117.446593 2 C<br>1428440117.345096 1 C<br>1428440117.245096 0 C<br>1428440117.143993 0 C<br>1428440117.!</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">---</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">Here are my two questions:</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">1) What does this C status mean?</p><p style="margin:0px 10px 1.5em 0px;font-family:'Open Sans',sans-serif;font-size:12px;line-height:18px">2) Why aren't bans ever deleted?</p></div>