I have been interested in seeing how well my blog would do under heavy load. In the back of my mind I was worried about an article getting really popular and taking my blog down, so I decided to see how much load my server could take before it happened. Obviously being too popular is a good problem to have. This experiment was partly just to give myself fewer excuses to create awesome posts. In case you were interested in the same thing, here is what I did.
But please, use your own blog or website to experiment.:)
Select a load-testing tool
I wanted to survive a fairly heavy load, so I was looking for around three responses per second from the server (which amounts to about 10k requests served per hour.) Anything more and I guess I'll have to turn people away. ;)
I looked at some load-testing tools that were available for Ubuntu (my home machine), and siege seemed to be the easiest to install and use. Installing was as simple as:
sudo apt-get install siege
Siege comes with a man page and some basic examples. There are a lot of neat options, but I didn't want to spend too much time on load-testing. One of the best things about this tool is that it tells you that it's "preparing users for battle" and laying siege to the server, which is just fun.