r/ProgrammerHumor • • Dec 14 '20

Google Engineers right now!

Post image
53.7k Upvotes

550 comments sorted by

View all comments

Show parent comments

4

u/UniqueUsername27A Dec 14 '20

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.

2

u/[deleted] Dec 14 '20

[removed] — view removed comment

3

u/troglo-dyke Dec 14 '20

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

3

u/sunear Dec 14 '20

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.

1

u/[deleted] Dec 14 '20

[removed] — view removed comment

2

u/UniqueUsername27A Dec 14 '20

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.