TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Migrating Facebook to MySQL 8.0

521 点作者 moneil971将近 4 年前

29 条评论

takeda将近 4 年前
Perhaps it's due to me being in the PostgreSQL camp, but what happened to MariaDB? I was convinced that's where MySQL developers went and that's where development proceeded, while MySQL was just half dead, because Oracle did not care about it.
评论 #27922819 未加载
评论 #27928208 未加载
评论 #27923003 未加载
评论 #27922845 未加载
评论 #27927281 未加载
评论 #27923057 未加载
评论 #27922909 未加载
ksec将近 4 年前
MySQL 5.6 was released on 5 February <i>2013</i>.<p>MySQL 8.0 was released on 19 April <i>2018</i>.<p>&gt;The 8.0 migration has taken a <i>few years</i> so far. We have converted many of our InnoDB replica sets to running entirely on 8.0.<p>At the scale of Facebook I wonder if they are the largest MySQL user on the planet.<p>And I take this opportunity to ask, does anyone know how does the MySQL roadmap works? What sort of features are coming or when is 9.0 expected to arrive.
评论 #27922897 未加载
评论 #27924807 未加载
评论 #27926123 未加载
评论 #27922436 未加载
评论 #27925336 未加载
评论 #27925540 未加载
评论 #27927202 未加载
dafty4将近 4 年前
Thanks, HermanL and PradeepN, for sharing this migration story with HN!<p>You wrote:<p>&quot;Despite all the hurdles in our migration path, we have already seen the benefits of running 8.0.&quot;<p>May I ask what are the main performance benefits you have measured&#x2F;noticed?
alberth将近 4 年前
It&#x27;s interesting to see FB migrating so much over to Oracle.<p>2 weeks ago was FB use of GraalVM (from Oracle). And now this.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27782475" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27782475</a>
评论 #27923135 未加载
评论 #27922401 未加载
评论 #27922497 未加载
评论 #27922368 未加载
评论 #27922912 未加载
mackman将近 4 年前
Wow. I worked on the upgrade from 5.0 to 5.1 (I think). We had fewer than 100 patches at the time. 1700 sounds like a nightmare. I apologize for any and all of the patches I wrote.
评论 #27937067 未加载
1024core将近 4 年前
&gt; MySQL, an open source database developed by Oracle<p>This makes it sound like Oracle created it, when it fact the reality is the opposite: Oracle fought it, and bought Sun just so they could get their hands on MySQL. How did regulators let that happen is beyond me.
评论 #27926304 未加载
评论 #27926130 未加载
markus_zhang将近 4 年前
&gt;It took a couple of years to complete porting all of these features. By the time we got to the end, we had evaluated more than 2,300 patches and ported 1,500 of those to 8.0.<p>This is some tremendous effort as I see. I wonder how many people work on these evaluations.
bratao将近 4 年前
+1 for MyRocks. If you can, try it. We store some text data and the compression is over 10 times better than InnoDB with a significative speedup.
suyash将近 4 年前
Go MySQL - solid open source database rocking for the last almost 3 decades!
评论 #27923215 未加载
评论 #27929013 未加载
andremendes将近 4 年前
Anyone else puzzled by the shaking migration animation? The original file has a 1920x1080 resolution. I wonder if it is related to the shaking. Good article nevertheless.
评论 #27922502 未加载
评论 #27922464 未加载
评论 #27922536 未加载
评论 #27925728 未加载
andrewmcwatters将近 4 年前
I wonder what order of magnitude of rows they deal with and how they optimize indices for querying that data.
评论 #27922483 未加载
simonw将近 4 年前
I&#x27;d love to know roughly how many engineers (or engineer hours) this took - sounds like a mammoth project!
hitekker将近 4 年前
Seems like good, old-fashioned engineering work to me. No breathless evangelism or careerist claptrap in sight.
评论 #27922962 未加载
cmrdporcupine将近 4 年前
My old-man brain still can&#x27;t compute this statement: <i>&quot;MySQL, an open source database developed by Oracle&quot;</i>. I know this is now factually true, but late-90s me keeps looking over my shoulder and freaking out.
评论 #27922866 未加载
评论 #27922546 未加载
评论 #27922441 未加载
评论 #27922491 未加载
评论 #27922830 未加载
评论 #27922418 未加载
评论 #27922760 未加载
thayne将近 4 年前
&gt; A few applications hit repeatable-read transaction deadlocks involving insert … on duplicate key queries on InnoDB. 5.6 had a bug which was corrected in 8.0, but the fix increased the likelihood of transaction deadlocks.<p>Interesting, I&#x27;ve run into a bug in MySQL 5.6 involving select for update where it deadlocked when it shouldn&#x27;t. I wonder if the two were related.
gigatexal将近 4 年前
Where can I read more about the custom things FB added to MySQL 5.6? Their work on replication and the DDL work seems fascinating. Are there scholarly papers, white-papers, blogs?<p>Are they storing the friend graph in MySQL?
评论 #27925129 未加载
评论 #27925339 未加载
throwdbaaway将近 4 年前
&gt; First, we could not upgrade servers in place and needed to use logical dump and restore to build a new server. However, for very large mysqld instances, this can take many days on a live production server and this fragile process will likely be interrupted before it can complete.<p>This part is quite interesting. I&#x27;d think it will take maybe a day to dump&#x2F;restore a database with a single 10TB table with no parallelism, at a speed of about 120MB&#x2F;s. How big is these mysqld instances such that the process will take many days?
dpcx将近 4 年前
What I take away from this is that they are (or were, until recently) still running production systems on MySQL 5.6...
评论 #27922815 未加载
评论 #27925784 未加载
评论 #27922442 未加载
rajandatta将近 4 年前
Really well done article. In-xeptjh treatment of a problem that few will actually tackle - a migration at Facebook&#x27;s MySQL scale.<p>Would be really good to see how long the project took and the migration speed they achieved.
theandrewbailey将近 4 年前
Anyone else notice that bad scaling and jumping on the animation? If they&#x27;re going for an old informational film aesthetic, awesome!
评论 #27925764 未加载
sdevonoes将近 4 年前
Do you know if they use the Percona toolkit with MySQL? Does it even give any benefits if one is running MySQL 8?
pmarreck将近 4 年前
can it do DDL commands in a transaction yet?
评论 #27922509 未加载
评论 #27922383 未加载
评论 #27923795 未加载
评论 #27922535 未加载
评论 #27925835 未加载
评论 #27922633 未加载
wewe2fg23将近 4 年前
Only oldies uses Facebook in 2021
desireco42将近 4 年前
So first sentence is:<p>&quot;MySQL, an open source database developed by Oracle, powers some of Facebook’s most important workloads. &quot;<p>Oracle didn&#x27;t develop MySQL, they bought it... Am I nit-picky here, opinions?<p>Otherwise, congrats on shipping!
评论 #27923978 未加载
sriram_sun将近 4 年前
&quot;MySQL, an open source database developed by Oracle&quot; - Gawd! Were most devs at FB born after the acquisition?
评论 #27923883 未加载
schuyler2d将近 4 年前
I&#x27;d be interested more in what features were in their (3):<p>&gt; Non-MyRocks Server: Features in the mysqld server that were not related to our MyRocks storage engine were ported.<p>i.e. things that they haven&#x27;t shared with the MySQL community but aren&#x27;t related to the storage layer. Why would&#x2F;should they keep those private? Considering that RocksDB is open-source, clearly it&#x27;s unlikely it&#x27;s because they&#x27;re &#x27;trade secrets&#x27;.
评论 #27925099 未加载
FpUser将近 4 年前
&gt;&quot;MySQL, an open source database developed by Oracle, &quot;<p>Sorry but there is a difference between &quot;developed&quot; as in originally created and &quot;being developed&quot; which is the case here in relation to Oracle.
thebouv将近 4 年前
Only commenting to say their site makes me mad cause it breaks the browser history. I click the link, go to the fb engineering site, and the back button has no history to go back to HN. Dark Pattern UX -- gross.
评论 #27922503 未加载
评论 #27922604 未加载
评论 #27923473 未加载
评论 #27927607 未加载
ablekh将近 4 年前
&gt; MySQL, an open source database <i>developed</i> by Oracle<p>Dear Facebook:<p>Please fix the wording emphasized above ASAP before we revolt here in outrage with your lack of attention to detail. MySQL was developed by relevant open source project contributors (initially, MySQL AB folks), but not by Oracle and even not by Sun Microsystems. MySQL has been in development for ~12 years before Sun acquired MySQL AB. Please set the record straight.<p>Sincerely,<p>MySQL user (not currently, but in the past and maybe in the future [though unlikely, because Postgre...] :-)