Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cloud night at the SingaSUG (Singapore Spring User Group)

Cloud night at the SingaSUG (Singapore Spring User Group)

Michael Isvy

March 06, 2014
Tweet

More Decks by Michael Isvy

Other Decks in Science

Transcript

  1. Cloud  night  
    •  Uli  Hitzel  –  Intro  to  the  Cloud    
    and  OpenStack  
    •  Lawrence  Crowther  –  Cloud  Foundry  

    View full-size slide

  2. Cloud Computing
    for Developers
    Uli Hitzel | Singapore Spring User Group Meeting, March 2014

    View full-size slide

  3. Agenda
    OpenStack
    What is it? | Why is it important? | Who is using it? | For what?
    Cloud Computing
    Cloud in 2014 | Service Levels | Developers as the consumer

    View full-size slide

  4. About Uli
    ● Senior Architect at
    ● previously working as software developer, engineer, project
    manager and consultant for companies including

    View full-size slide

  5. Part 1: OpenStack

    View full-size slide

  6. What’s OpenStack
    ● Cloud Infrastructure Software
    ● Global open source community, founded by Rackspace &
    NASA
    ● Collaboration between technology vendors including Red
    Hat, IBM, Cisco and many others

    View full-size slide

  7. General Success Factors

    View full-size slide

  8. OpenStack Software

    View full-size slide

  9. OpenStack Ecosystem

    View full-size slide

  10. OpenStack Implementations

    View full-size slide

  11. Part 2: Cloud Computing

    View full-size slide

  12. Cloud Computing in 2014

    View full-size slide

  13. Traditional Workloads vs Cloud Workloads
    Virtualized & Shared & Standardized Resources
    Scalability & Elasticity
    Automated Service Management
    Traditional Cloud
    Dedicated Resources for each
    workload

    View full-size slide

  14. A new consumption & delivery model

    View full-size slide

  15. Smart Phones - Turn devices into apps

    View full-size slide

  16. Architect Applications for the Cloud
    1. Virtualize the Application Stack
    2. Componentize, decouple & design all
    components as a 'black box'
    3. Design for Scalability

    View full-size slide

  17. The Developer as the Cloud Consumer
    “I want to develop my application” “I manage servers, storage and networks”
    Developer IT Administrator

    View full-size slide

  18. Virtualize the Application Stack

    View full-size slide

  19. Platforms are your Friend

    View full-size slide

  20. Deployment Models

    View full-size slide

  21. Platform as a Service Offerings

    View full-size slide

  22. Multitenancy Considerations

    View full-size slide

  23. Design for Scalability
    Traditional way
    ● add more RAM
    ● use faster servers
    ● expensive ‘micro-optimization’
    ● complex caching
    ● faster hard disks
    Cloud Applications
    ● minimize mutable state
    ● create asynchronous
    services
    ● alternative data stores
    ● automate deployment

    View full-size slide

  24. Design for Failure
    "Everything fails, all the time“
    Werner Vogels, CTO Amazon.com
    ● find single point of failures
    ● evaluate scenarios. What levels
    of risk is acceptable?
    ● failure tolerance

    View full-size slide

  25. Minimize Mutable State
    Variables shared across application
    ● Multiple servers and processes trying to update the same variables at the same
    time result in deadlocks, time-outs, and failed transactions
    ● minimize or eliminate those in webservers, application and the database
    ● specific considerations for filesystems, applications and datastores
    ● look at cluster filesystems, object stores, NoSQL / CouchDB, MongoDB –
    asynchronous ‘fire & forget’ updates

    View full-size slide

  26. Components & Asynchronous Services
    ● Offload work from main application
    servers – Web 2.0
    ● Break tasks into separate services, run by
    different components
    ● Scale independently
    ● Use message queues for guaranteed
    delivery

    View full-size slide

  27. Automate Deployment - DevOps

    View full-size slide

  28. Key Takeaways
    1. OpenStack deals with Cloud Infrastructure
    2. As a developer, your friends are platform
    services
    3. Design Applications for the cloud - scalability &
    anticipate failure

    View full-size slide

  29. 1
    © Copyright 2013 Pivotal. All rights reserved. 1
    © Copyright 2013 Pivotal. All rights reserved.
    Cloud Foundry
    The platform for building great
    software
    Lawrence Crowther – Field Engineering Manager

    View full-size slide

  30. 2
    © Copyright 2013 Pivotal. All rights reserved.
    Agenda
    •  PaaS Definition
    •  The old way to develop software
    •  The new way to develop software
    •  Why do developers love Pivotal CF?
    •  Why do operators love Pivotal CF?
    •  Demo
    •  Q&A

    View full-size slide

  31. 3
    © Copyright 2013 Pivotal. All rights reserved.
    Know your aaS from your elbow!
    PaaS defnition:
    Platform as a service (PaaS) is the
    delivery of a computing platform and
    solution stack as a service. PaaS
    offerings facilitate deployment of applications without the cost and
    complexity of buying and managing the underlying hardware and
    software and provisioning hosting capabilities

    View full-size slide

  32. 4
    © Copyright 2013 Pivotal. All rights reserved.
    The old way

    View full-size slide

  33. 5
    © Copyright 2013 Pivotal. All rights reserved.
    Is Your Enterprise Ready?

    View full-size slide

  34. 6
    © Copyright 2013 Pivotal. All rights reserved.
    Issues with the old way
    •  How do you size this environment correctly?
    •  How do you scale and add capacity when required? Start the whole
    process again?
    •  How do you synchronize updates to the code, database, middleware and
    network simultaneously?
    •  How do you do continuous delivery?
    •  Slow GTM 6-12 months
    •  Brittle software with hard coded dependencies.
    •  Hard to move code/config from DEV->UAT->PROD

    View full-size slide

  35. 7
    © Copyright 2013 Pivotal. All rights reserved.
    The new way
    target push bind scale
    Marketplace
    Business and Customers
    DevOps

    View full-size slide

  36. 8
    © Copyright 2013 Pivotal. All rights reserved.
    Build for Agile Teams
       
    provision    
       target    
       push    
       bind    
       scale    +100  
    upgrade/scale    
       

    View full-size slide

  37. 9
    © Copyright 2013 Pivotal. All rights reserved.
    Benefits of the new way
    •  Developers don’t have to worry about the “plumbing”
    •  Less dependencies in the code so applications can be moved between
    DEV, UAT and PROD much easier OR to other clouds
    •  Frequent updates means business and customers happier
    •  PaaS is easier to manage from an operations perspective (single
    distributed system rather than a collection of separate components)
    •  Feedback loop is quicker, code, deploy, test, fix, deploy etc..
    •  Easy to scale horizontally both from an application and data point of view
    •  Continuous Delivery is a reality
    •  Allows tighter governance and policy

    View full-size slide

  38. 10
    © Copyright 2013 Pivotal. All rights reserved.
    Deploy and scale applications in
    seconds on your choice of clouds
    The industry’s open
    platform as a service
    Productivity, Scalability, Extensibility, Openness

    View full-size slide

  39. 11
    © Copyright 2013 Pivotal. All rights reserved.
    The Industry Leading Open Source PaaS

    View full-size slide

  40. 12
    © Copyright 2013 Pivotal. All rights reserved.
    Broad Technology Ecosystem
    Instances &
    Multi-Cloud
    Providers
    Polyglot
    Frameworks
    and
    Services
    Add-On
    Marketplace
    And
    Partnerships

    View full-size slide

  41. 13
    © Copyright 2013 Pivotal. All rights reserved.
    Why do developers love Cloud Foundry?

    View full-size slide

  42. 14
    © Copyright 2013 Pivotal. All rights reserved.
    Open

    View full-size slide

  43. 15
    © Copyright 2013 Pivotal. All rights reserved.
    Open
    Source
    Micro  
    Clouds  
    Private  
    Clouds  
    Public  
    Clouds  
    CUSTOM
    SERVICES
    What does “Open” PaaS mean? Choice!
    CUSTOM
    RUNTIMES

    View full-size slide

  44. 16
    © Copyright 2013 Pivotal. All rights reserved.
    Why DevOps love Cloud Foundry?

    View full-size slide

  45. 17
    © Copyright 2013 Pivotal. All rights reserved.

    View full-size slide

  46. 18
    © Copyright 2013 Pivotal. All rights reserved.

    View full-size slide

  47. 19
    © Copyright 2013 Pivotal. All rights reserved.

    View full-size slide

  48. 20
    © Copyright 2013 Pivotal. All rights reserved.

    View full-size slide

  49. 21
    © Copyright 2013 Pivotal. All rights reserved.

    View full-size slide

  50. 22
    © Copyright 2013 Pivotal. All rights reserved.

    View full-size slide

  51. 23
    © Copyright 2013 Pivotal. All rights reserved.

    View full-size slide

  52. 24
    © Copyright 2013 Pivotal. All rights reserved.
    Cloud Foundry Architecture
    Cloud  Controller  
    Dynamic  Router  
    UAA/Login  Servers   Health  Manager  
    DEA  Pool(s)  
    Service  Broker  Node(s)  
    User  Provided  
    Service  Instances  
    Messaging  (NATS)  
    Apps  
    Cloud  Foundry  BOSH  
    Build  Packs  
    Logging  
    Apps
    Infrastructure
    PaaS

    View full-size slide

  53. 25
    © Copyright 2013 Pivotal. All rights reserved.
    Demo
    1.  Spring Cloud in action
    •  Deploy Spring app to CF and bind to MySQL
    •  Deploy Spring app to CF and bind to PostgreSQL
    2.  Zero downtime and continuous delivery
    3.  Scale app from both an application and infrastructure
    POV

    View full-size slide

  54. 26
    © Copyright 2013 Pivotal. All rights reserved.
    How to get started
    1.  Open Source - https://github.com/cloudfoundry
    2.  Community - http://cloudfoundry.org/
    3.  Pivotal Web Services – http://run.pivotal.io
    4.  Pivotal CF - www.gopivotal.com/paas
    5.  Spring Cloud - https://github.com/spring-projects/spring-cloud
    6.  Spring Music Demo - https://github.com/cloudfoundry-samples/spring-music

    View full-size slide

  55. A NEW PLATFORM FOR A NEW ERA

    View full-size slide