Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService...
-
Upload
vuongthuan -
Category
Documents
-
view
219 -
download
4
Transcript of Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService...
![Page 1: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/1.jpg)
Cloud Cloud
![Page 2: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/2.jpg)
What is a cloud?
Collec&on of computa&onal resources (hardware and so5ware) delivered over a network, usually the Internet. 3 dis&nct aspects makes something a “cloud”:
• Resources are usually metered (pay-‐per-‐use). • Resources can be provisioned on-‐demand. • Resources can be manipulated via API.
![Page 3: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/3.jpg)
Service Models
Desktop as a service (DaaS), backend as a service (BaaS), and information technology management as a service (ITMaaS).
![Page 4: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/4.jpg)
Service Models
So5ware as a service (SaaS) is a so5ware licensing and delivery model in which so5ware is licensed on a subscrip&on basis and is centrally hosted, also know as "so5ware on-‐demand". PlaKorm as a service (PaaS) provides compu&ng plaKorms and solu&on stacks as service. Infrastructure as a service(IAAS) provides compu&ng facility as a service.
![Page 5: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/5.jpg)
Examples
Image from http://thegadgetsquare.com/1552/what-is-cloud-computing/
![Page 6: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/6.jpg)
Shared Hosting
• Share same hardware and OS. • Low cost.
• HostGator starts at $3.96/mo • GoDaddy starts at $1.99/mo
• Fewer op&ons and less flexibility. • Less performant. Frequent outages. • Security implica&ons.
![Page 7: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/7.jpg)
Dedicated Hosting
• Leased dedicated hardware (servers, network switches, etc...). • High Cost.
• Typical monthly fee starts at $200/mo. • Greater flexibility and op&ons. • Higher performance. • Long contracts (typically 1 year, but can be upwards of 3 years).
![Page 8: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/8.jpg)
Dedicated Hosting
![Page 9: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/9.jpg)
Co-location
• Purchase and host your own hardware. • High Ini&al Cost (CAPEX).
• A good server can cost upwards of $10k. • Monthly fees for power, network, cooling. • Long contracts (typically 1 year, but can be upwards of 3 years).
![Page 10: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/10.jpg)
Virtual private server (VPS)
• Best compromise between price and performance. • Utilized primitive incarnations of virtualization.
• Pay monthly fee for VPS ($40-$100/mo).
• Security implications.
![Page 11: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/11.jpg)
Virtual private server (VPS)
![Page 12: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/12.jpg)
Which op&on do I choose?
![Page 13: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/13.jpg)
Something’s missing...
![Page 14: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/14.jpg)
I just want to deploy code...
![Page 15: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/15.jpg)
Hire a System Admin
• Due to complexity, the only op&on available was to hire a system admin that knew how to navigate that world. • Sys. Admin would prepare the environment, and deploy your code on your behalf since they know the system best. • This leads to System Admin vs. Developer wars.
![Page 16: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/16.jpg)
The Glory of the Cloud
Simplified cloud infrastructure
![Page 17: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/17.jpg)
The Cloud...
• Abstracts away the complica&on of running a proper server environment. • Controlled through an API so you can “deploy” infrastructure. • En&re environments can be deployed in minutes.
![Page 18: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/18.jpg)
Amazon Web Services cloud
![Page 19: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/19.jpg)
What’s it made of? Anatomy of a cloud
![Page 20: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/20.jpg)
![Page 21: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/21.jpg)
Compute Nodes
• Physical servers running virtualiza&on so5ware. • Provided CPU and Memory resources. • Usually don’t store any permanent data • Connected to mul&ple networks.
![Page 22: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/22.jpg)
Virtualization
• Virtualiza&on allows you to run mul&ple opera&ng systems on a single server.
• Virtualiza&on usually refers to the Hypervisor.
• Mo&va&on for virtualiza&on -‐ most hardware is under-‐u&lized.
• Virtualiza&on increases u&liza&on to get the most out of expensive hardware.
![Page 23: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/23.jpg)
Anatomy continues...
![Page 24: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/24.jpg)
Network Layers
• One network sits in front of Compute Nodes to provide Internet access. • One network sits in the back of Compute Nodes to provide access to Storage layer. • Usually Ethernet and Fibre Op&c based. • Not uncommon to see 10GigE switches.
![Page 25: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/25.jpg)
Storage Layer
• Use of Storage Area Networks (SANs), Network Ahached Storage (NAS), Direct Ahached Storage (DAS).
• Usually in the form of specialized commercial hardware with lots and lots of drives.
• Very Expensive.
• Failures can be catastrophic. • You usually have to buy 2 for redundancy.
![Page 26: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/26.jpg)
Failure example
• On April 20, 2011, some parts of Amazon Web Services suffered a major outage. • A por&on of volumes u&lizing the Elas&c Block Store (EBS) service became "stuck" and were unable to fulfill read/write requests. • It took at least five days for service to be fully restored.
![Page 27: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/27.jpg)
Advantage and disadvantages
![Page 28: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/28.jpg)
The Future...
• A WSJ ar&cle cites “cloud compu&ng” market to explode to $241B by 2020 (up from $41B in 2011). • Dec 2010 -‐ Heroku was acquired by Salesforce.com for $212M! • hhps://aws.amazon.com/solu&ons/case-‐studies/ lists hundreds of major websites using AWS, and that’s just Amazon’s list.
![Page 29: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/29.jpg)
The Future... • Openstack.org is supported by more then hundred “corporate” contributes, with individual contributors in the thousands. • Data locality will con&nue to be a big concern for all players (providers, end users, government bodies) as more legisla&on is passed. • The US EPA es&mates that servers and data centers are responsible for up to 1.5% of the total US electricity consump&on.
![Page 30: Cloud - Department of Computer Science, University of …mashiyat/csc309/Lectures/Cloud.pdfService Models So5ware(as(aservice((SaaS)(is(aso5ware(licensing(and(delivery(model(in(which(so5ware(is(licensed(on](https://reader034.fdocuments.net/reader034/viewer/2022051801/5ae21f7b7f8b9a0d7d8be912/html5/thumbnails/30.jpg)
References
1. http://uoft.fabspaces.cc/wp-content/uploads/2013/11/Clouds.pdf
2. http://web.mit.edu/smadnick/www/wp/2013-01.pdf
3. http://thegadgetsquare.com/1552/what-is-cloud-computing/
4. http://www.tutorialspoint.com/cloud_computing/cloud_computing_tutorial.pdf