Pingdom Home

US + international: +1-212-796-6890

SE + international: +46-21-480-0920

Business hours 3 am-11:30 am EST (Mon-Fri).

Pingdom Blog

Royal Pingdom

Ramblings from the Pingdom team about the Internet and web tech

RSS Feed

How to make sure your blog survives the Digg Effect

On January 20, our article Where NOT to keep your servers according to Mother Nature hit the number one spot on the front page of Digg.

Pingdom article on Digg

Looking at the bandwidth graph below, you can clearly see the traffic spike when we hit the first page of Digg. Or perhaps we should say when Digg hit us:)

Traffic spike from Digg front page.

The traffic from the Digg front page (or Slashdot’s front page, for that matter) has been known to bring down entire sites. Fortunately we had taken some simple measures to make sure that we could survive a large traffic spike such as this. It’s not rocket science but we decided it might be worthwhile sharing what we did.

So, how do you make sure that your blog survives a really big spike in the number of visitors? There are basically two things to think about: Server load and bandwidth.

Reducing server load
Wordpress, our blogging software, makes heavy use of PHP and MySQL, which can easily bring a server to its knees during the kind of traffic spike that Digg brings in. To get around this bottleneck we have installed a caching system for WordPress called WP-Cache 2.0, which works extremely well and can effectively speed up page delivery by a factor of 100 or more.

From the WP-Cache page:

WP-Cache is an extremely efficient WordPress page caching system to make your site much faster and responsive. It works by caching Worpress pages and storing them in a static file for serving future requests directly from the file rather than loading and compiling the whole PHP code and then building the page from the database.

We also further reduced the load on the server by temporarily disabling a statistics program we are using.

Before we turned the caching on, MySQL was taking a heavy toll on our server (see “top” command below). Once we activated caching, the MySQL load almost disappeared entirely and the Digg effect was not a problem.

Top command during Digg effect.

Reducing bandwidth demands
Most of our images are hosted on Flickr, which reduces the bandwidth needed to serve pages from the blog (thank you, Flickr). This is a very simple solution but works extremely well, especially if you have a blog that makes heavy use of images.

Always have a Plan B
If all else failed we also had a static page with just the article text prepared. If the load on the server became too high we would have switched over to use this, basically replacing the WordPress blog entirely with one single HTML page containing the article. This would have made the rest of the content unavailable, so it should really only be used as a last resort. Thankfully enough it never came to this, as the caching system we had in place worked great and kept the load on the server to a reasonable level.

All in all, ending up as number one on the Digg front page was an unequivocally positive experience. We had no server or bandwidth problems thanks to the simple but effective setup we had put in place, and though perhaps not suitable to everyone, we hope that this advice can help at least some of the other bloggers out there.

Want to test your site every minute?








You will get an email with your login information.

Pingdom Podcast #6

Pingdom’s Podcast is a weekly show about Internet, web, security, and mobile stuff.

In this show, Saleh also gives us an update on the pending approval of his Carbon for Windows Phone Twitter client. We also talked about Nokia’s recent financial results, if Google Chrome can hit more than 50% market share this year, and the recent privacy-blunder by the guys behind the Path mobile app.

Read more

There’s no denying that Google Chrome continues to be the darling of the web browser market. And as we predicted in July last year, Chrome overtook Firefox around November 2011.

So now the question is, when will Google also wrestle down Internet Explorer, and become the undisputed king of the browser world? In December 2011, Chrome 15 became the most popular browser in the world, beating Internet Explorer 8, but if you combine all IE versions, Microsoft still holds the number 1 spot.

Equipped with the latest web browser statistics from StatCounter, we set out to see when Chrome is likely to achieve more than 50% market share.

Read more

Up or not? Keep track of your favorite US sports websites

Want to see how your favorite US sports site is doing, if it has a perfect 100% uptime score or not? If you want to check the latest scores and it isn’t working, could it be a problem with your computer or connection, or the site? We’ve got the solution for you!

For some time now we’ve been monitoring 34 major US sports and news sites related to sports. Our recent articles on the Super Bowl are a result of that monitoring.

Now you can look at how these sites are doing yourself on the public reports page for this list of US sports websites.

Read more

Google Maps turns 7 years old – amazing facts and figures

Who has not used Google Maps? Raise your hand! Since the launch 7 years ago, Google Maps has become the de facto map service that users around the world go to for all their mapping needs.

As we say Happy Birthday to Google Maps, read on to find out some of the critical milestones in its history, and some amazing numbers and statistics.

Read more

In 2010, there were just over 1 million secure Internet websites worldwide. Almost half of those, or 446,992 to be exact, were located in the United States.

But in which country can we find the most secure websites in relation to population? The answer may surprise you.

Read more