What Wrong with Facebook

What Wrong With Facebook - Early today Facebook was down or unreachable for a lot of you for around 2.5 hours. This is the worst interruption we've had in over 4 years, as well as we intended to firstly apologize for it. We likewise wanted to offer much more technical information on what happened as well as share one large lesson found out.

What's Wrong With Facebook

What Wrong With Facebook


The key imperfection that triggered this outage to be so severe was a regrettable handling of a mistake condition. An automated system for confirming setup values ended up triggering much more damage than it taken care of.

The intent of the computerized system is to check for configuration worths that are void in the cache and also change them with upgraded values from the relentless store. This functions well for a short-term problem with the cache, however it does not work when the persistent shop is invalid.

Today we made a change to the persistent copy of an arrangement value that was taken invalid. This suggested that every single customer saw the void worth as well as tried to fix it. Since the fix includes making a query to a cluster of databases, that cluster was promptly overwhelmed by numerous thousands of inquiries a 2nd.

To make matters worse, every single time a client obtained a mistake attempting to query among the data sources it translated it as an invalid worth, as well as removed the corresponding cache secret. This indicated that also after the initial problem had actually been repaired, the stream of inquiries continued. As long as the databases failed to service several of the requests, they were causing much more requests to themselves. We had actually entered a comments loop that didn't allow the databases to recuperate.

The means to stop the comments cycle was quite painful - we had to quit all web traffic to this data source cluster, which suggested switching off the site. As soon as the data sources had recuperated as well as the root cause had actually been dealt with, we slowly enabled more people back onto the site.

This obtained the site back up and also running today, and for now we have actually turned off the system that attempts to fix configuration worths. We're discovering new styles for this setup system adhering to design patterns of other systems at Facebook that deal even more gracefully with responses loops as well as transient spikes.

We say sorry once again for the site outage, as well as we desire you to know that we take the efficiency and also dependability of Facebook extremely seriously.