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.

Introduction to Apache Mesos

24,697 views

Published on

What is Apache Mesos and how to use it. A short introduction to distributed fault-tolerant systems with using ZooKeeper and Mesos. #installfest Prague 2014

Published in: Technology
  • My experience with essay services has generally been very positive. I requested a writer from HelpWriting.net to write my English essay on Jane Eyre because I was really short on time (that week my family had to move houses unexpectedly and I had no time whatsoever to sit down at a computer and do work.) Needless to say the services were good and my essay was done really quickly. The writer that I picked followed directions well. Of course, if you can do it yourself, then do so but if it’s an end-all-be-all situation I definitely recommend HelpWriting.net
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Follow the link, new dating source: ❤❤❤ http://bit.ly/2Q98JRS ❤❤❤
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Sex in your area is here: ♥♥♥ http://bit.ly/2Q98JRS ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Unlock Her Legs is your passage way to a life full of loving and sex... read more ... ➤➤ http://ishbv.com/unlockher/pdf
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that 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 that 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 That 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 That 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 that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Introduction to Apache Mesos

  1. 1. Tomas Barton (@barton_tomas)
  2. 2. Load balancing • one server is not enough
  3. 3. Time to launch new instance • new server up and runing in a few seconds
  4. 4. Job allocation problem • run important jobs first • how many servers do we need?
  5. 5. Load trends • various load patterns
  6. 6. Goals • effective usage of resources
  7. 7. Goals • scalable
  8. 8. Goals • fault tolerant
  9. 9. Infrastructure 1 scalable 2 fault-tolerant 3 load balancing 4 high utilization
  10. 10. Someone must have done it before . . .
  11. 11. Someone must have done it before . . . Yes, it was Google
  12. 12. Google Research 2004 - MapReduce paper • MapReduce: Simplified Data Processing on Large Clusters by Jeffrey Dean and Sanjay Ghemawat from Google Lab ⇒ 2005 - Hadoop • by Doug Cutting and Mike Cafarella
  13. 13. Google’s secret weapon “I prefer to call it the system that will not be named.” John Wilkes
  14. 14. NOT THIS ONE
  15. 15. “Borg” unofficial name distributes jobs between computers saved cost of building at least one entire data center − centralized, possible bottleneck − hard to adjust for different job types
  16. 16. “Borg” 200x – no Borg paper at all 2011 – Mesos: a platform for fine-grained resource sharing in the data center. • Benjamin Hindman, Andy Konwinski, Matei Zaharia, Ali Ghodsi, Anthony D. Joseph, Randy Katz, Scott Shenker, and Ion Stoica. Berkeley, CA, USA
  17. 17. The future? 2013 – Omega: flexible, scalable schedulers for large compute clusters • Malte Schwarzkopf, Andy Konwinski, Michael Abd-El-Malek, John Wilkes (SIGOPS European Conference on Computer Systems (EuroSys), ACM, Prague, Czech Republic (2013), pp. 351-364) • compares different schedulers • monolithic (Borg) • Mesos (first public release, version 0.9) • Omega (next generation of Borg)
  18. 18. Benjamin Hindman • PhD. at UC Berkley • research on multi-core processors “Sixty-four cores or 128 cores on a single chip looks a lot like 64 machines or 128 machines in a data center”
  19. 19. “We wanted people to be able to program for the data center just like they program for their laptop.”
  20. 20. Evolution of computing Datacenter • low utilization of nodes • long time to start new node (30 min – 2 h)
  21. 21. Evolution of computing Datacenter Virtual Machines • even more machnines to manage • high virtualization costs • VM licensing
  22. 22. Evolution of computing Datacenter Virtual Machines • sharing resources • fault-tolerant Mesos
  23. 23. Supercomputers • supercomputers aren’t affordable • single point of failure?
  24. 24. IaaC Infrastructure as a computer • build on commodity hardware
  25. 25. Scalablity
  26. 26. First Rule of Distributed Computing “Everything fails all the time.” — Werner Vogels, CTO of Amazon
  27. 27. Slave failure • no problem
  28. 28. Master failure • big problem • single point of failure
  29. 29. Master failure – solution • ok, let’s add secondary master
  30. 30. Secondary master failure × not resistant to secondary master failure × masters IPs are stored in slave’s config • will survive just 1 server failure
  31. 31. Leader election in case of master failure new one is elected
  32. 32. Leader election in case of master failure new one is elected
  33. 33. Leader election • you might think of the system like this:
  34. 34. Mesos scheme • usually 4-6 standby masters are enough • tolerant to |m| failures, |s| |m| |m| . . . number of standby masters |s| . . . number of slaves
  35. 35. Mesos scheme • each slave obtain master’s IP from Zookeeper • e.g. zk://192.168.1.1:2181/mesos
  36. 36. Common delusion 1 2 3 4 Network is reliable Latency is zero Transport cost is zero The Network is homogeneous
  37. 37. Cloud Computing design you application for failure • split application into multiple components • every component must have redundancy • no common points of failure
  38. 38. “If I seen further than others it is by standing upon the shoulders of giants.” Sir Isaac Newton
  39. 39. ZooKeeper
  40. 40. ZooKeeper
  41. 41. ZooKeeper
  42. 42. ZooKeeper • not a key-value storage • not a filesystem • 1 MB item limit
  43. 43. Frameworks • framework – application running on Mesos two components: 1 scheduler 2 executor
  44. 44. Scheduling • two levels scheduler • Dominant Resource Fairness
  45. 45. Mesos architecture • fault tolerant • scalable
  46. 46. Isolation
  47. 47. • using cgroups • isolates: • CPU • memory • I/O • network
  48. 48. Example usage – GitLab CI
  49. 49. AirBnB
  50. 50. Any web application can run on Mesos
  51. 51. Distributed cron
  52. 52. YARN Alternative to Mesos • Yet Another Resource Negotiator
  53. 53. Where to get Mesos? • tarball – http://mesos.apache.org • deb, rpm – http://mesosphere.io/downloads/ • custom package – https: //github.com/deric/mesos-deb-packaging • AWS instance in few seconds – https://elastic.mesosphere.io/
  54. 54. Configuration management • automatic server configuration • portable • should work on most Linux distributions (currently Debian, Ubuntu) • https://github.com/deric/puppet-mesos
  55. 55. Thank you for attention! tomas.barton@fit.cvut.cz
  56. 56. Resources • Containers – Not Virtual Machines – Are the Future Cloud • Managing Twitter clusters with Mesos • Return of the Borg: How Twitter Rebuilt Google’s Secret Weapon • Mesos: A Platform for Fine-Grained Resource Sharing in the Data Center, Hindman, Benjamin and Konwinski, Andrew and Zaharia, Matei and Ghodsi, Ali and Joseph, Anthony D. and Katz, Randy H. and Shenker, Scott and Stoica, Ion; EECS Department, University of California, Berkeley 2010

×