News for hackers. Stuff that matters.
Re:Gmail and Google Drive Outage by jordanthoms on Thursday August 20, 2020 @04:28AM (#24221132)
There was an outage August 19th, 2019 - almost 1 year ago to the day. As I posted at the time: "Google often has a outage or two around this time of the year when all the US schools come back and millions of students log in at the same time."

My pet theory wasn't too popular but I'm going to stick with it :)

1- https://news.ycombinator.com/item?id=20740997

Re:Gmail and Google Drive Outage by piva00 on Thursday August 20, 2020 @05:01AM (#24221317)
I work on the educational part of the product my company develops and I can attest that school start is a stressful day with login attempts, assignments lookups and other setup activities for the school period.

I wouldn't doubt that Google Classroom and other systems that use Google's SSO will be under strain from millions of students.

Re:Gmail and Google Drive Outage by londons_explore on Thursday August 20, 2020 @06:12AM (#24221677)
Google does a once per year disaster recovery training... They do things like deliberately turn off datacenters with no warning. Sometimes failover systems don't work as intended.

Was that this week?

Re:Gmail and Google Drive Outage by ithkuil on Thursday August 20, 2020 @06:43AM (#24221874)
Re:Gmail and Google Drive Outage by jefftk on Thursday August 20, 2020 @07:45AM (#24222233)
It was not this week, sorry!
Re:Gmail and Google Drive Outage by perftime on Thursday August 20, 2020 @11:14AM (#24224121)
Every year around the same time people have to work on Perf (internal performance review), maybe people were more focused on that rather than keeping the systems up.... or maybe they needed to push the latest update to be included in their perf...
Re:Gmail and Google Drive Outage by jordanthoms on Thursday August 20, 2020 @02:15PM (#24226501)
I like this theory too - but is performance review this week?
Re:Gmail and Google Drive Outage by tweenagedream on Thursday August 20, 2020 @09:54PM (#24231162)
Yes.
Re:Gmail and Google Drive Outage by plibither8 on Thursday August 20, 2020 @04:43AM (#24221230)
See you in August 2021, good sir!
Re:Gmail and Google Drive Outage by kevstev on Thursday August 20, 2020 @11:35AM (#24224318)
US schools don't all start on the same day though- its pretty staggered with some starting in early-mid august, and most in the Northeast start right after Labor day.
Re:Gmail and Google Drive Outage by sujinge9 on Thursday August 20, 2020 @12:01PM (#24224623)
It's still probably a normalish distribution
Re:Gmail and Google Drive Outage by kevstev on Thursday August 20, 2020 @02:01PM (#24226343)
Right- which I would expect Google or any half decent service to be able to withstand easily. Its not a sudden spike that happens under a few minutes to several orders of magnitude above the average weekly peak, this is a fairly gentle sloping upward.

And if this happened last year too, you would think this would be on top of the list of things to watch for next year and add capacity for. Amazon and Walmart start planning and drilling now for their holiday season.

Re:Gmail and Google Drive Outage by adrianmonk on Thursday August 20, 2020 @12:13PM (#24224778)
That's an interesting theory because the timing does correlate.

A lot of people would immediately dismiss it because Google has the resources to scale up. But having resources doesn't guarantee someone actually turns the knob that increases the number of instances. (Whether automatic or manual, the adjustment could be too slow to match an unanticipated spike in demand.)

But there's another reason I don't think that's the explanation. Gmail has 1.5 billion active users[1]. Millions of students logging in at the same time sounds like a lot, but if Gmail has 100 million more active users today than yesterday, that's not even a 10% increase!

---

[1] Source: https://en.wikipedia.org/wiki/Gmail

Re:Gmail and Google Drive Outage by jordanthoms on Thursday August 20, 2020 @02:03PM (#24226367)
I don't think it's the load on Gmail that's an issue. I'd point more to Google Drive, Docs and the underlying shared storage infrastructure. Also keep in mind most of those 1.5 billion users won't be very active - a few million users that have no usage at all for a few months and then all come back to being extremely active within a few days can be pretty disruptive!

IMO it's not really about having the resources to scale, but the unpredictable emergent behaviours which can happen when the load profile suddenly changes

Re:Gmail and Google Drive Outage by jarym on Thursday August 20, 2020 @06:03AM (#24221635)
Actually a legit observation. Sorry to say but the naysayers on here are super dumb and missing the point with their comparison to other Google services or claiming lack of evidence.
Re:Gmail and Google Drive Outage by mrkramer on Thursday August 20, 2020 @05:46AM (#24221568)
Millions of people are searching simultaneously at google.com or youtube.com but servers are not crashing. Issue is not traffic overload but something else.
Re:Gmail and Google Drive Outage by klohto on Thursday August 20, 2020 @05:50AM (#24221583)
These are not the same products nor infrastructure
Re:Gmail and Google Drive Outage by mrkramer on Thursday August 20, 2020 @05:56AM (#24221606)
But I'm sure similar infrastructure architecture was applied to gmail.com as it was to google.com and youtube.com.

And similar concepts of maintaining by sysadmins are practiced.

Re:Gmail and Google Drive Outage by londons_explore on Thursday August 20, 2020 @06:15AM (#24221702)
Hah...

Press and hold the F5 key on your keyboard for 2 minutes while on gmail.com. You will get a "service unavailable" error. About 500 other people whose data happens to be cohosted with you will also get the same error, and all of you will be unable to send or receive email, even by IMAP, for about 10 mins while your particular corner of the data store is restarted and the data integrity checked.

That doesn't happen on Google.com

Re:Gmail and Google Drive Outage by jordanthoms on Thursday August 20, 2020 @06:57AM (#24221956)
Ok, I definitely want to know how you discovered that... (and found one of those 500 people to verify?)
Re:Gmail and Google Drive Outage by londons_explore on Thursday August 20, 2020 @07:15AM (#24222036)
Not sure if this is still the case, but if you did this a couple of times, your account data would be permanently migrated to an instance with more CPU and RAM allocated - you'd also be in with all the other badly behaved accounts, so reliability goes down lots. The benefit was much quicker complex searches, and being able to bulk label or delete emails without it taking minutes or hours.

Don't believe me how slow it is on a regular instance? Try going to "All mail", selecting all of your emails, and applying a label to them all. In my experience, it can only label about 50 mails per second, so it can take hours to do them all. It will keep going if you quit the browser, but will stop if the gmail devs do a software update, which they seem to do on usually tuesdays, but never fridays or the weekends.

Re:Gmail and Google Drive Outage by 1f60c on Thursday August 20, 2020 @07:57AM (#24222296)
I find it hard to believe that Gmail will always serve certain users from the same machines, especially in this day and age, with “cattle, not pets” and ephemeral containers.

I’m sure they have machines that are only used to serve G Suite and Google One customers, and maybe some other VIPs, but regular heavy users? It sounds like an urban legend to me.

Re:Gmail and Google Drive Outage by jeffbee on Thursday August 20, 2020 @09:52AM (#24223203)
Gmail accounts will sometimes be automatically "hospitalized" -- assigned more than the usual amount of resources because for some reason they are chronically behind or growing without bound -- or "jailed" -- moved into isolation along with other bozo accounts, to keep from disturbing normal people's accounts. Not a legend.
Re:Gmail and Google Drive Outage by organsnyder on Thursday August 20, 2020 @08:58AM (#24222727)
The data has to be sharded somehow, though. You might not be hitting the same exact machine, especially for the frontend, but your data isn't just magically everywhere in "the cloud".
Re:Gmail and Google Drive Outage by toast0 on Thursday August 20, 2020 @12:17PM (#24224815)
Not the same machines, but different groups or machines (pools, shards, farms, whatever). They'll certainly be able to move you around to balance the pools, or to decomission pools, or to put you in a pool with primary data closer to where you usually access from etc. Grouping by behavior makes sense too --- separating heavy and light users makes a lot of sense, you can serve a lot more light users from one pool, and the heavy users won't impact their service.
Re:Gmail and Google Drive Outage by jacobr1 on Thursday August 20, 2020 @09:18AM (#24222899)
It isn't about the compute. This is about the databases. I don't see it as stretch that google is using a sharding strategy for their datastores.
Re:Gmail and Google Drive Outage by bluecmd on Friday August 21, 2020 @04:28AM (#24233118)
That's not the "cattle vs. pet" as I understand it. The servers are identical, i.e. cattle. This is just a case of sticky sessions. It's a common pattern to help latency and keep resource usage down.
Re:Gmail and Google Drive Outage by dannyw on Thursday August 20, 2020 @07:21AM (#24222070)
I get brief gmail outages once every several months. Bulk labelling is really fast. I wonder if this is why...
Re:Gmail and Google Drive Outage by trishmapow2 on Thursday August 20, 2020 @07:42AM (#24222213)
Interesting. I held F5 down for less than a minute and I got an "Unusual usage - account temporarily locked down" message. Disappeared after a few seconds pause though...
Re:Gmail and Google Drive Outage by dna_polymerase on Thursday August 20, 2020 @06:46AM (#24221882)
Drive and Gmail are not the same thing as search. The bottlenecks are different, the architecture and problem spaces aren't the same either.
Re:Gmail and Google Drive Outage by lallysingh on Thursday August 20, 2020 @09:30AM (#24223004)
Primarily cache hits with no state.
Re:Gmail and Google Drive Outage by omarhaneef on Thursday August 20, 2020 @10:51AM (#24223885)
This. And to expand on it:

for Gmail, you have to log in. It has to know it is you. It has to know that everything it is serving you is only for you. It has to retain copies of documents that -- as far as it knows -- are unique to you or whomever you share with. It has to do all this while keeping that information safe from other people who might want to take a look at it.

And that's just the items I can think of in real time while typing.