mysqlguy.net

OpenID login failed.

So you want to talk about Single points of failure, eh?

Submitted by jay on September 22, 2008 - 8:52am

In reply to Arjen's post about Single points of failure:


Arjen, you are absolutely right.  It doesn't matter how over-engineered a storage solution is (I'm thinking of a giant dual-headed Netapp with redundant everything).  After you've paid a few hundred K for that, you still have a single point of failure.  Is it a highly-unlikely point of failure?  Sure, but it's still a point of failure. 

Let's take it a step further, at Yahoo we're beyond thinking about how to make a single node redundant (be it for storage, networking, or even a simple webserver), we consider entire datacenters to be single points of failure.  What does that mean?  

That means no matter if you own the datacenter, or of someone else does, it can and will go down.  

That kind of dwarfs concerns about a single SAN solution, doesn't it?  But I really defy anyone to tell me that it isn't true.  We've all had colos go down, and there hasn't been a thing we can do about it to prevent it in the future.

So from an application and database perspective, it means redundancy and (at least) fast failover, if not automatic failover.  It means running hot/hot wherever possible (hot/cold tends to lead to failover sites that don't work).  It usually means dual-master for MySQL, but with single-writer (only one master is active at at ime) to maintain consistency.  

But even having two datacenters isn't enough if they are all in the Bay Area, a single earthquake could theoretically take them both out at the same time.  So, even geographical regions are a single point of failure for us, our redundant colos have to be spread apart quite a ways so the same natural disaster would be less likely to take out both of them at once.  

That policy eliminates the ability (usually) to try to do any kind of synchronous data replicating to both locations at the same time, so a good data retention policy is in order.  If you lose a datacenter, when do you failover?  If you cut over to your secondary master immediately, you risk losing the down master's unreplicated data because of consistency concerns.  If you wait you are trading downtime for potential data loss:  if that master comes back up and starts replicating, you have a chance to not lose anything.  

All the new whiz-bang "high availability" cluster solutions out there are great, but they assume big pipes between their nodes with low latency.  If you're honest with yourself, they may solve some of your problems, but they can't protect you from data-loss in the event of a colo failure (or, admittedly very unlikely:  complete colo destruction).  

That's where "high-availability" really gets interesting.  

Trackback URL for this post:

http://mysqlguy.net/trackback/25

Yeah.. even Earth is a single

Yeah.. even Earth is a single point of failure. There is no failover if we get hit by a asteroid. Let's start building data-centers on the moon or in Mars!

jay's picture

Wasn't Google working on

Wasn't Google working on that? :)

What about U.S.? Can we

What about U.S.? Can we consider the U.S. is a "single point"? What can you do if the whole U.S. fail?

jay's picture

Obviously you have to draw

Obviously you have to draw the line somewhere.  The least likely scenario that we decided to consider was the natural disaster that would destroy a single geographical region.  


Much like the moon example above, if the whole earth, or if the whole U.S. failed, I'm taking the day off.  

As much as this may seem like

As much as this may seem like a silly rat-hole, it's actually really important to bring up to your higher-ups when they start talking about uptime.  For example, during the September 11th attacks, Turner Broadcasting Systems was running at half capacity (due to an upgrade in progress), and diverted all its resources from all properties to 2:  CNN and Cartoon Network.  It was completely forgiveable for other websites that Turner Broadcasting owned to be down, but they wanted to keep CNN online (for news) and Cartoon Network online (for kids that were home from school).

So the real question is, when talking about high availability, what are the acceptable risks?  When your higher-ups say "none", ask them if a disastrous earthquake is a good reason for being down.  Take them down this rat-hole and figure out WHERE the points of failure are, because they exist.  Most companies have a very low "forgiveable" downtime point -- a natural disaster in the area is usually enough (tornado, ice storm, whatever).

And of course when choosing a data center you probably don't want to choose one in an area known for natural disasters.....

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

Warning!

Comment abuse is not tolerated on this site, besides all the comments are moderated, so don't bother posting comments that are not on topic, only for increasing the SEO of your site, or are outright spam.  If you've got something intelligent to contribute, by all means, post a link to your blog.  

MySQL

Yahoo

Recent comments

About Me

Jay Janssen
Yahoo!, Inc.
jayj at yahoo dash inc dot com

MySQL
High Availability
Global Load Balancing
Failover

View Jay Janssen's LinkedIn profileView Jay Janssen's Facebook profile

User login

Friends

Links