Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Fusion-io and MySQL at Craigslist

13,813 views

Published on

My talk from the 2011 Percona Live conference in San Francisco.

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/yxufevpm } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL. BOOKS INTO AVAILABLE FORMAT, ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Wait a sec: FusionIO are not bootable, right? So in addition to the dual drives in RAID0, what did you use to host the OS on?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Heh, yeah. I dunno what will become of those old boxes. They do have a tendency to corrupt their RAID arrays semi-regularly too. That could be a whole separate rant!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Fusion-io and MySQL at Craigslist

  1. Fusion-io and MySQL 5.5at Craigslist<br />Jeremy Zawodny<br />Jeremy@Zawodny.com<br />jzawodn@craigslist.org<br />
  2. Story Time<br />(but first, some architecture<br />and numbers)<br />
  3. Some Numbers<br />~100,000,000 postings in live database<br />Over 1,000,000,000 page views daily<br />High churn rate (avg lifetime ~14 days)<br />~350-500GB on disk<br />MySQL 5.5.x and InnoDB Compression<br />Used to be ~100-150GB larger (or more!)<br />All records touched multiple times<br />98% of queries are OLTP<br />
  4. The Posting Cache<br />Web Server Tier<br />(apache/mod_perl)<br />Posting Cache Tier<br />(memcached + perl)<br />Database Tier<br />(MySQL)<br />
  5. The Problem<br />Adding more memcached nodes<br />Lots of cache misses initially<br />MySQL boxes take a big query load<br />(time passes)<br />MySQL boxes pegged many hours later<br />(time passes)<br />Next day: WTF?!<br />
  6. Fire!<br />Web Server Tier<br />(apache/mod_perl)<br />We were sending nearly 30% of requests all the way back to the DB tier instead of the normal 2-5%<br />Posting Cache Tier<br />(memcached + perl)<br />Database Tier<br />(MySQL)<br />
  7. Solution<br />Let’s put the New Hardware in the pool<br />Add 4 machines<br />And it still sucked…<br />The 4 were fast but only took ~20% of the hits<br />Remove all the Old Hardware<br />Remove 14 of 18 machines<br />Sounds totally sane, right?<br />
  8. Old Hardware<br />3 years old<br />3U, Dual AMD 2218 HE<br />32GB RAM<br />16 15k RPM SAS disks<br />RAID-10<br />~2,000 iops/sec<br />~325 watts<br />
  9. New Hardware<br />HP DL-380G6<br />Intel Xeon X5570<br />Dual Proc, Quad Core, HT<br />16 “cores”<br />Dual Fusion-io 640GB SLC<br />Software RAID-0<br />~80,000 iops/sec (conservative)<br />~200 watts<br />
  10. Before and After<br />Load Average<br />I/O Capacity of Data Disks<br />Night and Day!<br />Old boxes return to “steady state”<br />
  11. This Chart Should be Green<br />Average power for Fusion-io equipped server: ~200 watts.<br />It was closer to 160 when replicating but not serving traffic.<br />
  12. Fusion-io FTW<br />Can you tell when this machine started getting live traffic?<br />OLTP means disk matters WAY more than CPU<br />Into the fire!<br />
  13. The Numbers<br />Old: 2,000iops / 325W = 6.15 iops/watt<br />New: 40,000iops / 200W = 200 iops/watt<br />Conservatively assumes a lot of degradation<br />33-66x performance/watt<br />But let’s just call it 50x<br />
  14. Epilogue<br />A week later, we re-purposed 1 Fusion-io box<br />The cache eventually did fill<br />Poor slab size configuration had been causing early expiration of cached objects<br />14 “old” servers: 4,500 watts<br />28,000 iops/sec capacity<br />3 “new” servers: 570 watts<br />240,000+ iops/sec capacity<br />What to do with 10+ spare “db class” boxes?<br />

×