For cases like this where the damage is so large, there are likely engineers constantly on site that monitor the system and can intervene when necessary. But as this was a global outage it is likely this was not about a broken server, but rather a software problem. That means likely people didn't have to go anywhere. The fact that they managed to fix it quickly also means no one can have moved very far.
Running a data center is more like running a power plant. You constantly have people checking things and going over mildly weird measurements that could indicate the next problem. Most problems are likely caught before they do any damage.
I'm not an SRE, but I AM a developer. Some examples of software issues that can cause this problem...
Deployment of an application update got broken
Server Discovery service got broken (this is a server that redirects incoming requests to backups of the requested object)
weird edge case condition
Database problem
The list can go on, too. With cloud computing where it is at these days, 9 times out of 10, any downtime that a major company has is probably a software issue, and not a hardware issue. There would have to be some serious problem if the actual data center has a meltdown like that.
I dont think software with no changes made can randomly break
Also, you are sooooo very wrong here haha. There are maaany issues that have arose due to weird scenarios that just could not have been tested for. Date/time issues are the most common, but general database issues come up too.
The system that authenticates whether your user/password is valid and shares your login with other systems (such as websites where you logged in thru google) had an issue where their server or database ran out of space and couldn't store any more data.
It can be hardware quite often. It's pretty much impossible to test large scale network partitions and power outages for cloud providers. Some things just don't show up until you reboot 100,000 servers in a few seconds.
It certainly can. An unexpected input may trigger a problem that was so far unknown. Most attacks on systems are based on triggering unknown bugs in ways that have consequences intended by the attacker.
The theory that they changed something is also likely. Software is constantly changing.
Problems where a system goes down globally are often also caused by cascading failures. For some reason a service stops working partially, e.g. because a datacenter has problems and disappears. I had this happen in the past because a ship had thrown an anchor into the pacific ocean and hit a fiber cable.
In such a case load balancers will detect the problem and reroute traffic. That will increase the load on the remaining locations. If the system is not designed carefully this can escalate quickly. The new traffic can overload another location, which may be slow to respond or go down entirely making load balancers shift traffic away from it to the other remaining instances, increasing traffic there again. This spirals into all replicas going into overload. This doesn't even require global traffic to exceed capacity, it can just happen because traffic bounced forth and back between data centers.
As soon as everything is overloaded it is hard to restart, as any replica recovering will instantly get all traffic and die again. The only choice now is dropping all traffic and waiting for things to recover. We call this blackholing. You cut off all users and directly serve an error page. Then traffic can start again slowly, most incoming request will still need to be denied. You can see this behavior in the recent YouTube outages. When the service starts to recover it doesn't just turn on. Engineers are letting a small amount of traffic back to the restored backend and will still return an error for everyone else. They will slowly increase the amount of allowed requests to let load balancers adapt and distribute requests globally to the recovered locations.
I guess the authentication system ran out of space. Quota is a space limit set by software. In a cloud setting that is basically equivalent to your hard disk is full.
It doesn't have to be an issue directly related to space filling up (assuming they have a process in place that more space is allocated as needed). The issue might have been caused be whichever process that allocates disk space failing in some way
I know that Google actually have good metrics (and thus alerting) on how full their physical storage is; my guess would be that it wasn't a physical storage issue. Likely, nobody's had to touch any physical hardware. Rather, it might have been a database or something that wasn't allocated enough virtual disk space, or something like that. That was most likely what they meant with their mention of "quotas."
Now, something like this I would normally only expect to happen at a single datacentre (the authentication application exceeding its quota at that datacentre), and, since this was a global outage, it must somehow have triggered a cascading failure. (Alternatively, the application could have had insufficient space globally... Although that is more unlikely.)
The quick fix would boil down to making a configuration change for server space (and then likely some storage distribution balancing), and carefully starting up again.
Massive distributed systems like Google's are meticulously designed and, as much as possible, rigorously tested to prevent just this sort of thing. They have tonnes of failure handling systems and failovers. For all that to break, they've probably experienced a so-far unknown issue with their failure handling that's likely so complicated and intricate, it doesn't make sense to try and guess about what it might be. So, the long-term fix is to track down the cause of the failure cascading, and somehow fix that. Implementing more metrics/reporting/auto-expansion for space issues (which they'll also be doing) is, comparatively, a walk in the park.
Unlimited is relative. Storing e.g. the financial transactions of everyone in the world is probably easy. Just O(10B) people doing maybe 10 transactions a day on average. That is just storing 100B records/day, each likely fitting in 1 kB. 100TB of data, no problem really, I can host that in my garage (for one day). With cloud computing I can store that for longer and likely the price of harddisks will continue falling, so I can soon move back to my garage.
Now with things like a video hosting site, camera recordings of a fleet of autonomous cars or drones or the high resolution data of thousands of sensors in a particle accelerator, those are the tasks where it becomes interesting. These problems have created the need for so much space in the first place. These are Exascale tasks. Storing this data is hard, reading it fast for serving is even harder.
The scale of these things is why machine learning is both powerful and hard today. You need to coordinate thousands of servers to even access the data and compute anything over it. But hidden within large amounts of videos are the precious recordings that can teach an autonomous car what to do in a specific dangerous situation.
To give some number, Youtube says it is ingesting 500 hours of videos per minute. A 1 hour video can easily be 1 GB, so they are growing storage at 500 GB/min or 720 TB/d or 263 PB/y. Factor in that you want at least 3 copies of each video to avoid data loss and they are near 1 new Exabyte a year.
It seems that they had a component that had a limited quota (for example, the authentication system can only make a query 500 million times per hour, no more). A limit that was put there to avoid impacting other services if one starts misbehaving, but accidentally set too low. Once the quota was reached, all further requests were rejected and resulted in a failure.
That seems fairly believable as, for those kinds of components, the storage system and its security measures (including a quota) would be distributed. So if one authentication query fails in Sydney for being over the quota, a subsequent query in Paris will also fail.
43
u/UniqueUsername27A Dec 14 '20
For cases like this where the damage is so large, there are likely engineers constantly on site that monitor the system and can intervene when necessary. But as this was a global outage it is likely this was not about a broken server, but rather a software problem. That means likely people didn't have to go anywhere. The fact that they managed to fix it quickly also means no one can have moved very far.
Running a data center is more like running a power plant. You constantly have people checking things and going over mildly weird measurements that could indicate the next problem. Most problems are likely caught before they do any damage.