Reducing CPU usage
Simon Lyall
simon at darkmere.gen.nz
Sat Dec 15 11:25:41 CET 2012
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.
More information about the varnish-misc
mailing list