[Varnish] #1239: Problem with cleaning up "gone" bans

Varnish varnish-bugs at varnish-cache.org
Wed Dec 19 16:09:16 CET 2012


#1239: Problem with cleaning up "gone" bans
-------------------+----------------------
 Reporter:  xani   |       Type:  defect
   Status:  new    |   Priority:  normal
Milestone:         |  Component:  varnishd
  Version:  3.0.3  |   Severity:  normal
 Keywords:         |
-------------------+----------------------
 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>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list