skip to main content

TAMU Webmaster's Blog


Information and insight from the A&M Webmasters

Varnish

September 15th, 2014 by Charlie Harris

We have been using Varnish to cache our WordPress sites (such as this one and Tamutimes) for several years now. We feel that it has worked really well for our needs, adding a bit more speed to our sites to help with higher traffic days.

Varnish is highly configurable and is transparent to its backend so it doesn’t require any code modification on your web servers. The way we have configured our installation is to use RAM as the cache for our static content which can serve out requests very quickly.  In addition, it saves on requests on the backend so those requests that do get sent to it get served out a bit quicker as well. All this makes for a snappier experience on the users’ end.

Another one of the great things about this setup is that we can also cache multiple sites on different machines. This means we can just put the necessary CNAMES on the varnish server and then point them to different machines as needed. The only thing required is a restart of the Varnish service to make the change. This helps a huge amount when we are migrating sites to new machines.

Overall we’ve been very happy with Varnish. For WordPress especially it has given us a little extra peace of mind that it can help out when there will be more traffic. I really encourage anyone to look into it if you run your own web servers and see if it could help you out.

Varnish Website

Varnish on Wikipedia

Monday, September 15th, 2014 Systems
Share this article

No comments yet.

Leave a comment

Categories

Archives