Live data from Hacker News

Upgrading Uber's MySQL Fleet

uber.com

91–100 of 215 posts

Re: Upgrading Uber's MySQL Fleet

#91
Impressive numbers at a glance but that boils down to ~140qps which is between one and two orders of magnitude below what you'd expect a normal MySQL node typically would serve. Obviously average execution time is mostly a function of the complexity of the query but based on Uber's business I can't really see what sort of non-normative queries they'd run at volume (e.g. for their customer facing apps). Uber's infra runs on Amazon AWS afaik and even taking some level of volume discount into account they're burning many millions of USD on some combination of overcapacity or suboptimal querying/caching strategies.

Re: Upgrading Uber's MySQL Fleet

#92

Earlier quoted context omitted.

Can you elaborate on the last part? What are some stylistic patterns that are different when something is written by a US author v/s Indian?

Not exactly a stylistic difference but there are real differences in the dialects. Here's example from many moons ago: "Even I think that's a bad idea." That was an Indian colleague. It took me weeks to figure out that he was using "even" in place of "also." In a like vein when Australians say "goodeye" they usually aren't talking about your vision.

Perhaps.

Or perhaps it was meant to specify that they, themselves, might have been presumed to be an outlier who would think it was a good idea, but who has in fact come to think that is a bad idea.

Examples of this kind of counter-presumptive use of the word "even":

1: On animals and the weather: "It was so cold that even polar bears were suffering from frostbite and frozen digits."

2: On politics, where one's general stance is well-known and who who might be rationally presumed to be a supporter of a particular thing: "Even I think that this issue is a total non-starter."

Even if they may have meant something else, that doesn't mean that they didn't intend for the words to be taken non-literally.

Re: Upgrading Uber's MySQL Fleet

#94
post #86

I wonder if an upgrade like this would be less painful if the db layer was containerized? The migration process they described would be less painful with k8s. Especially with 2100+ nodes/VMs

Their entire setup seems somewhat suspect. I can't think of any technical justification for needing 21k instances for their type of business.

Re: Upgrading Uber's MySQL Fleet

#95

yall should prioritize your focus so you can do better at vetting drivers who don't almost kill me

I'm not sure how effective the database engineers are going to be at solving this, but I guess we can ask them to try...

thanks for your help

Re: Upgrading Uber's MySQL Fleet

#96

Earlier quoted context omitted.

everyone is praising postgres and shitting on mysql, until performance matters. then, when all these big tech companies turn to mysql, the postgres fanboys cry in unison.

There'd be less of that if there weren't a feeling that MySQL is the high-grade free hit that Oracle uses to get you hooked on their low-grade crap.

use mariadb instead of mysql.

Re: Upgrading Uber's MySQL Fleet

#97
post #66

Earlier quoted context omitted.

Honest question, how do you (or amyone) propose to vet drivers? They require drivers license and car insurance registration, anything like a CDL would make being a driver prohibitively expensive. Their rating system already works as a good signal the few times Ive used uber.

i don't know, i don't work there. i'm just somebody who almost died because one of their drivers was a terrible driver. that sounds like a problem they should figure out. dude didn't even know how to change a tire, so start with "basic knowledge of car maintenance." and a basic ability to speak english would be a good bar to meet, too. they'll let anybody with a driver's license, car, and a heart beat drive on that a…

If you have one big company with 10 bad drivers, you'll get a much worse impression of it than 100 companies each with one bad driver.

Re: Upgrading Uber's MySQL Fleet

#99
post #63

Interestingly we just went through basically the same upgrade just a couple days ago for similar reasons. We run Amazon Aurora MySQL and Amazon is finally forcing us to upgrade to 8.0. We ended up spinning up a secondary fleet and bin log replicating from our 5.7 master to the to-be 8.0 master until everything made the switch over. I was frankly surprised it worked, but it did. It went really smoothly.

AFAIK the 8.0 release is one where Oracle breaks compatibility. So anyone considering MariaDB needs to switch before going to 8.0, otherwise switching will be much more painful.

Re: Upgrading Uber's MySQL Fleet

#100

Earlier quoted context omitted.

Not in our experience; for our cases it is still a resource hog. We discussed it even less than a year ago with core devs and with a large postgres consultancy place; they said postgres doesn't fit our use case which was already our conclusion, no matter how much we want it to be. Mysql is smooth as butter. I have nothing to win from picking mysql just that it works; I rather use postgres as features / not oracle but…

What is your use case?

We have 100000s tables per database (1000s of those) (think sensor/iot data with some magic sauce that 0 of our competitors offer) that are heavy on the changes. And yes, maybe it's the wrong tool (is it though if it works without hickups?) for the job (but migrating would be severe so we would only attempt that if we are 100% sure it will work and if the endresult would be cheaper; remember; we are talking decades here, not a startup), but mysql has been taking this without any issues for decades with us (including the rapid growth of the past decade) now while far smaller setups with postgres have been really painful and all because of vacuum. We were postgres in 1999 when we ran many millions of records through it, but that was when we could do a full vacuum at night without anyone noticing. The internet grew a little bit, so that's not possible anymore. Vacuum improved too like everyone says here, and i'm not spreading the gospel or whatever; just fans (... what other word is there) blindly stating it can do loads 'now' they never considered is, well weird.
Post reply on HN