Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Facebook trapped in MySQL ‘fate worse than death’
Giga OM ^ | July 7, 2011 | Derrick Harris

Posted on 07/07/2011 8:55:49 PM PDT by TenthAmendmentChampion

According to database pioneer Michael Stonebraker, Facebook is operating a huge, complex MySQL implementation equivalent to “a fate worse than death,” and the only way out is “bite the bullet and rewrite everything.”

Not that it’s necessarily Facebook’s fault, though. Stonebraker says the social network’s predicament is all too common among web startups that start small and grow to epic proportions.

During an interview this week, Stonebraker explained to me that Facebook has split its MySQL database into 4,000 shards in order to handle the site’s massive data volume, and is running 9,000 instances of memcached in order to keep up with the number of transactions the database must serve. I’m checking with Facebook to verify the accuracy of those numbers, but Facebook’s history with MySQL is no mystery.

The oft-quoted statistic from 2008 is that the site had 1,800 servers dedicated to MySQL and 805 servers dedicated to memcached, although multiple MySQL shards and memcached instances can run on a single server. Facebook even maintains a MySQL at Facebook page dedicated to updating readers on the progress of its extensive work to make the database scale along with the site...

(Excerpt) Read more at gigaom.com ...


TOPICS: Business/Economy; Computers/Internet
KEYWORDS: bsd; facebook; linux; mysql; opensource; socialnetwork; unix
Navigation: use the links below to view more comments.
first previous 1-20 ... 61-8081-100101-120121-127 next last
To: TenthAmendmentChampion

Junk it and run on DB2


81 posted on 07/08/2011 4:20:58 AM PDT by Cronos ( W Szczebrzeszynie chrzaszcz brzmi w trzcinie I Szczebrzeszyn z tego slynie.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: NVDave

Moving it to an MVS system instead? hmmm.... well the mainframes I know are still chugging along nicely with very little effort


82 posted on 07/08/2011 4:24:07 AM PDT by Cronos ( W Szczebrzeszynie chrzaszcz brzmi w trzcinie I Szczebrzeszyn z tego slynie.)
[ Post Reply | Private Reply | To 26 | View Replies]

To: West Texas Chuck

Sql’s quite simple really — it’s when you start talking about grouping by statements and mix that with the different kinds of locks, hash indexing, join indexing, cylinder reads etc. that it gets complicated. And don’t get me started on RAID settings...


83 posted on 07/08/2011 4:32:48 AM PDT by Cronos ( W Szczebrzeszynie chrzaszcz brzmi w trzcinie I Szczebrzeszyn z tego slynie.)
[ Post Reply | Private Reply | To 37 | View Replies]

To: TenthAmendmentChampion; rdb3; Calvinist_Dark_Lord; GodGunsandGuts; CyberCowboy777; Salo; Bobsat; ...

84 posted on 07/08/2011 4:38:42 AM PDT by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies]

Comment #85 Removed by Moderator

To: Bloody Sam Roberts

I vote for oracle as well. I”m not a coder, just a hardware person, but when I have to figure out errors on web based apps, I find oracle much easier to troubleshoot. I should say, send accurate information to the webmaster via their ora-XXXXXX error codes :)


86 posted on 07/08/2011 4:56:16 AM PDT by AbolishCSEU (Percentage of Income in CS is inversely proportionate to Mother's parenting of children)
[ Post Reply | Private Reply | To 15 | View Replies]

To: NVDave
Re: They’re merely winging it as they go, making changes without a “big picture” into which they’re integrating the ideas...

Most likely. Back in my CICS system programming days a lot of the code seemed to be 20% doing the job and 80% making sure it failed gracefully. You don't bring down an on-line system unless something catastrophic has happened.

FB is probably 5% doing the job and 95% directing the code flow as changes to the security "model" are introduced.

87 posted on 07/08/2011 5:42:44 AM PDT by ken in texas (Can't Afford a Tagline... send money.)
[ Post Reply | Private Reply | To 59 | View Replies]

To: NVDave
rubbish like C++, arguably the worst language to come along since.... well, since forever.

Silly, when you consider that the languages you likely consider superior, run on VMs and OSs written in C++, or other languages you consider icky. It does all the heavy lifting and dangerous work that makes their slickness, safety, and even existence, possible.

88 posted on 07/08/2011 5:49:10 AM PDT by Minn (Here is a realistic picture of the prophet: ----> ([: {()
[ Post Reply | Private Reply | To 26 | View Replies]

To: JRandomFreeper

I agree with that 100%

I do A LOT of contract work writing software. I tell people that unlike many programming languages where there are dozens of ways to do something that are all equally valid, there is usually only one RIGHT way to do a database, and all others are wrong

And a bad database works well when it is small, but as it grows you have serious problems NOT easy to fix.

I can see where Facebook grew from nothing and needed to work on freeware- but after their first billion or so they should have known to sink a huge chunk of that into redesign


89 posted on 07/08/2011 5:56:43 AM PDT by Mr. K (CAPSLOCK! -Unleash the fury! [Palin/Bachman 2012- unbeatable ticket])
[ Post Reply | Private Reply | To 13 | View Replies]

To: DaxtonBrown

>>They’d also be stuck with an oracle or sqlserver license fee out the wazoo.

Is that last a specialized finance term?

;-P


90 posted on 07/08/2011 6:16:28 AM PDT by FreedomPoster (Islam delenda est)
[ Post Reply | Private Reply | To 7 | View Replies]

To: JRandomFreeper

E.X.A.C.T.L.Y.

If you design the sh*t correctly the first time, rewrites aren’t required, even when the boss comes in at 4:59:59 on Friday and says “I gotta have it Monday!”

This may in fact be common, but it’s a symptom of lazy b@st@rds.

That and a serious lack of Oracle. (*checks ammo, ducks for cover*)


91 posted on 07/08/2011 6:33:40 AM PDT by BuckeyeTexan (There are those that break and bend. I'm the other kind. *4192*)
[ Post Reply | Private Reply | To 13 | View Replies]

To: re_nortex

There’s no need to discuss brace styles. K&R is the correct style. Likewise VI is the best editor. (*jabs and ducks*) ;p


92 posted on 07/08/2011 6:38:37 AM PDT by BuckeyeTexan (There are those that break and bend. I'm the other kind. *4192*)
[ Post Reply | Private Reply | To 18 | View Replies]

To: FreedomPoster

Very specialized. It’s covered in the advanced classes, usually not at the introductory level. :)


93 posted on 07/08/2011 6:39:25 AM PDT by ken in texas (Can't Afford a Tagline... send money.)
[ Post Reply | Private Reply | To 90 | View Replies]

To: TenthAmendmentChampion

Hmmmm. Funny, I didn’t see this conflict in the movie.


94 posted on 07/08/2011 6:41:03 AM PDT by BuckeyeTexan (There are those that break and bend. I'm the other kind. *4192*)
[ Post Reply | Private Reply | To 1 | View Replies]

To: BuckeyeTexan
I call it the "Proof Of Concept" syndrome.

- Someone is tasked with developing a small system now to demonstrate how the "imagined" system might look.
- The boss likes it and decrees that it should be rolled out for the entire group / division / etc. ASAP.
- Time is wasted for years fighting scalability and response time problems before the whole thing is scrapped (usually because the boss moved on and no one else thought it was worth maintaining).

95 posted on 07/08/2011 6:47:45 AM PDT by ken in texas (Can't Afford a Tagline... send money.)
[ Post Reply | Private Reply | To 91 | View Replies]

To: ken in texas

I can’t count the number of times I’ve I seen that happen. I broke a VP of that nasty little habit one time by purposefully locking the DB down to one user and introducing a few sleep statements here and there in the code. When he came back from his smoke & mirrors magic show, he was all ears.


96 posted on 07/08/2011 7:07:26 AM PDT by BuckeyeTexan (There are those that break and bend. I'm the other kind. *4192*)
[ Post Reply | Private Reply | To 95 | View Replies]

To: NVDave

ISAM is such a smooth, fast little machine. I worked with it for years and loved it.


97 posted on 07/08/2011 7:11:28 AM PDT by BuckeyeTexan (There are those that break and bend. I'm the other kind. *4192*)
[ Post Reply | Private Reply | To 26 | View Replies]

To: djf

Sometimes you wonder why they throw 1,600 servers at something that could be accomplished by a few z-series mainframes. Imagine the space, electricity and manpower that’s being wasted.


98 posted on 07/08/2011 7:16:03 AM PDT by antiRepublicrat
[ Post Reply | Private Reply | To 17 | View Replies]

To: tfecw

I disagree. One of my company’s implemented an Oracle DB for a Fortune 100 company that handles all of their assets world wide and EVERY daily transaction from Purchase Orders to a Maintenance guy putting a drop of oil on a machine in Bum F Egypt; including inventory of parts and finished goods. Daily data dump is in the hundreds of gigs. Makes Facebook look like child’s play.


99 posted on 07/08/2011 7:19:45 AM PDT by mad_as_he$$ (Morgan at Cowpens.)
[ Post Reply | Private Reply | To 11 | View Replies]

To: NVDave
As far as I can see, things like databases, database schema, grunt-work business data processing... are all too mundane to receive any treatment in the CS department at Harvard

I've seen databases with tens of millions of records crushed not under the load itself, but under the poor design of the database. Redesign the database, and you can run it much faster on even slower hardware.

100 posted on 07/08/2011 7:25:05 AM PDT by antiRepublicrat
[ Post Reply | Private Reply | To 26 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-20 ... 61-8081-100101-120121-127 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson