Scaling MySQL - - Up or Out? Panel @ UC

I would recommend that you download the video of this!! Sheeri posted it here.

The numbers in parentheses are Alexa rankings.

Moderator - Kaj Arno

(1317) Monty Taylor - MySQL

(905) Matt Ingenthron - Sun

(39) John Allspaw - Flickr

(13) Frank mash - Fotolog

(9) Domas Mituzas - Wikipedia

(6) Jeff Rothschild - Facebook

(2) Paul Tuckfield - YouTube

Question One: Number of MySQL servers

MySQL one master/three slaves

Sun four servers

Flickr 166

Fotolog 37

Wikipedia

Facebook 1,800 (900m/900s)

YouTube


Question Two: Number of MySQL DBAs

MySQL 1/10th

Sun 1.5

Flickr 0 (normally 1)

Fotolog 1

Wikipedia Technical Team

Facebook 2

YouTube 3

Question Three: Number of Web Servers

MySQL 2

Sun 160

Flickr 244

Fotolog 70

Wikipedia

Facebook 10,000

YouTube

Question Four: Number of Memcached servers

MySQL 2

Sun 8

Flickr 14

Fotolog 40

Wikipedia 79

Facebook 805

YouTube

Question Five: Version of MySQL

MySQL 5.23-2rc

Sun 5.0.21

Flickr 5.0.51

Fotolog 4.11

Wikipedia 4.4

Facebook 5.0.44

YouTube 5.0.24

Question Six: Operating System on Server

MySQL Fedora

Sun OpenSolaris

Flickr Linux

Fotolog Solaris 10

Wikipedia Fedora/Ubuntu

Facebook Fedora/RHEL

YouTube SuSE 9

Question Seven: What happens if a server fails?

Flickr - Federated setup for failover. Can loose any one side of the shard.

Wikipedia - if a master fails they replace with slave

Facebook - archive binlogs, promote slave

Fotolog - mount snapshots?

Youtube - SAN; shards with a master and multiple slaves so they promote slaves

Question Eight: What is Their Crucial Scaling Technology

Facebook doesn’t use SAN - they do use RAID 10 with 2.5″ drives

Fotolog — UltraSparc T1 — excellent master UltraSparc T2 — excellent slave — uses SAN

This was interesting to me. Frank (Fotolog) said they use a SAN to keep things manageable (only two dbas with the second one just hired). Facebook says they don’t use SAN because they didn’t want to limit themselves.
Next they got off on discussion about power. This varied quite a bit with YouTube pretty much dismissing power concerns. Of course Frank from Fotolog then pointed out that when they (Fotolog) want to expand in a datacenter — the datacenter has to get Google’s approval…hmmm..no wonder Google isn’t worried about it. Fotolog and Facebook were very much in favor of power savings. I think there is more than just saving a little power, you get cooling and space (if smaller of course) savings.

38 comments ↓

#1 MySQL - Sun - Flickr - Fotolog - Wikipedia - Facebook - YouTube Comparison - MySQL Conference Day 2 Keynote | beer planet on 04.16.08 at 4:07 pm

[...] has a nice summary of everything that went on together with the numbers here. Posted by Artem Russakovskii in [...]

#2 Artem Russakovskii on 04.16.08 at 4:10 pm

Thanks for publishing this, I was looking for the notes. These numbers are fun.

#3 MySQL Expo - Day 2 at Jeremy’s Blog on 04.16.08 at 4:20 pm

[...] (Google is still quite secretive about many numbers-related items it seems). Good coverage of the numbers presented (Colin was plogging, so that document should be released soon and the video should be available on [...]

#4 Frank on 04.16.08 at 5:10 pm

Hi,

Thanks for writing this. A few corrections:

1. We have 37 database servers. The number posted is the number of instances.

2. In the following sentence, Facebook should be replaced with Fotolog, as it was me who made the point :)

“Of course Facebook then pointed out that when they (Facebook) want to expand in a datacenter — the datacenter has to get Google’s approval…hmmm..no wonder Google isn’t worried about it.”

3. Our second DBA has yet to start :)

Thanks

#5 Frank on 04.16.08 at 5:11 pm

Ughhh, typo in my last comment:

We have 37 database servers. The number posted is the number of databases.

thanks!

#6 admin on 04.16.08 at 5:53 pm

Thanks for the updates Frank. Sorry about the mistake. I updated the numbers.

Keith

#7 frogcake.net » Conferences on 04.17.08 at 4:47 am

[...] I can live vicariously through all the people blogging the event. Artem Russakovskii’s notes on the Scaling MySQL - Up or Out? keynote have some interesting numbers: Question One: Number of [...]

#8 Bob Jones on 04.18.08 at 10:20 am

They should be running IIS/Windows/MSSQL. Scales better.

#9 Peteris Krumins on 04.18.08 at 1:11 pm

I’m sorry, but where is the video you are talking about?

#10 links for 2008-04-18 on 04.18.08 at 1:32 pm

[...] Diamond Notes » Scaling MySQL - - Up or Out? Panel @ UC (tags: configurations mysql server) [...]

#11 Cyndy Aleo-Carreira on 04.18.08 at 4:18 pm

So Facebook is built on Rails? I can’t even fathom what their burn rate must be what with the employees, the perks, and the unholy number of web servers.

#12 Ken Robertson on 04.18.08 at 5:59 pm

Cyndy: Facebook is built on PHP: http://blog.facebook.com/blog.php?post=2356432130

#13 links for 2008-04-19 | hxf148 on 04.19.08 at 3:34 am

[...] Diamond Notes » Scaling MySQL - - Up or Out? Panel @ UC [...]

#14 domas mituzas on 04.19.08 at 4:23 am

database server count: twenty :)

thats for wikipedia

#15 Artem Russakovskii on 04.19.08 at 8:03 am

Who mentioned rails and where? Facebook is built on php.

#16 Cyndy Aleo-Carreira on 04.19.08 at 12:23 pm

Artem, I was joking at the Rails theory of throwing more servers at a problem. Facebook has an insane number of servers and MySQL instances based on their approximate pageviews.

#17 admin on 04.19.08 at 7:16 pm

Updated with link to video.

#18 Блог без заголовка » Silicon Valley Report in Russian » У кого сколько баз данных on 04.20.08 at 10:45 pm

[...] Среди новостей с прошедшей на прошлой неделе MySQL Conference в Санта-Кларе - кто сколько баз данных MySQL пользует в своих проектах: [...]

#19 links for 2008-04-21 « Brent Sordyl’s Blog on 04.21.08 at 7:35 am

[...] Number of Servers at Wikipedia, Facebook, FLickr and YouTube Number of MySQL servers Flickr 166 Facebook 1,800 (900m/900s) (tags: servers scalability mysql) [...]

#20 Perspectives on 04.22.08 at 8:36 am

1,800 MySQL Servers with Two DBAs…

#21 Inside Facebook » Facebook infrastructure up to 10,000 web servers on 04.23.08 at 7:44 pm

[...] Miller points out some notes from a recent MySQL user conference during which Facebook VP of Technology Jeff Rothschild gave [...]

#22 Facebook’s Insatiable Hunger for Hardware - GigaOM on 04.25.08 at 10:00 am

[...] servers, according to Data Center Knowledge, citing comments made by Facebook VP of technology, Jeff Rothschild, at a recent MySQL user conference. (See video of the panel.) Of the 10,000 servers, 1,800 are from [...]

#23 FRRO Blog » Blog Archive » Just How Big Is Facebook’s Infrastructure? on 04.25.08 at 4:15 pm

[...] a recent MySQL conference, titled “Scaling MySQL - Up or Out”, Facebook revealed that they are currently operating 10,000 web servers and 1,800 database servers. Another newsworthy [...]

#24 Facebook’s Insatiable Hunger for Hardware « theDigitalNews.TV on 04.27.08 at 4:12 am

[...] servers, according to Data Center Knowledge, citing comments made by Facebook VP of technology, Jeff Rothschild, at a recent MySQL user conference. (See video of the panel.) Of the 10,000 servers, 1,800 are from [...]

#25 Onaswarm links for Saturday, 26 April 2008 « David’s Blog - What Did You Think? on 04.27.08 at 7:01 am

[...] Diamond Notes » Scaling MySQL - - Up or Out? Panel @ UC [...]

#26 baanmo.com on 05.05.08 at 11:22 am

Strategy: Break Up the Memcache Dog Pile…

#27 Aaron Johnson – Links: 5-6-2008 on 05.07.08 at 1:53 am

[...] Diamond Notes » Scaling MySQL - - Up or Out? Panel @ UC Wow. Facebook = 1,800 MySQL servers, 10,000 http servers, 800 memcached servers. (categories: facebook scaling memcached mysql performance architecture ) [...]

#28 Niels Olson on 05.23.08 at 5:23 am

better link to the video:

http://www.technocation.org/content/panel-video%3A-scaling-mysql-or-out%3F

#29 Facebook Videos | Long Blog on 06.26.08 at 7:15 am

[...] files. 540 terabytes. 475 000 photos served per second. 100 million photos uploaded every week. 10 000 servers. Those are big ass numbers with big ass [...]

#30 Mark on 08.16.08 at 4:26 pm

10,000 database servers for Facebook!? At a rough guess they would get 30,000 DB transactions per second… Having 10,000 servers seems a bit over the top don’t you think?

#31 How to sustain attraction on 09.19.08 at 7:01 pm

[...] at PlentyOf Fish- At a recent MySQL conference, titled “Scaling MySQL - Up or Out”, Facebook revealed that they are currently operating 10,000 web servers and 1,800 database servers. Another newsworthy [...]

#32 Links for 9-17-08 | Ajulie.com on 09.22.08 at 9:24 am

[...] M­yS­QL­ - Up­ or Out”, F­a­cebook r­evea­led­ th­at th­ey­ ar­e c­ur­r­en­tl­y­ [...]

#33 The rhythm of love on 09.23.08 at 3:03 am

[...] at PlentyOf Fish- At a recent MySQL conference, titled “Scaling MySQL - Up or Out”, Facebook revealed that they are currently operating 10,000 web servers and 1,800 database servers. Another newsworthy [...]

#34 Scaling Facebook’s databases | Locuras del web on 02.20.09 at 11:39 pm

[...] numbers from Facebook on their architecture: 1,800 MySQL servers (900 pairs of master/slave) holding a heavily partitioned data set managed by just 2 [...]

#35 Powerpoint presentation of Facebook DBAs Chris Schneider & Kevin Knapp is now online « MySQLTalk.com on 02.25.09 at 10:52 pm

[...] team has done an amazing job. They have ~800 memcached servers handling 95% of the load. The comparative figures for Facebook vs. other major players shows how unique their setup [...]

#36 Can Corporate IT Operate as Efficiently as Salesforce.com? « SmoothSpan Blog on 04.10.09 at 9:07 am

[...] How good can it get?  That’s an interesting question.  Salesforce is using 1,000 servers to deliver a service to 1.5 million people, according to the Techcrunch article I linked to above.  Consider these numbers for Facebook that are taken from a great posting over at Diamond Notes: [...]

#37 Web Scale « Streamy Development Blog on 04.14.09 at 5:47 pm

[...] clusters of MySQL and Memcached to deal with storing user data and serving user queries.  As reported nearly a year ago, they already had close to 2,000 MySQL boxes and 1,000 Memcached boxes in addition to their 10,000 [...]

#38 David (of Melodiya Records) on 06.24.09 at 3:34 pm

Flickr || 166 || 244

Maybe I missed something, but does this mean that Flickr requires only 244 (or 410 = 244 + 166?) servers to work?

The _whole_ Flickr with its millions of photos?!

Leave a Comment