<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d29653863\x26blogName\x3dPro-SEO\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://pro-seo.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://pro-seo.blogspot.com/\x26vt\x3d5666858755316451389', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>
« Pro-SEO Home || Digg Ban IP Addresses If You Digg Your Friends Sto... » || How To Remove Your Competition From MSN Live » || The Death Of Adsense? » || It's Official, First Adsense Block On Page Pays Most » || How To Optimize Blogger Blogs For Adsense » || Digg Ban Users Who Criticize Digg » || Top 10 Ways To Get On The Digg Front Page - What W... » || The Secret To SEO Is Karma » || Does W3C Markup Validation Help With SEO? » || Google Add Blogs To Google Alerts »

Slashdot Goes Down


Slashdot Goes Down - database errorNot really SEO news as such, But an important lesson we should all learn. If a site like Slashdot can make these kinds of mistakes then we all can.

On the 8th November 2006 Slashdot failed due to a database error caused by the 16,777,215th comment made by an Ontario based musician. Looking at the post i can't see anything about it that would cause the database to crash. Well that's because it wasn't the content of the post, it was the fact it was the 16,777,215th comment.

The Slashdot database comment index is set as an unsigned mediumint in MySQL, which maxes out at 2^24, which puts the maximum size of the table at 16,777,216 rows. So after the 16,777,215th comment was made the Slashdot database said "no more!" and died.

Once Slashdot figured out what caused the database error fixing it was a simple, but lengthy process. The remedy was a simple ALTER TABLE MySQL statement, But on a table that is 16 million rows long it took over 3 hours to do it, In which time no posting was allowed.

So the lesson is, erm, i guess, Don't do things that will break your site. Or something like that.
| How To Remove Your Competition From MSN Live »
| The Death Of Adsense? »
| It's Official, First Adsense Block On Page Pays Most »
| How To Optimize Blogger Blogs For Adsense »
| Digg Ban Users Who Criticize Digg »
| Top 10 Ways To Get On The Digg Front Page - What W... »
| The Secret To SEO Is Karma »
| Does W3C Markup Validation Help With SEO? »
| Google Add Blogs To Google Alerts »

Posted by Anonymous Anonymous @ Sunday, 12 November, 2006

It's an easy error to make too. You'd think you'd be safe allowing that many comments when you first start out and obviously it was fine for quite some time.

I wonder if they knew this was going to happen or it took them by surprise. Once they realized they were going to need to alter the table there probably wasn't any good time they could without interupting service.  



Post a Comment