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 1-2021-4041-6061-80 ... 121-127 next last
I've never heard of this problem but what do you guys think?
1 posted on 07/07/2011 8:55:55 PM PDT by TenthAmendmentChampion
[ Post Reply | Private Reply | View Replies]

To: TenthAmendmentChampion

Shoking. NOT. No replacement for Oracle.


2 posted on 07/07/2011 8:59:51 PM PDT by Peter from Rutland
[ Post Reply | Private Reply | To 1 | View Replies]

To: All


If You Haven't Donated Yet
Please Help To End The FReepathon
By Clicking here!!

3 posted on 07/07/2011 9:03:06 PM PDT by musicman (Until I see the REAL Long Form Vault BC, he's just "PRES__ENT" Obama = Without "ID")
[ Post Reply | Private Reply | To 1 | View Replies]

Translation?


4 posted on 07/07/2011 9:03:10 PM PDT by smokingfrog ( sleep with one eye open ( <o> ---)
[ Post Reply | Private Reply | To 1 | View Replies]

To: TenthAmendmentChampion
I've never heard of this problem but what do you guys think?

PostgreSQL.

Flame-retardant equipment deployed here for what will be an incendiary thread. And it's ess-que-ell not sequel. :-) Harumph!

5 posted on 07/07/2011 9:04:48 PM PDT by re_nortex (DP...that's what I like about Texas.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: smokingfrog

I think it means spaghetti code.

But in query form.


6 posted on 07/07/2011 9:05:06 PM PDT by Cringing Negativism Network (SOAK THE GLOBALISTS. Globalists destroy US jobs.)
[ Post Reply | Private Reply | To 4 | View Replies]

To: TenthAmendmentChampion

I run mysql and have dealt a little with memcahed stuff for a ticketing database. The problems facebook might have depends of which data storage engine they run, likely innodb, which are huge relational glop files. I run myisam tables for speed and because I’m only dealing with a gigabyte of data.

But yes, switching to another database would require a very bug prone rewrite with many database quirks. The language (SQL) is not consistently implemented from database maker to database maker and the connectors are inconsistent. They’d also be stuck with an oracle or sqlserver license fee out the wazoo.


7 posted on 07/07/2011 9:07:14 PM PDT by DaxtonBrown (HARRY: Money Mob & Influence (See my Expose on Reid on amazon.com written by me!))
[ Post Reply | Private Reply | To 1 | View Replies]

To: Cringing Negativism Network

Basically yes but a bit more complex. Easily translated: you do not run REALLY large operations on freeware. You get what you pay for. Oracle is the best. Become one with the Borg.


8 posted on 07/07/2011 9:07:33 PM PDT by Peter from Rutland
[ Post Reply | Private Reply | To 6 | View Replies]

To: smokingfrog

IOW....it would be a ‘hacker’s delight’???


9 posted on 07/07/2011 9:08:06 PM PDT by RushIsMyTeddyBear (Mr. Weiner...Don' t Tweet your meat. It's too late to delete!)
[ Post Reply | Private Reply | To 4 | View Replies]

To: TenthAmendmentChampion
Having a database of nearly 300,000 items, it is becoming a maze of kludges to keep it barely functional, mostly because our database provider is using MySQL, and updating 300,000 items would occupy multiple servers for the better part of two days to accomplish it, an impossible task for a system that needs to respond in real world time.

So rather than update, patches are applied to the output to make changes when served. And it's working ok for the moment, but it is swiftly reaching the horizon of functionality. At a growth rate of 52,000 items a year, we've at most two years left of the database before it becomes impossibly bogged down, without throwing extensive hardware at the problem.

And we're a tiny company of just ten people.

10 posted on 07/07/2011 9:08:14 PM PDT by kingu (Everything starts with slashing the size and scope of the federal government.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Peter from Rutland
I doubt oracle would be doing any better and would cost a hell of a lot more. Facebook is pretty much in uncharted waters with their scaling. Look for another custom solution similar to haystack or scribe that fits their specific requirements.
11 posted on 07/07/2011 9:08:32 PM PDT by tfecw (It's for the children)
[ Post Reply | Private Reply | To 2 | View Replies]

To: re_nortex; ShadowAce
"And it's ess-que-ell not sequel. :-) Harumph!"

ROFL!!!! That alone is contentious enough to get us through several pages of debate/flame wars!

For the record, I've always referred to it as 'sequel'. Not passionate about it, just seems to roll off the tongue a bit easier spoken that way.

12 posted on 07/07/2011 9:14:24 PM PDT by KoRn (Department of Homeland Security, Certified - "Right Wing Extremist")
[ Post Reply | Private Reply | To 5 | View Replies]

To: TenthAmendmentChampion
I've never heard of this problem but what do you guys think?

The problem is common, and has nothing to do with MySQL, ProgSQL, or Oracle.

It has to do with lazy barstids that didn't do the work up front and became frantic barstids, trying to keep the thing working.

It's a common engineering problem. Systems Engineering, not just for aerospace.

Someone has to ask (and answer) "what is the growth path?"

I'm doing engineering on a start-up now. And we're good on growth path until I sell out or die. And then I don't care.

/johnny

13 posted on 07/07/2011 9:15:17 PM PDT by JRandomFreeper (Gone Galt)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Peter from Rutland; John Robinson
No replacement for Oracle.

What's the backend RDBMS here on FR?

Of course, Perl is the glue but I wonder if the database access is via the DBI layer or if it uses the native APIs?

14 posted on 07/07/2011 9:15:39 PM PDT by re_nortex (DP...that's what I like about Texas.)
[ Post Reply | Private Reply | To 2 | View Replies]

To: smokingfrog
Translation?

Facebook started their enterprise using a database called MySQL. (SQL is an an acronym meaning Structured Query Language)
They didn't see the potential of their enterprise and stuck with MySQL and when the thing expanded exponentially they were caught unawares. Call it a lack of vision.

Now, their database isn't beefy enough (supposedly) to handle all the daily transactions it must deal with. They are breaking the thing down into smaller chunks so it doesn't slow to a crawl and piss off the kiddies who simply MUST get their Facebook fix every 5 minutes.
Or something like that.

The should have migrated to Oracle a long time ago.

15 posted on 07/07/2011 9:17:08 PM PDT by Bloody Sam Roberts (If you think it's time to bury your weapons.....it's time to dig them up.)
[ Post Reply | Private Reply | To 4 | View Replies]

To: kingu

I manage a Informix database of up to 1.5 million items, with large associated blob items, and it runs like a charm on a modest HP Unix server.

Makes me wonder about the tiny little MySQL stuff I play with on the side.


16 posted on 07/07/2011 9:17:28 PM PDT by gura (If Allah is so great, why does he need fat sexually confused fanboys to do his dirty work? -iowahawk)
[ Post Reply | Private Reply | To 10 | View Replies]

To: TenthAmendmentChampion

Two words.

Z196
DB2

Nuff said.


17 posted on 07/07/2011 9:19:58 PM PDT by djf ("Life is never fair...And perhaps it is a good thing for most of us that it is not." Oscar Wilde)
[ Post Reply | Private Reply | To 1 | View Replies]

To: KoRn
[ess-que-ell not sequel] ROFL!!!! That alone is contentious enough to get us through several pages of debate/flame wars!

Heh! Just wait until we start on brace and indentation styles (K&R vs. Allman)! And of course, there's always vi vs. emacs -- but that battle has been won since vim came along. Perl vs. Python. C# vs. Java...

:-) * 10e6

18 posted on 07/07/2011 9:20:02 PM PDT by re_nortex (DP...that's what I like about Texas.)
[ Post Reply | Private Reply | To 12 | View Replies]

To: djf

Model204.


19 posted on 07/07/2011 9:20:43 PM PDT by Cementjungle
[ Post Reply | Private Reply | To 17 | View Replies]

To: TenthAmendmentChampion; Swordmaker; Ernest_at_the_Beach; ShadowAce

Thanks TenthAmendmentChampion.
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.
Over a year ago I read that FB had (at that time) 30,000 servers, and hosted more pix than all other sites combined. As the old saying goes, it's not that the dancing bear dances well, it's that he dances at all.


20 posted on 07/07/2011 9:21:24 PM PDT by SunkenCiv (Yes, as a matter of fact, it is that time again -- https://secure.freerepublic.com/donate/)
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-4041-6061-80 ... 121-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