Play with cloud foundry
Upcoming SlideShare
Loading in...5
×
 

Play with cloud foundry

on

  • 1,676 views

My first training session about Cloud Foundry

My first training session about Cloud Foundry

Statistics

Views

Total Views
1,676
Views on SlideShare
1,676
Embed Views
0

Actions

Likes
1
Downloads
32
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Play with cloud foundry Play with cloud foundry Presentation Transcript

  • Play with Cloud Foundry An Open PaaS Wan, Peng 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 SystemType VendorSaaSPaaSIaaS
  • What’s Cloud Foundry?An open platform-as-a-service (PaaS). The system supportsmultiple frameworks, multiple application infrastructureservices and deployment to multiple clouds.
  • 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
  • Logic View vmc client STS plugin browser (user app access) Router Cloud Controller user apps user apps Health ManagerServices: core, ecosystem, etc. DEA: execution environment Infrastructure
  • Sends droplet heart beats and exit messages Router Router Registers and Registers and unregisters unregistersArchitecture Routes droplet Routes REST API requests requests Droplet change notifications Droplet Cloud Controller Orchestrates Health Manager start/stop Cloud Controller (Start, Stop, Find) Droplet Execution requests Agent (DEA) Periodically scans Persists droplets for consistency and provisioned Guest applications Advertise services consume Cloud Service Controller Provision and Database unprovision Service "A" Provision Service and "A" Provisioning Agent unprovision
  • Disadvantages• Limited Services• Limited File Generate/Access• Charge Public Cloud• No Infrastructure in China• Beta
  • Agenda• Overview• Development Guide• Deployment Guide• Resource• Q&A
  • Prepare • Register • Install Ruby and RubyGems • Install VMC (VMware Cloud Client) • Install STS (with Cloud Foundry Plugin)
  • Spring to Cloud Foundry• Auto Reconfiguration• Cloud Namespace• Spring 3.1 Profiles
  • 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
  • Auto Reconfiguration
  • Cloud App Setup Maven Spring Application-Context
  • Cloud Namespace Support Data Source Other Support
  • Spring 3.1 Profiles V3.1 adds new support for environments Stand-alone Containers
  • Demo: CrawlerHttp://www.somesite.com Crawler.cloudfoundry.com Input url Consuming Image Object Query RibbitMQ Instance WebApp MongoDB Get url Produce PersistDom parse Image Object Crawler Cloud Foundry / Public Cloud
  • Crawler WebApp ImageUnitRepository ImageUnitGateway Crawler.war MongoDB RabbitMQ Cloud Foundry Services
  • Agenda• Overview• Development Guide• Deployment Guide• Resource• Q&A
  • Deployment Guide• Deploy App• Update App• Binding Service to App• Start/Stop App• Scale App
  • Deploy App• vmc login• vmc target• vmc push• vmc update• vmc create-service• vmc bind-service Via VMC Via STS
  • Access Service • TCP over HTTP tunnel • Local client • Remote server • gem install caldecott • vmc tunnel your-service • Mongodb/mysql command Caldecott
  • Micro Cloud Foundry(BETA)A cloud packaged as a VMware Virtual MachineUse as a developer sandbox• Use the services from Junit integration tests• Deploy your application for functional testing• Remote debugging from STS
  • Micro Cloud Foundry Pre-requisites Minimum 1 GB Minimum 8 GB Internet Connectivity Resources RAM Disk (w/DHCP is ideal)Virtualization Clients VMC STS
  • Private Cloud CloudFoundry.ORG Your Infrastructure Deploy Behind Download code Setup Environment Setup Scripts Firewall Apache2 license
  • Agenda• Overview• Development Guide• Deployment Guide• Resource• Q&A
  • Things to Forget• First normal form• Waterfall model• Single server deployment• Single language skill• Build everything from scratch• Build custom infrastructure
  • 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
  • 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
  • Q&A