Ban strategy

Lyle Mantooth lyle.mantooth at primasupply.com
Thu Jun 18 22:27:40 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello list,

I've noticed that Varnish tends to use more and more CPU as time goes
on, and everything I've read points to a large ban list being
responsible. That sounds reasonable, but I don't think our ban list is
particularly large, even at the busiest of times. On the other hand,
it's hardly ever empty because our content team is constantly making
changes throughout our catalog.

So I come to you, Varnish experts, to see if there's a better way to
construct our ban regexes. Currently, our CMS collects the URLs that a
product might appear on and bans them all at once like so:

```
ban obj.http.x-url ~
^/node/123$|^/product/title$|^/category/77$|^/catalog/title$
ban obj.http.x-url ~
^/node/124$|^/product/other$|^/category/77$|^/catalog/title$
```

It is often the case that several products in a category will be
updated more or less together, so the category pages would be matched
by several bans in the list. Which is easier on the ban lurker:
combined bans like this or more, but simpler, bans that are easier to
match? Even when that would mean more duplicate bans to be issued for
category pages?

- -- 
- --Lyle Mantooth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQGcBAEBCgAGBQJVgym4AAoJEG21Lq4SOleJafAL/2P9FVzBGnneWp2P7GqXOiFV
sF8e+NZHGni/OHvG761PR50UhxNhlxALkdVJVX/6clengUtQ5pf8BLozJNpP7Jjt
qvujx2DpNbLR5ecRuzAcbIdkavAOq2l5Y2wh+1qjlusuf2ofVvPs3Zt/BHQuXsL1
EHvE1h5gxsyJAcOsbPlRkdb1SAz6PV36wH1toHMk9XXubzXR5W94yzGjLf64fZZ4
IkowCP2+og1asSJSdFEQ5lSyDfI9//QRbibQ2MsTP5t8PsFgQRcw0v3eyTOBDGz6
TCQPbbSRZ0MQsFwDV64yipGtktKQUSsA/lKSAyZDc8XqSRV/Sts1aq+B88wVdy12
+MWJLk4yCn6qvqX+9b7shqYmrMJ42wFHiEg2kfkMS/pIk9ooTDK8+Mi9Gq7AZRKD
iIwQJk55kXKjfArdsKKZIul3MFpLxmKj43UpZq9n8NJ6IxMXUpGrAKiuWbsy4zYG
CJJaENNjTWi+Y9MG4GwtySzzl7KFkKmSeoo1aC7CmA==
=HnFb
-----END PGP SIGNATURE-----



More information about the varnish-misc mailing list