Install and configure Varnish (3.0.1) cache with WordPress


A few days ago I promised I’d go through what  I did when setting up varnish with wordpress, its been slightly delay  but here goes. The blog I used it on was Script and Scroll. I’ve ran the Apache benchmark tool against the site, only one URL but made 1Million requests to it and it held up quite well. The requests were completed in about 5 minutes, I may post the results in a later entry…

So, on the day that alarm bells went off form traffic spike, I just install varnish and cached everything and anything that I could… Obviously this isn’t ideal in most cases but I had very little time to spend on this. So method one below is the “naive” approach I’d say, but it works and works fairly well. Method two is my current configuration which is based on a post Donncha O Caoim did. I had to tweak a few things because I am using the latest version of varnish some of the configuration options he used changed in version 3 of varnish.

Read more of this post

Setting up a multi-node Cassandra cluster on a single Windows machine


In Windows explorer, go to “C:\Windows\System32\drivers\etc”
Copy the file called “hosts” to your desktop ( or any editable location)
Open the hosts file from the desktop and add the following to the end of the file:

#cassandra nodes
127.0.0.1               127.0.0.2
127.0.0.1               127.0.0.3
127.0.0.1               127.0.0.4
127.0.0.1               127.0.0.5
127.0.0.1               127.0.0.6

Read more of this post

Follow

Get every new post delivered to your Inbox.

Join 346 other followers

%d bloggers like this: