[Varnish] #1239: Problem with cleaning up "gone" bans
Varnish
varnish-bugs at varnish-cache.org
Mon Jan 7 12:28:57 CET 2013
#1239: Problem with cleaning up "gone" bans
----------------------+--------------------
Reporter: xani | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.3
Severity: normal | Resolution:
Keywords: |
----------------------+--------------------
Description changed by tfheen:
Old description:
> Our configuration looks like this:
> -Varnish serves application content via ESI
> -application server invalidates changed content
> -vast majority of invalidations are done by purge, small percentage by
> bans
> -on average we got < 1 ban/s
> -~10GB cache about 3/4 used, ~2 mil object.
>
> After 3 days we had >170k bans in "gone" state and only few hundred
> active, basically none of bans were removed from list
>
> ban config is:
> if (req.http.X-ban-regex) {
> ban("obj.http.x-hash ~ ^" + req.http.host + req.http.X
> -ban-regex + "$");
> error 200 "Banned";
> } else if (req.http.X-ban-single) {
> ban("obj.http.x-hash == " + req.http.host + req.http.X
> -ban-single);
> error 200 "Banned";
> }
> and then x-hash is set to right value.
New description:
Our configuration looks like this:
-Varnish serves application content via ESI
-application server invalidates changed content
-vast majority of invalidations are done by purge, small percentage by
bans
-on average we got < 1 ban/s
-~10GB cache about 3/4 used, ~2 mil object.
After 3 days we had >170k bans in "gone" state and only few hundred
active, basically none of bans were removed from list
ban config is:
{{{
if (req.http.X-ban-regex) {
ban("obj.http.x-hash ~ ^" + req.http.host + req.http.X
-ban-regex + "$");
error 200 "Banned";
} else if (req.http.X-ban-single) {
ban("obj.http.x-hash == " + req.http.host + req.http.X
-ban-single);
error 200 "Banned";
}
}}}
and then x-hash is set to right value.
--
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1239#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list