1 / 31

Play with Cloud Foundry

Play with Cloud Foundry. An Open PaaS. Shi, Tao. May 11, 2012. Agenda. Overview Development Guide Deployment Guide Resource Q&A. Cloud Foundry Overview. What’s Cloud Foundry? Languages/Frameworks Inner Service Logic View Architecture Disadvantages. Cloud Computing System.

zavad
Download Presentation

Play with Cloud Foundry

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Play with Cloud Foundry An Open PaaS Shi, Tao May 11, 2012

  2. Agenda • Overview • Development Guide • Deployment Guide • Resource • Q&A

  3. Cloud Foundry Overview • What’s Cloud Foundry? • Languages/Frameworks • Inner Service • Logic View • Architecture • Disadvantages

  4. Cloud Computing System

  5. What’s Cloud Foundry? An open platform-as-a-service (PaaS). The system supports multiple frameworks, multiple application infrastructure services and deployment to multiple clouds.

  6. Languages/Frameworks/Service • Multi-Language • Ruby, Java, Scala, Node.js, Erlang, Python, PHP.. • Multi-Framework • Rails, Sinatra, Spring, Grails, Express, Lift • Multi-Services • MySQL, Postgres, MongoDB, Redis, RabbitMQ • Multi-Cloud, Multi-IaaS • Public Cloud, MicroCloud, Private Cloud

  7. Logic View vmc client STS plugin browser (user app access) Router Health Manager Cloud Controller user apps user apps DEA: execution environment Services: core, ecosystem, etc. • Infrastructure

  8. Architecture

  9. Disadvantages • Limited Services • Limited File Generate/Access • Charge Public Cloud • No Infrastructure in China • Beta

  10. Agenda • Overview • Development Guide • Deployment Guide • Resource • Q&A

  11. Prepare • Register • Install Ruby and RubyGems • Install VMC (VMware Cloud Client) • Install STS (with Cloud Foundry Plugin)

  12. Spring to Cloud Foundry • Auto Reconfiguration • Cloud Namespace • Spring 3.1 Profiles

  13. Auto Reconfiguration • Two modifications • Additional Jar • Update Web.xml • BeanFactoryPostProcessor Examines the application context before creating beans • Swaps existing beans of matching types

  14. Auto Reconfiguration

  15. Cloud App Setup • Maven • Spring Application-Context

  16. Cloud Namespace • Support Data Source • Other Support

  17. Spring 3.1 Profiles • V3.1 adds new support for environments • Stand-alone Containers

  18. Demo: Crawler Crawler.cloudfoundry.com Http://www.somesite.com Cloud Foundry / Public Cloud Input url MongoDB Consuming Image Object WebApp Query RibbitMQ Instance Persist Get url Dom parse Produce Image Object Crawler

  19. Crawler WebApp • ImageUnitRepository • ImageUnitGateway Crawler.war • MongoDB • RabbitMQ • Cloud Foundry Services

  20. Agenda • Overview • Development Guide • Deployment Guide • Resource • Q&A

  21. Deployment Guide • Deploy App • Update App • Binding Service to App • Start/Stop App • Scale App

  22. Deploy App • vmc login • vmc target • vmc push • vmc update • vmc create-service • vmc bind-service Via VMC Via STS

  23. Access Service • TCPoverHTTPtunnel • Localclient • Remoteserver • gem install caldecott • vmc tunnel your-service • Mongodb/mysql command Caldecott

  24. Micro Cloud Foundry(BETA) A cloud packaged as a VMware Virtual Machine Useasadevelopersandbox •UsetheservicesfromJunitintegrationtests •Deployyourapplicationforfunctionaltesting •RemotedebuggingfromSTS

  25. Micro Cloud Foundry Pre-requisites Minimum1GB RAM InternetConnectivity (w/DHCPisideal) Minimum 8 GB Disk Resources Virtualization Clients STS VMC

  26. Private Cloud CloudFoundry.ORG YourInfrastructure DeployBehind Firewall Setup Environment Download code Setup Scripts Apache2 license

  27. Agenda • Overview • Development Guide • Deployment Guide • Resource • Q&A

  28. Things to Forget • First normal form • Waterfall model • Single server deployment • Single language skill • Build everything from scratch • Build custom infrastructure

  29. Things to Learn • Agile, API Design • UI Design, Javacript, HTML5, CSS3 • A/B Testing • Open Source, Open Standards • Architecture, Distributed Computing • Cloud Platforms and APIs • Multiple types of languages (imperative, object, functional, logic) • Ability to encapsulate domain knowledge in a DSL • Build on the shoulders of giants: reuse, rest APIs • Pick your battles, choose what you need to build yourself to add value • Learn to live in a box (embrace platform limitations) to think outside the box • Use an App Store for distribution

  30. Cloud Foundry Resources • Primary Site : cloudfoundry.com • Open Source Site : cloudfoundry.org • Twitter : @cloudfoundry • Blog : blog.cloudfoundry.com • FB : facebook.com/cloudfoundry • Support : support.cloudfoundry.com

  31. Q & A

More Related