Cloud Talks EB Sep 20

download Cloud Talks EB Sep 20

of 42

Transcript of Cloud Talks EB Sep 20

  • 8/8/2019 Cloud Talks EB Sep 20

    1/42

    Cloud Computing

    Development

  • 8/8/2019 Cloud Talks EB Sep 20

    2/42

    Cloud Computing

    Development

    Shallow Introduction

  • 8/8/2019 Cloud Talks EB Sep 20

    3/42

    Introduction

  • 8/8/2019 Cloud Talks EB Sep 20

    4/42

    What is the cloud computing

    Is it computing while in flight?

    Image Courtesy SevensHeaven.nl

  • 8/8/2019 Cloud Talks EB Sep 20

    5/42

    What is the cloud computing

    Is it computing while in flight?

    NO

    Image Courtesy SevensHeaven.nl

  • 8/8/2019 Cloud Talks EB Sep 20

    6/42

    What is the cloud computing

    What is it about then?

  • 8/8/2019 Cloud Talks EB Sep 20

    7/42

    What is the cloud computing

    What is it about then?

    Cloud computing isconsumption of computing

    resources without worryingabout specifics.

  • 8/8/2019 Cloud Talks EB Sep 20

    8/42

    What is the cloud computing

    What is it about then?

    As well as ability to add orremove resources according

    to the demand.

  • 8/8/2019 Cloud Talks EB Sep 20

    9/42

    What is the cloud computing

    What is it about then?

    Similar to the power grid andtelephone network.

  • 8/8/2019 Cloud Talks EB Sep 20

    10/42

    What is the cloud computing

    What is it about then?

    Similar to the power grid andtelephone network.

  • 8/8/2019 Cloud Talks EB Sep 20

    11/42

    How does it work?

    Consumer signs up for the service.(Same as if you get a mobile phone plan)

    Consumer uses services according to their needs

    Provider sends the bill at the end of the cycle

    Consumer pays

  • 8/8/2019 Cloud Talks EB Sep 20

    12/42

    Provider Models

    Software As A Service

    SAAS

    EmailCRM

    Office Apps

  • 8/8/2019 Cloud Talks EB Sep 20

    13/42

    Provider Models

    Software As A Service

    SAAS

    EmailCRM

    Office Apps

    Platform As A Service

    PAAS

    Application ServersDatabases

    Middleware

  • 8/8/2019 Cloud Talks EB Sep 20

    14/42

    Provider Models

    Software As A Service

    SAAS

    EmailCRM

    Office Apps

    Platform As A Service

    PAAS

    Application ServersDatabases

    Middleware

    Infrastructure As AService

    IAAS

    Bare Hardware(Sort of )

  • 8/8/2019 Cloud Talks EB Sep 20

    15/42

    Providers

    Software As A Service

    SAAS

    Google (GMail)Salesforce

    Microsoft (Office Live)

  • 8/8/2019 Cloud Talks EB Sep 20

    16/42

    Providers

    Software As A Service

    SAAS

    Google (GMail)Salesforce

    Microsoft (Office Live)

    Platform As A Service

    PAAS

    Google App Engine

    Heroku / Engine Yard (Rails)

    Windows Azure (.NET)

  • 8/8/2019 Cloud Talks EB Sep 20

    17/42

    Providers

    Software As A Service

    SAAS

    Google (GMail)Salesforce

    Microsoft (Office Live)

    Platform As A Service

    PAAS

    Google App EngineHeroku / Engine Yard (Rails)

    Windows Azure (.NET)

    Infrastructure As AService

    IAAS

    Amazon AWSRackspace

    GoGrid

  • 8/8/2019 Cloud Talks EB Sep 20

    18/42

    Provider: Windows Azure

    Platform as a service

    Windows based

    Storage provided through blob storage, drives,SQL Azure

    State is stored and propagated with Queues and

    Tables

    Integrated with Visual Studio

    Eclipse plug-in for PHP

  • 8/8/2019 Cloud Talks EB Sep 20

    19/42

    Slide courtesy Vlad Vinogradsky from Microsoft

  • 8/8/2019 Cloud Talks EB Sep 20

    20/42

  • 8/8/2019 Cloud Talks EB Sep 20

    21/42

    Provider: Rackspace

    Infrastructure as a service

    Very Basic just a few Linux or Windows images

    Provides storage with CloudFilesVery Cheap

    Open source API

    Relatively New

  • 8/8/2019 Cloud Talks EB Sep 20

    22/42

    Provider: Amazon AWS

    Oldest on the market

    Many services / Images / Third party providers

    Provides computation through EC2 / EMR Provides state / storage through S3, SQS, RDS,SimpleDB

    Multiple APIs

  • 8/8/2019 Cloud Talks EB Sep 20

    23/42

    Sample Prices

    AmazonCompute $0.10+ VM/HrStorage $0.15+ GB/Month

    $0.15+ GB/XFer

    RackspaceCompute $0.02+ VM/HrStorage $0.15+ GB/Month

    $0.22+ GB/XFer

    MicrosoftCompute $0.12 VM/HrStorage $0.15 GB/moBandwidh $0.15 GB/XFer

  • 8/8/2019 Cloud Talks EB Sep 20

    24/42

    Development

  • 8/8/2019 Cloud Talks EB Sep 20

    25/42

    Practical Considerations

    Cloud Development is slightly differentfrom traditional in house model.

  • 8/8/2019 Cloud Talks EB Sep 20

    26/42

    Practical Considerations

    Cloud Development is slightly differentfrom traditional in house model.

    Everything is virtualized (most of the time) Everything is distributed

    Per instance reliability is much lower Overall reliability is much higher

  • 8/8/2019 Cloud Talks EB Sep 20

    27/42

    Cloud Programming Model

  • 8/8/2019 Cloud Talks EB Sep 20

    28/42

    Cloud Programming Model

    Compute and Interfacenodes are not reliable,they can crash anddisappear at any time.

    Storage and State arereliable and heavilydistributed.

    At any time we can start

    more compute orinterface nodes and shutthem down when demandsubsides.

  • 8/8/2019 Cloud Talks EB Sep 20

    29/42

    Cloud Programming Model on Azure

    Compute : Worker Nodes

    State: Tables / Queues / SQL

    Storage: SQL / Tables /Blobs / Drives

    Client Inteface: Web Nodes

  • 8/8/2019 Cloud Talks EB Sep 20

    30/42

    Cloud Programming Model on AWS

    Compute : EC2 Instances

    State: S3 / Queues /SimpleDB / RDS

    Storage: S3 / SimpleDB / RDS

    Client Inteface: S3 / EC2 /CloudFront

  • 8/8/2019 Cloud Talks EB Sep 20

    31/42

    AWS Details: S3

    S3 = Simple Storage Service

    Guaranteed to be reliable

    Simple {Key, Value} storage

    Keys are stored within buckets

    Values could be as large as 5GB

    Default Storage Mechanism for AWS

  • 8/8/2019 Cloud Talks EB Sep 20

    32/42

    AWS Details: Simple DB

    Schema less database

    Main storage unit is domain ( similar to table )

    Each record can have many attributes, new attributes could

    be added at any time

    Similar to LISP / Scheme attributes

    Can query domain for records containing particular

    attributeNo Joins / Unions with other domains

    Eventual Consistency

  • 8/8/2019 Cloud Talks EB Sep 20

    33/42

    AWS Details: RDS

    RDS = Relational Data Storage

    MySQL in a cluster mode

    Preferred to simply running DB server within instance(ask me why for details)

  • 8/8/2019 Cloud Talks EB Sep 20

    34/42

    AWS Details: SQS

    SQS = Simple Queue System

    Massively scalable

    Allows to put message in the queue and retrieve later on

    Retrieving the message hides it from the other users

    When message is processed it is deleted from the queue

    If message is not deleted before the timeout it is returnedback

  • 8/8/2019 Cloud Talks EB Sep 20

    35/42

    AWS Details: EC2

    EC2 = Elastic Compute Cloud

    Allows to run arbitrary virtual machinesProvided they are compatible with Amazons modified Xen

    Kernels and Startup Disks are stored in S3

    Also have large local storage

    Machines are not exactly like physical machines

    Local storage is not persistentWhen machine is shut down all local data disappears.

    Hardware TCP [No packet layer / No Broadcast ]

    Can launch many copies of the machine at the same time

    Lots of preconfigured machines

  • 8/8/2019 Cloud Talks EB Sep 20

    36/42

    AWS Details: Other Services

    EMR = Elastic Map ReduceLets run Hadoop jobs on EC2

    CloudFrontContent Delivery Network

    ELB = Elastic Load Balancer

    EBS = Elastic Block StorageS3 backed persistent storage

    Public Data Sets - Lots of publicly available dataCensus ( 1980 , 1990, 2000 ), Wikipedia logs, Freebasedumps, Genetic and Chemistry data

  • 8/8/2019 Cloud Talks EB Sep 20

    37/42

    Starting Up

    Amazon Account

    Credentials KeyID : SecretKey X509 Ceriticate

  • 8/8/2019 Cloud Talks EB Sep 20

    38/42

    Helpful Tools

    S3 Fox - Firefox extension for browsing S3

    Elastic Fox - Firefox extension for operating EC2 Transmit - Mac utility for S3 ($) Right Scale - Web based platform for managing

    everything ( Free / $ )

  • 8/8/2019 Cloud Talks EB Sep 20

    39/42

  • 8/8/2019 Cloud Talks EB Sep 20

    40/42

    Demo

  • 8/8/2019 Cloud Talks EB Sep 20

    41/42

    DemoRunning Hadoop on EC2

  • 8/8/2019 Cloud Talks EB Sep 20

    42/42

    Questions

    ????