Varnish >= 2.1 ever increasing high CPU over time workaround
At Yedda, we use Varnish (a superb piece of software) for load balancing and caching.
We recently upgraded to 2.1.2 (the latest version at the time of writing this post) and started to notice that the CPU usage of the machine running Varnish kept on increasing from day to day. The only way to resolve it was to restart the service.
After discussing the issue on the Varnish IRC channel and with the help of Poul-Henning Kamp (phk), Varnish’s architect and developer and others at the #varnish IRC channel, we were suggested to use the old classic hashing by adding the “-h classic” argument.
So far, it seems to have resolved the issue.
According to phk, this may not actually a bug, but an issue with certain usage patterns and the new hashing algorithm, critbit, that was first introduced in 2.1.

Feed (RSS)