Download presentation
Presentation is loading. Please wait.
Published byGwendoline Hensley Modified over 9 years ago
1
Introduction Dr. Ying Lu ylu@cse.unl.edu Schorr Center 104 CSCE990 Advanced Distributed Systems Seminar
2
–Some lecture notes are based on slides created by Dr. Zahorjan at Univ. of Washington, Dr. Konev at Univ. of Liverpool, Steve Crouch at Software Sustainability Institute, Petru Eles at Link ö pings University, and Dr. Majd F. Sakr, Mohammad Hammoud, Vinay Kolar at CMU –I have modified them and added new slides Giving credit where credit is due:
3
Types of Distributed Systems?
8
‘Cloud’ & ‘Grid’ – Utility Computing? The Grid…The Cloud… Is it really like the grid? Is it more like a fog? But… they’re both about providing access to compute and data resources j.o.h.n walker charles.frith
9
The Problem l Basically, want to run compute/data intensive task l Don’t have enough resources to run job locally n At least, to return results within sensible timeframe l Would like to use another, more capable resource
10
Distributed Computing in Olden Times l Small number of ‘fast’ computers n Very expensive n Centralized n Used nearly all the time n Time allocations for users n Not updated often brewbooks Cray X-MP (Cray -1 successor) Univac 1710 Michael L. Umbricht and Carl R. Friend Punched cards Wait time huge MailNet, SneakerNet, etc… Mainframes Cray-1 1976 - $8.8 million, 160 megaflops, 8MB memory
11
It’s About Scaling Up… l Compute and data – you need more, you go somewhere else to get it Local Institutional National International Then… the march towards localization of computation, the Personal Computer Computational Science develops in laboratories Is this changing again? Images: nasaimages, Extra Ketchup, Google Maps, Dave Page
12
What is Cloud Computing? l Many ways to define it i.e. one for every supplier of ‘cloud’ l Key characteristics: n On demand, dynamic allocation of resources – ‘elasticity’ n Abstraction n Self-managed n Billed for what you use e.g. in terms of CPU, storage n Standardized interfaces e.g. OCCI l … it’s more like an electricity grid than the Grid
13
How Does it Deliver? 1- IaaS - Infrastructure as a Service HardwareOS 2- PaaS - Platform as a Service FrameworkMiddleware 3- SaaS - Software as a Service Hosted ApplicationsInfrastructure l Cloud computing can deliver at any of these levels l These levels are often blurred and routinely disputed! l Resources provided on demand Internet End user/ Customer Developer / Service Provider
14
IaaS – Infrastructure as a Service l You get access to (usually) virtualised hardware n Servers, storage, networking n Operating system l Responsible for managing OS, middleware, runtime, data, application (development) l e.g. Amazon EC2
15
Amazon EC2 – The Idea l ‘Elastic Computing’ l Sign up l Select & configure virtualized resources n Emulated OS: RHEL, OEL, Windows Server, OpenSolaris, Fedora, Ubuntu, Debian, SUSE, Gentoo, Amazon Linux AMI n Infrastructure: u Data: IBM DB2, IBM Informix, Microsoft SQL, MySQL, Oracle u Web Hosting: Apache HTTP, IIS/Asp.NET, IBM WebSphere u Batch Processing: Hadoop, Condor, Open MPI n Newer addition - development environments: u IBM sMash, Ruby on Rails, Jboss Enterprise Application Platform n Moving towards PaaS! (Already there?) l Additional web services n S3: Simple Storage Solution – transfer data in/out, 1 byte to 5 TB n SQS: Simple Queue Service
16
Amazon EC2: Pricing l Free (at the start!): n Run single Amazon Micro Instance for a year n 750 hours of EC2, 750 hours of Elastic Load Balancing plus 15 GB data processing n 15 GB bandwidth in/out across all services l On demand instances: n Pay per hour, no long-term commitment n From $0.025/hour -> $0.76/hour l Reserved instances: n Upfront payment, with discount per hour n From $227/year + $0.01/hour -> $1820/year + $0.32/hour l Spot instances: n Bid for unused EC2 capacity: n Spot Price fluctuates with supply/demand, if bid over Spot Price, you get it n From $0.007/hour -> $0.68/hour
17
EC2 Application Example l Peter Harkins, a Senior Engineer at The Washington Post, used 200 EC2 instances (1,407 server hours) to convert 17,481 pages of Hillary Clinton’s travel documents into a form more friendly to use on the WWW within nine hours after they were released* * http://aws.amazon.com/solutions/case-studies/washington-post/
18
PaaS – Platform as a Service l You get integrated development environment n e.g. application design, testing, deployment, hosting, frameworks for database integration, storage, app versioning, etc. l Develop applications on top l Responsible for managing data, application (development) l e.g. Google App Engine
19
Google App Engine: The Idea l Sign up via Google Accounts l Develop App Engine web applications locally using SDK – emulates all services n Includes tool to upload application code, static files and config files n Can ‘version’ your web application instances l Apps run in a Java/Python ‘sandbox’ l Automatic scaling and load balancing – abstract across underlying resources
20
Google App Engine: Pricing l Free within a quota: n 500MB storage, 5 million page views a month (~6.5 CPU hours, 1GB) n 10 applications/developer l Billed model: n Each app $8/user (max $1000) a month n For each app: ResourceUnitUnit cost Outgoing bandwidthGB$0.12 Incoming bandwidthGB$0.10 CPU TimeCPU hours$0.10 Stored DataGB/month$0.15 High Replication Stg. GB/month$0.45 Recipients EmailedRecipients$0.0001 Always OnN/A (daily)$0.30
21
SaaS – Software as a Service l Top layer consumed directly by end user – the ‘business’ functionality l Application software provided, you configure it (more or less) l Various levels of maturity: n Level 1: each customer has own customised version of application in own instance n Level 2: all instances use same application code, but configured individually n Level 3: single instance of application across all customers n Level 4: multiple customers served on load-balanced ‘farm’ of identical instances n Levels 3 & 4: separate customer data! l e.g. Gmail, Google Sites, Google Docs, Facebook
22
Summary of Provision Application Migration – adopt the level you want
23
Cloud Open Standards l Implementations typically have proprietary standards and interfaces n Vendors like this – often locked in to one implementation l Community ‘push’ towards open cloud standards: n Open Grid Forum (OGF) – Open Cloud Computing Interface (OCCI) n Distributed Management Task Force (DMTF) – Open Virtualisation Format (OVF)
30
Why should you Study Distributed Systems? Application DomainAssociated Networked Application Finance and commerceeCommerce e.g. Amazon and eBay, PayPal, online banking and trading The information societyWeb information and search engines, ebooks, Wikipedia; social networking: Facebook and MySpace. Creative industries and entertainmentonline gaming, music and film in the home, user-generated content, e.g. YouTube, Flickr Healthcarehealth informatics, on online patient records, monitoring patients Educatione-learning, virtual learning environments; distance learning Transport and logisticsGPS in route finding systems, map services: Google Maps, Google Earth ScienceThe Grid as an enabling technology for collaboration between scientists Environmental managementsensor technology to monitor earthquakes, floods or tsunamis Application DomainAssociated Networked Application Finance and commerceeCommerce e.g. Amazon and eBay, PayPal, online banking and trading The information societyWeb information and search engines, ebooks, Wikipedia; social networking: Facebook and MySpace. Creative industries and entertainmentonline gaming, music and film in the home, user-generated content, e.g. YouTube, Flickr Healthcarehealth informatics, on online patient records, monitoring patients Educatione-learning, virtual learning environments; distance learning Transport and logisticsGPS in route finding systems, map services: Google Maps, Google Earth ScienceThe Grid as an enabling technology for collaboration between scientists Environmental managementsensor technology to monitor earthquakes, floods or tsunamis Application DomainAssociated Networked Application Finance and commerceeCommerce e.g. Amazon and eBay, PayPal, online banking and trading The information societyWeb information and search engines, ebooks, Wikipedia; social networking: Facebook and MySpace. Creative industries and entertainmentonline gaming, music and film in the home, user-generated content, e.g. YouTube, Flickr Healthcarehealth informatics, on online patient records, monitoring patients Educatione-learning, virtual learning environments; distance learning Transport and logisticsGPS in route finding systems, map services: Google Maps, Google Earth ScienceThe Grid as an enabling technology for collaboration between scientists Environmental managementsensor technology to monitor earthquakes, floods or tsunamis Application DomainAssociated Networked Application Finance and commerceeCommerce e.g. Amazon and eBay, PayPal, online banking and trading The information societyWeb information and search engines, ebooks, Wikipedia; social networking: Facebook and MySpace. Creative industries and entertainmentonline gaming, music and film in the home, user-generated content, e.g. YouTube, Flickr Healthcarehealth informatics, on online patient records, monitoring patients Educatione-learning, virtual learning environments; distance learning Transport and logisticsGPS in route finding systems, map services: Google Maps, Google Earth ScienceThe Grid as an enabling technology for collaboration between scientists Environmental managementsensor technology to monitor earthquakes, floods or tsunamis Application DomainAssociated Networked Application Finance and commerceeCommerce e.g. Amazon and eBay, PayPal, online banking and trading The information societyWeb information and search engines, ebooks, Wikipedia; social networking: Facebook and MySpace. Creative industries and entertainmentonline gaming, music and film in the home, user-generated content, e.g. YouTube, Flickr Healthcarehealth informatics, on online patient records, monitoring patients Educatione-learning, virtual learning environments; distance learning Transport and logisticsGPS in route finding systems, map services: Google Maps, Google Earth ScienceThe Grid as an enabling technology for collaboration between scientists Environmental managementsensor technology to monitor earthquakes, floods or tsunamis Application DomainAssociated Networked Application Finance and commerceeCommerce e.g. Amazon and eBay, PayPal, online banking and trading The information societyWeb information and search engines, ebooks, Wikipedia; social networking: Facebook and MySpace. Creative industries and entertainmentonline gaming, music and film in the home, user-generated content, e.g. YouTube, Flickr Healthcarehealth informatics, on online patient records, monitoring patients Educatione-learning, virtual learning environments; distance learning Transport and logisticsGPS in route finding systems, map services: Google Maps, Google Earth ScienceThe Grid as an enabling technology for collaboration between scientists Environmental managementsensor technology to monitor earthquakes, floods or tsunamis Application DomainAssociated Networked Application Finance and commerceeCommerce e.g. Amazon and eBay, PayPal, online banking and trading The information societyWeb information and search engines, ebooks, Wikipedia; social networking: Facebook and MySpace. Creative industries and entertainmentonline gaming, music and film in the home, user-generated content, e.g. YouTube, Flickr Healthcarehealth informatics, on online patient records, monitoring patients Educatione-learning, virtual learning environments; distance learning Transport and logisticsGPS in route finding systems, map services: Google Maps, Google Earth ScienceThe Grid as an enabling technology for collaboration between scientists Environmental managementsensor technology to monitor earthquakes, floods or tsunamis Application DomainAssociated Networked Application Finance and commerceeCommerce e.g. Amazon and eBay, PayPal, online banking and trading The information societyWeb information and search engines, ebooks, Wikipedia; social networking: Facebook and MySpace. Creative industries and entertainmentonline gaming, music and film in the home, user-generated content, e.g. YouTube, Flickr Healthcarehealth informatics, on online patient records, monitoring patients Educatione-learning, virtual learning environments; distance learning Transport and logisticsGPS in route finding systems, map services: Google Maps, Google Earth ScienceThe Grid as an enabling technology for collaboration between scientists Environmental managementsensor technology to monitor earthquakes, floods or tsunamis
31
Definition of a Distributed System A distributed system is: A collection of independent computers that appear to its users as a single coherent system (Tanenbaum book) One in which components located at networked computers communicate and coordinate their actions only by passing messages (Coulouris book)
32
Why Distributed Systems? l Scale n Processing n Data l Diversity in Application Domains l Collaboration l Cost
33
Why Distributed Systems? A. Big data continues to grow: In mid-2010, the information universe carried 1.2 zettabytes and 2020 predictions expect nearly 44 times more at 35 zettabytes coming our way. B. Applications are becoming data-intensive.
34
Why Distributed Systems? C. Individual computers have limited resources compared to scale of current day problems & application domains: 1. Caches and Memory: L1 Cache L2 Cache L3 Cache Main Memory 16KB- 64KB, 2-4 cycles 512KB- 8MB, 6-15 cycles 4MB- 32MB, 30-50 cycles 1GB- 4GB, 300+ cycles
35
Why Distributed Systems? 2. Hard Disk Drive: Limited capacity Limited number of channels Limited bandwidth
36
Why Distributed Systems? P L1 L2 P L1 L2 Cache P L1 P P Interconnect 3.Processor: The number of transistors that can be integrated on a single die has continued to grow at Moore’s pace. Chip Multiprocessors (CMPs) are now available A single Processor Chip A CMP
37
Why Distributed Systems? 3.Processor (cont’d): Up until a few years ago, CPU speed grew at the rate of 55% annually, while the memory speed grew at the rate of only 7% [H & P]. Memory P M P L1 L2 P L1 L2 Cache P L1 P P Interconnect Processor-Memory speed gap
38
Why Distributed Systems? Even if 100s or 1000s of cores are placed on a CMP, it is a challenge to deliver input data to these cores fast enough for processing. A Data Set of 4 TBs 4 100MB/S IO Channels 10000 seconds (or 3 hours) to load data Memory P L1 L2 Cache P L1 P P Interconnect
39
Why Distributed Systems? Only 3 minutes to load data A Data Set (data) of 4 TBs Splits Memory P L1 L2 Memory P L1 L2 100 Machines
40
Requirements But this requires: A way to express the problem as parallel processes and execute them on different machines (Programming Models and Concurrency). A way for processes on different machines to exchange information (Communication). A way for processes to cooperate, synchronize with one another and agree on shared values (Synchronization). A way to enhance reliability and improve performance (Consistency and Replication).
41
Requirements But this requires (Cont.): A way to recover from partial failures (Fault Tolerance). A way to secure communication and ensure that a process gets only those access rights it is entitled to (Security). A way to extend interfaces so as to mimic the behavior of another system, reduce diversity of platforms, and provide a high degree of portability and flexibility (Virtualization)
42
Course Objective l This is a course on advanced distributed systems, where we will understand the state of the art in distributed systems, in particular, data-intensive distributed computing systems, and how and why we got there and how to engage in systems research.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.