Notes from Scaling MySQL - Up or Out
Here is the quick notes from the session Scaling MySQL - Up or Out ? moderated by Kaj Arno as part of the todays keynote.
Here is the list of panelists are ordered by Alexa ranking.
- Monty Taylor (MySQL)
- Matt Ingerenthron (Sun)
- John Allspaw (Flickr)
- Farhan Mashraqi (Fotolog)
- Domas Mituzas (Wkipedia)
- Jeff Rotheschild (Facebook)
- Paul Tuckfield (YouTube)
Here is the list of questions and answers from panelists:
| Â | How many servers | Number of DBAs | How many web servers | Number of caching servers | Version of MySQL | Language, platform | Operating System |
| MySQL |
1 M, 3 S |
1/10 |
2 |
2 |
5.1.23 |
Perl,php and bash |
Linux fedora |
| Sun |
2 clustered, 2 individual |
1.5 |
160+ |
8 |
5.0.21 |
Lots of stuff (java mostly) |
Open Solaris |
| Flickr |
166 |
At present 0 |
244 |
14 |
5.0.51 |
Php and some Java |
Linux |
| Fotolog |
140 databases on 37 instances |
10 instances a DBA |
70 |
40 ( 2 on each, 80 total) |
4.11 and 4.4 |
Php, 90% Java |
Solaris 10 |
| Wikipedia |
20 |
None, but everybody is kind of a DBA |
70+200 |
40 ( 2 on each, 80 total) |
 |
Php, c++, python |
Fedora / Ubuntu |
|
30000 databases, 1800 db servers |
2 |
1200 |
805 |
5.0.44 with relay log corruption patch |
Php, python, c++ and erlang |
Fedora / RHEL |
|
| Youtube |
I can not say |
3 |
I can not say
|
I can not say
|
5.0.24 |
Python |
SuSE 9 |
Few more misc questions …
Number of times re-architected ?
- My: 2 times - 1 time slave, 1 time memcached
- SN: site depend (many times over the year)
- FR: 2.5 (various clusters federated)
- FL: many cached replacements (about to do one change now)
- WK: Never (Spaghetti)
- FB: Every Tuesday, continual
- YT: Pretty continual, 2-3 times (replication, sharding, federation)
What happens if server fails ? what actions you will generally take ..
- FR: All of our servers are federated, pairs of servers, we can loose any one side of shard, we can loose boxes.. traffic goes to either side of shard, now it goes to one, and we will get another one (very transparent to user)
- WK: Users shout at them on IRC then they moderate … fixed in seconds
- FB: one of 1800-1900 will always fail, just operate well, minor impact, with data going away for a while…we restore from binlog and start the server quickly, promote slave to master and number of ways
- FL: we simply mount the snapshots to different servers and get
- YT: SAN etc, very important data.. recover the server, mirrored disk …mirrored hard drive is crucial
Any recommendation of scaling technology that you wanted to bring
- FL: UltraSPARC-T1 (excellent master, multi threaded) and UltraSPARC-T2 for slave (single threaded)
- WK: good network switch
- FB: cheap switch causes problems and learned lessons, we do not use SAN, neatly partitioned, they scale independently and fail independently
- MY: cluster very sad
Server virtualization ?
- nobody uses at this time
- FB: ETL cluster, we may run more than one in the future
Anything to worry at present ?
- FB: app design is the key to use resources, data center power supply and consumption
- FL: Google has to approve for our lab power (cut app servers by 1/2 by moving from php to java)
- YT: not at all
Any reco, lessons to DBA
- better you know what the systems are, then you can
- performance, scaling taking it serious
- nothing more permanent than temp solutions (if you don’t know when you will fail, then you will )
- architect properly in start, schema, cost of serving data
11 Comments
[…] from Scaling MySQL - Up or Out: http://venublog.com/2008/04/16/notes-from-scaling-mysql-up-or-out/ « elÅ‘zÅ‘ | robi — 2008. 04. 17. […]
Pingback :: April 17, 2008 @ 2:13 am
How much power is behind the net’s top sites?…
At the recent MySQL Conference & Expo there was a very interesting panel called “Scaling MySQL - Up or Out?” where people from some of the internet’s top sites gave quite a good insight into their setup of MySQL and sometimes also…
Trackback :: April 20, 2008 @ 3:17 am
[…] MySQL - Up or Out?" where representatives from some of the internet’s top sites gave insights into their database setups. Think of it this way; wikipedia is … huge. There's […]
Pingback :: April 21, 2008 @ 3:40 am
[…] Notes from Scaling MySQL - Up or Out Here is the quick notes from the session Scaling MySQL - Up or Out ? moderated by Kaj Arno as part of the todays keynote. (tags: mysql architecture scaling) […]
Pingback :: April 21, 2008 @ 6:36 am
[…] Pulse 2.0: Web 2.0 Reviews & Profiles wrote an interesting post today on Venu Anuganti Blog " Notes from Scaling MySQL - Up or OutHere’s a quick excerpt bookmark this on del.icio.us - posted by pondle to mysql architecture scaling database youtube facebook flickr and saved by people… […]
Pingback :: April 22, 2008 @ 12:05 am
[…] Accidental Hedonist wrote an interesting post today on Notes from Scaling MySQL: Facebook 1,800 MySQL Servers, 805…Here’s a quick excerptComments… […]
Pingback :: April 23, 2008 @ 2:52 am
[…] Venu has even better notes here. Posted by Artem Russakovskii in […]
Pingback :: April 24, 2008 @ 7:55 pm
Thanks for these notes, Venu. Do you know if Facebook has 1,200 or 10,000 web servers? You say 1,2000. Diamond Notes says 10,000.
I did check the video. Jeff Rotheschild from Facebook appears to say 10,000 (around 13:00 in the video), but the audio is difficult to hear, so I cannot be sure.
Comment :: May 9, 2008 @ 8:05 am
[…] Notes from Scaling MySQL - Up or Out (tags: scaling architecture) […]
Pingback :: May 9, 2008 @ 8:34 pm
[…] Scaling MySQL at Facebook Filed under: Feedster, Scaling, Search — François Schiettecatte @ 10:16 am By way of Greg Linden, some interesting notes and figures from various high traffic web sites on scaling MySQL. […]
Pingback :: May 10, 2008 @ 7:16 am
[…] Oito passos para o conhecimento wrote an interesting post today on [from hjl] Venu Anuganti Blog " Notes from Scaling MySQL - Up or OutHere’s a quick excerptInteresting data on back end implementation at Flickr, Wikipedia, Facebook, Youtube as of spring 2008. Lots and lots of servers running MySQL. […]
Pingback :: May 12, 2008 @ 10:25 pm