Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Play with Cloud Foundry An Open PaaS Shi, Tao May 11, 2012."— Presentation transcript:

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

2 Overview Development Guide Deployment Guide Resource Q&A Agenda

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

4 TypeVendor SaaS PaaS IaaS 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 Router Infrastructure Health Manager DEA: execution environment Services: core, ecosystem, etc. user apps Cloud Controller user apps vmc client STS plugin browser (user app access) browser (user app access)

8 Architecture

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

10 Overview Development Guide Deployment Guide Resource Q&A Agenda

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 1.Additional Jar 2.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 Cloud Foundry / Public Cloud Demo: Crawler Http://www.somesite.com CrawlerCrawler RibbitMQ Instance Input url WebAppWebApp Consuming Image Object Crawler.cloudfoundry.com MongoDB Persist Query Get url Dom parse Produce Image Object

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

20 Overview Development Guide Deployment Guide Resource Q&A Agenda

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 STSVia VMC

23 Access Service TCP over HTTP tunnel Local client Remote server gem install caldecott vmc tunnel your-service Mongodb/mysql command Caldecott

24 Micro Cloud Foundry(BETA) A cloud packaged as a VMware Virtual Machine Use as a developer sandbox Use the services from Junit integration tests Deploy your application for functional testing Remote debugging from STS

25 Micro Cloud Foundry Pre-requisites Minimum 1 GB RAM Resources Virtualization Clients Minimum 8 GB Disk Internet Connectivity (w/DHCP is ideal) VMC STS

26 Download code Setup Environment Deploy Behind Firewall Setup Scripts Apache2 license Private Cloud CloudFoundry.ORG Your Infrastructure

27 Overview Development Guide Deployment Guide Resource Q&A Agenda

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 Primary Site : cloudfoundry.com Open Source Site : cloudfoundry.org Twitter : @cloudfoundry Blog : blog.cloudfoundry.com FB : facebook.com/cloudfoundry Support : support.cloudfoundry.com Cloud Foundry Resources

31 Q & A


Download ppt "Play with Cloud Foundry An Open PaaS Shi, Tao May 11, 2012."

Similar presentations


Ads by Google