Docsity

Cloud Computing - Clouds and Power Aware Computing - Lecture Notes, Study notes of Computer Science

Partial preview of the text

Download Cloud Computing - Clouds and Power Aware Computing - Lecture Notes and more Study notes Computer Science in PDF only on Docsity!

A programming paradigm for distributed applications A business paradigm for reassigning business risk An infrastructure paradigm for greening the data center What is "Cloud Computing"? What is a cloud? Monday, January 25, 2010 12:13 PM Docsity.com

No useful concept of a file or a database. Throw data instances into (or perhaps "at") the cloud. Query the cloud whenever you need something back. Cloud is an opaque data container that does all of the work of persistence and integrity for you. Clouds as a programming paradigm A new programming paradigm Monday, January 25, 2010 12:16 PM Docsity.com

Fact: power needs for computing are growing without bound. One way to reduce power consumption is to exploit economy of scale. Running one large datacenter and sharing resources takes much less power than several small datacenters for specific purposes. Clouds and green computing Clouds and green computing Monday, January 25, 2010 12:21 PM Docsity.com

Software-as-a-service (SaaS): a high-availability application is provided for ubiquitous access by the consumer. (gmail) Platform-as-a-service (PaaS): cloud provider makes a programming platform available to a client, for running the client's programs in serving the client's customers. (Google Apps) Infrastructure-as-a-service (IaaS): bare-metal or virtual machines are provided to a company for their own use, in a remote datacenter. (Amazon) Kinds of clouds: Kinds of clouds Monday, January 25, 2010 12:27 PM Docsity.com

Customer provides a "cloud-aware application". Program runs on Google's servers. Example of PaaS: Google AppEngine Microsoft Azure Yahoo Hadoop Other examples: PaaS: Google AppEngine Monday, January 25, 2010 12:35 PM Docsity.com

Customer pays Amazon to host an application. Customer provides images of linux servers. Amazon charges customer only when servers are needed and running. Example of IaaS: Amazon Web Services "Build your own" infrastructure management. You're responsible for "maintaining the cloud". Another example: eucalyptus IaaS: Amazon Web Services Monday, January 25, 2010 12:30 PM Docsity.com

In a public cloud, you potentially share resources with competitors. (Amazon EC2) In a private cloud, your machines and infrastructure are dedicated to your use. (Eucalyptus) Public versus private clouds Public versus private Monday, January 25, 2010 12:58 PM Docsity.com

Writing cloud-enabled applications Cloudsourcing: adapting non-cloud and legacy applications to a cloud. Security and privacy: understanding risks and guarantees in public and private settings. Availability and elasticity: making a cloud respond to changes in demand. Power awareness: making the cloud "green". Cloud challenges Cloud challenges Monday, January 25, 2010 1:00 PM Docsity.com

First stage: web applications. Second stage: applet/servlet architecture. Third stage: service-oriented architectures (SOAs). Fourth stage: cloud applications -- what we will study. PaaS has rapidly evolved through several distinct steps: Good news: no SOAP or REST Bad news: other difficulties arise instead! Evolution of PaaS Monday, January 25, 2010 12:22 PM Docsity.com

CGI request: what is wanted. CGI response: response to the request. Web "pages" communicate with "web servers" via the Common Gateway Interface (CGI) Requests are generated by user, responses are returned directly to the user. First stage: web applications Web applications Monday, January 25, 2010 12:26 PM Docsity.com

Example: let google Maps draw a map. Outsource certain functions to third parties. SOAP: Simple Object Access Protocol REST: Representative State Transfer Web page uses JavaScript to invoke services, and communicates with services via protocols. Third stage: service-oriented architecture (SOA) This is the basic pattern of Web 2.0. Service-oriented architecture (SOA) Monday, January 25, 2010 12:46 PM Docsity.com

No more browser or html or javascript involved! An application on the client host communicates "directly with the cloud" via some protocol. A client part that mediates between the user and a server part. A server part that mediates between the client part and the cloud, via some request/response protocol. Usually two parts to each application: Fourth stage: cloud applications You (as a programmer) write one thing. It is translated (automagically) into two sides. You don't need to understand SOAP. You don't need to understand storage. It just happens. A mysterious ritual: Cloud applications Monday, January 25, 2010 12:50 PM Docsity.com

Client: a program "on the phone" that displays data. Server: a program "in the google cloud" that interacts with Google and makes data available. Target cloud: google AppEngine. Example: android "applications" Example: android Monday, January 25, 2010 12:53 PM Docsity.com

Data storage occurs at a very high level of abstraction. Access data mostly via object interfaces. Must conceive of data storage without structure. Cloud handles all structural optimizations. A lot of programming the cloud lies in trusting the optimizations of the cloud, and not interfering with them! One challenge: thinking appropriately for a cloud Thinking in the cloud Monday, January 25, 2010 1:03 PM Docsity.com