I wrote a little article on reducing CPU usage in my varnish cache that some may find useful:

http://blog.darkmere.gen.nz/2012/12/speeding-up-varnish-cache/

The TLDR is that my vcl_recv was poorly structured and every request went though around 32 "if" statements (some with huge regex matches). I was seeing my CPU maxed out at just 4-5000 hits/second. I restructured vcl_recv to reduce the average amount number of tests on each request and halved the CPU used.

--
Simon Lyall  |  Very Busy  |  Web: http://www.darkmere.gen.nz/
"To stay awake all night adds a day to your life" - Stilgar | eMT.


_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to