SlideShare a Scribd company logo
1 of 33
Download to read offline
CloudFoundry
   Practice
   Sean@Weaveus
      May 2011
History
                •     VMware founded 1998
                •     x86/x64 OS Emulation & Binary Translation
                •     VMware Workstation 1999
                •     VMware Server 2001
                •     EMC buys VMware
                      $625M 2004

                                                   Diane Greene
Monday, May 9, 2011                                               2
History
                •     Prepare DataCenter,
                      Cloud 2007-
                •     Old CEO fired,
                      new CEO Paul from
                      EMC Cloud Service
                •     Buy SpringSource $420M,
                                                Paul Maritz

                      Move to Platform, 2009
                •     CloudFoundry 2011


Monday, May 9, 2011                                           3
History - Spring

                •     Started 2002, Rod Johnson, Juergen Holler
                •     Lightweight Application Platform (then JEE)
                •     Spring 1.0, 2004
                •     Spring 2.0, 2006, Spring 2.5, 2007
                •     Spring 3.0, 2009, Acquired to VMware



Monday, May 9, 2011                                                 4
Cloud History
                •     Google founded 1996~8
                      •   GFS 2003, BigTable 2004, Gmail 2004, Docs 2006
                •     Salesforce 1999
                •     Facebook founded 2004
                      •   Facebook Platform 2007
                •     Twitter founded 2006
                •     Amazon EC2 2006
                •     Oracle buys Sun 2009



Monday, May 9, 2011                                                        5
CloudFoundry




Monday, May 9, 2011                  6
CloudFoundry




Monday, May 9, 2011                  7
Server/Client

                •     VCAP
                      VMware Cloud Application Platform
                      •   Ubuntu Server
                •     VMC
                      VMware Cloud CLI
                      •   Any with Ruby, Java, Python



Monday, May 9, 2011                                       8
Ruby App Demo



Monday, May 9, 2011                   9
Ruby App Demo
•   Target -VCAP (host api.vcap.me)
    •   Ubuntu Server 10.04 LTS
        (on VMware Fusion)
    •   VCAP Installed & Started Client
•   Client
    •   Ruby1.8
    •   Sinatra
Ruby Demo - Env
        SeanMacBookPro:foo sean$ pwd
        /Users/sean/Documents/Projects/CloudFoundry/foo
        SeanMacBookPro:foo sean$ cat foo.rb
        require 'rubygems'
        require 'sinatra'

        get '/' do
                host = ENV['VCAP_APP_HOST']
                port = ENV['VCAP_APP_PORT']
                "<h1>Ruby-Sinatry CloudFoundry</h1><h2>#{host}:#{port}</h2>"
        end
        SeanMacBookPro:foo sean$ vmc info

        VMware's Cloud Application Platform
        For support visit support@cloudfoundry.com

        Target:       http://api.vcap.me (v0.999)
        Client:       v0.3.10

        User:     sean@weaveus.com
        Usage:    Memory   (0B of 2.0G total)
                  Services (0 of 16 total)
                  Apps     (0 of 20 total)
        SeanMacBookPro:foo sean$




Monday, May 9, 2011                                                            11
Ruby - Demo - Push
       SeanMacBookPro:foo sean$ vmc push foo
       Would you like to deploy from the current directory? [Yn]:
       Application Deployed URL: 'foo.vcap.me'?
       Detected a Sinatra Application, is this correct? [Yn]:
       Memory Reservation [Default:128M] (64M, 128M, 256M, 512M, 1G or 2G)
       Creating Application: OK
       Would you like to bind any services to 'foo'? [yN]:
       Uploading Application:
         Checking for available resources: OK
         Packing application: OK
         Uploading (0K): OK
       Push Status: OK
       Staging Application: OK
       Starting Application: OK

       SeanMacBookPro:foo sean$ vmc push foo -n
       // ‘-n’ no questions

       SeanMacBookPro:foo sean$ vmc list

       +-------------+----+---------+-------------+----------+
       | Application | # | Health | URLS          | Services |
       +-------------+----+---------+-------------+----------+
       | foo         | 1 | RUNNING | foo.vcap.me |           |
       +-------------+----+---------+-------------+----------+

       SeanMacBookPro:foo sean$ vmc update foo
       // after a modification of
       // the application



Monday, May 9, 2011                                                          12
Spring App Demo



Monday, May 9, 2011                     13
Spring Demo
                •     Target - VCAP (host api.vcap.me)
                      •   Ubuntu Server 10.04 LTS
                          (on VMware Fusion)
                      •   VCAP Installed & Started
                •     Client
                      •   SpringSource Tool Suite 2.6



Monday, May 9, 2011                                      14
Monday, May 9, 2011   15
Monday, May 9, 2011   16
Spring Application with Local TC Server
Monday, May 9, 2011                                             17
Monday, May 9, 2011   18
Monday, May 9, 2011   19
Application
                          List
                       on VCAP




Monday, May 9, 2011                 20
Actually Fails ‘push’
                      with my VCAP on VM




Monday, May 9, 2011                            21
https://github.com/SpringSource/cloudfoundry-samples/wiki/Spring-Hello-MongoDB-Sample-Application


Monday, May 9, 2011                                                                                                 22
Spring Application fails ‘deploy’
Monday, May 9, 2011                                       23
Spring App Demo Refs

                •     http://blog.springsource.com/2011/04/13/
                      using-cloud-foundry-from-sts/
                •     https://github.com/SpringSource/
                      cloudfoundry-samples/wiki/Spring-Hello-
                      MongoDB-Sample-Application




Monday, May 9, 2011                                              24
Node.JS App Demo



Monday, May 9, 2011                      25
!"



Monday, May 9, 2011        26
In Depth



Monday, May 9, 2011              27
VCAP
                •     Cloud Controller
                •     Health Manager
                •     Router
                •     DEA: Droplet Execution Agent
                •     Services
                •     NATS - as a Bus. Pub/Sub Messaging


Monday, May 9, 2011                                        28
VCAP
                                             VMC
                                             Client



       Front-End                            Cloud        Redis     Redis
                                  Router                                     Redis
         Nginx                             Controller   Gateway    Node       Redis



                                             DEA
                                               DEA      MySQL     MySQL
                                             (App.
                                               (App.                        MySQL
                                            Server      Gateway   Node       MySQL
                                              Server
                                            Node)
                                              Node)
  http://blog.cloudfoundry.com/
  post/5223861703/how-cloud-
  foundry-works-when-a-new-
           application-is
                                            Health      MongoDB   MongoDB
                                    NAT                                     MongoDB
  http://blog.cloudfoundry.com/             Manager     Gateway    Node      MongoDB
     post/4754582920/cloud-
  foundry-open-paas-deep-dive




Monday, May 9, 2011                                                                    29
VCAP Processes
       root 26338 0.0 0.0 27996 184 ?       Ss 10:59 0:00 nginx: master process /usr/sbin/nginx
       www-data 26339 0.0 0.2 28732 1052 ?     S 10:59 0:00 nginx: worker process
       sean 27634 0.1 2.0 60932 10300 ?      Sl 11:00 1:01 nats-server
       sean 27637 0.2 3.7 94856 19080 tty1 Sl 11:00 1:02 ruby /home/sean/cloudfoundry/vcap/router/bin/router
       sean 27654 0.2 13.2 415380 66804 tty1 Sl 11:00 1:25 ruby ./cloud_controller
       sean 27669 0.3 5.7 107768 29072 tty1 Sl 11:00 1:43 ruby /home/sean/cloudfoundry/vcap/dea/bin/dea
       sean 27711 0.2 9.4 170548 47656 tty1 Sl 11:00 1:05 ruby /home/sean/cloudfoundry/vcap/health_manager/bin/health_manager
       sean 27743 0.1 7.0 136772 35460 tty1 Sl 11:00 0:59 ruby /home/sean/cloudfoundry/vcap/services/redis/bin/redis_gateway
       sean 27781 0.1 1.4 139800 7180 tty1 Sl 11:00 0:57 ruby /home/sean/cloudfoundry/vcap/services/redis/bin/redis_node
       sean 27800 0.1 7.0 136900 35436 tty1 Sl 11:00 1:01 ruby /home/sean/cloudfoundry/vcap/services/mysql/bin/mysql_gateway
       sean 27817 0.3 6.0 144764 30612 tty1 Sl 11:00 1:52 ruby /home/sean/cloudfoundry/vcap/services/mysql/bin/mysql_node
       sean 27836 0.1 7.2 136744 36680 tty1 Sl 11:00 0:59 ruby /home/sean/cloudfoundry/vcap/services/mongodb/bin/mongodb_gateway
       sean 27853 0.1 7.3 142744 36900 tty1 Sl 11:00 0:57 ruby /home/sean/cloudfoundry/vcap/services/mongodb/bin/mongodb_node




Monday, May 9, 2011                                                                                                                30
#$



Monday, May 9, 2011        31
CloudFoundry




Monday, May 9, 2011                  32
References
                •     Images

                      •   http://cache.gawkerassets.com/assets/images/34/2008/08/
                          GreeneAPRisberg.jpg

                      •   http://infosmackpodcasts.com/infosmack-63-vmwares-paul-
                          maritz/

                      •   http://blog.springsource.com/2011/04/12/launching-cloud-
                          foundry/

                •     http://blog.springsource.com

                •     http://blog.cloudfoundry.com/




Monday, May 9, 2011                                                                  33

More Related Content

Viewers also liked

Viewers also liked (10)

Git rerere
Git rerereGit rerere
Git rerere
 
HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011
 
ePUB in brief
ePUB in briefePUB in brief
ePUB in brief
 
Rest services caching
Rest services cachingRest services caching
Rest services caching
 
Introduction to Platform-as-a-Service and Cloud Foundry
Introduction to Platform-as-a-Service and Cloud FoundryIntroduction to Platform-as-a-Service and Cloud Foundry
Introduction to Platform-as-a-Service and Cloud Foundry
 
API Caching, why your server needs some rest
API Caching, why your server needs some restAPI Caching, why your server needs some rest
API Caching, why your server needs some rest
 
Sanitary fitting
Sanitary fittingSanitary fitting
Sanitary fitting
 
Topik 1 sanitary appliances
Topik 1 sanitary appliancesTopik 1 sanitary appliances
Topik 1 sanitary appliances
 
Water distribution system
Water distribution systemWater distribution system
Water distribution system
 
Sanitary and water supply
Sanitary and water supplySanitary and water supply
Sanitary and water supply
 

Similar to Cloud foundry practice

OPNFV EMC - Benefiting from IT & Net Ops Convergence
OPNFV EMC - Benefiting from IT & Net Ops ConvergenceOPNFV EMC - Benefiting from IT & Net Ops Convergence
OPNFV EMC - Benefiting from IT & Net Ops ConvergencePaul To
 
Virgo Project Creation Review
Virgo Project Creation ReviewVirgo Project Creation Review
Virgo Project Creation Reviewglynnormington
 
Webinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMwareWebinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMwarePlatform9
 
Practical PaaS presentation
Practical PaaS presentationPractical PaaS presentation
Practical PaaS presentationhmalphettes
 
Apache CloudStack at LinuxCon Japan
Apache CloudStack at LinuxCon JapanApache CloudStack at LinuxCon Japan
Apache CloudStack at LinuxCon JapanKimihiko Kitase
 
Keynote Oracle Fusion Middleware Summit_2020
Keynote Oracle Fusion Middleware Summit_2020Keynote Oracle Fusion Middleware Summit_2020
Keynote Oracle Fusion Middleware Summit_2020Michel Schildmeijer
 
JJUG CCC 2018 : Lessons Learned: Spring Cloud -> Docker -> Kubernetes
JJUG CCC 2018 : Lessons Learned: Spring Cloud ->  Docker -> KubernetesJJUG CCC 2018 : Lessons Learned: Spring Cloud ->  Docker -> Kubernetes
JJUG CCC 2018 : Lessons Learned: Spring Cloud -> Docker -> KubernetesMauricio (Salaboy) Salatino
 
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStack
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStackCMPE 297 Lecture: Building Infrastructure Clouds with OpenStack
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStackJoe Arnold
 
Bangalore Cloud Foundry meetup - Mani
Bangalore Cloud Foundry meetup - ManiBangalore Cloud Foundry meetup - Mani
Bangalore Cloud Foundry meetup - ManiMani Chandrasekaran
 
Webinar: OpenStack Benefits for KVM
Webinar: OpenStack Benefits for KVMWebinar: OpenStack Benefits for KVM
Webinar: OpenStack Benefits for KVMPlatform9
 
Resource Management in the Enterprise Data Center
Resource Management in the Enterprise Data CenterResource Management in the Enterprise Data Center
Resource Management in the Enterprise Data CenterRaghvender Arni
 
Webinar: OpenStack Best Practices for Production
Webinar: OpenStack Best Practices for ProductionWebinar: OpenStack Best Practices for Production
Webinar: OpenStack Best Practices for ProductionPlatform9
 
Wars I’ve Seen From Java EE to Spring and more, Azure has you covered
Wars I’ve SeenFrom Java EE to Spring and more, Azure has you coveredWars I’ve SeenFrom Java EE to Spring and more, Azure has you covered
Wars I’ve Seen From Java EE to Spring and more, Azure has you coveredEdward Burns
 
Kuby, ActiveDeployment for Rails Apps
Kuby, ActiveDeployment for Rails AppsKuby, ActiveDeployment for Rails Apps
Kuby, ActiveDeployment for Rails AppsCameron Dutro
 
Netflix Architecture Tutorial at Gluecon
Netflix Architecture Tutorial at GlueconNetflix Architecture Tutorial at Gluecon
Netflix Architecture Tutorial at GlueconAdrian Cockcroft
 
Automated Lifecycle Management - CloudFoundry on OpenStack
Automated Lifecycle Management - CloudFoundry on OpenStackAutomated Lifecycle Management - CloudFoundry on OpenStack
Automated Lifecycle Management - CloudFoundry on OpenStackAnimesh Singh
 
Introduction to Xamarin
Introduction to XamarinIntroduction to Xamarin
Introduction to XamarinBrian Anderson
 
Self-service and automation using OpenStack for VMware vSphere
Self-service and automation using OpenStack for VMware vSphereSelf-service and automation using OpenStack for VMware vSphere
Self-service and automation using OpenStack for VMware vSpherePlatform9
 
OpenNebula - Status and Roadmap
OpenNebula - Status and RoadmapOpenNebula - Status and Roadmap
OpenNebula - Status and RoadmapOpenNebula Project
 
Mete Atamel "An app modernization story with Cloud Run"
Mete Atamel "An app modernization story with Cloud Run"Mete Atamel "An app modernization story with Cloud Run"
Mete Atamel "An app modernization story with Cloud Run"Fwdays
 

Similar to Cloud foundry practice (20)

OPNFV EMC - Benefiting from IT & Net Ops Convergence
OPNFV EMC - Benefiting from IT & Net Ops ConvergenceOPNFV EMC - Benefiting from IT & Net Ops Convergence
OPNFV EMC - Benefiting from IT & Net Ops Convergence
 
Virgo Project Creation Review
Virgo Project Creation ReviewVirgo Project Creation Review
Virgo Project Creation Review
 
Webinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMwareWebinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMware
 
Practical PaaS presentation
Practical PaaS presentationPractical PaaS presentation
Practical PaaS presentation
 
Apache CloudStack at LinuxCon Japan
Apache CloudStack at LinuxCon JapanApache CloudStack at LinuxCon Japan
Apache CloudStack at LinuxCon Japan
 
Keynote Oracle Fusion Middleware Summit_2020
Keynote Oracle Fusion Middleware Summit_2020Keynote Oracle Fusion Middleware Summit_2020
Keynote Oracle Fusion Middleware Summit_2020
 
JJUG CCC 2018 : Lessons Learned: Spring Cloud -> Docker -> Kubernetes
JJUG CCC 2018 : Lessons Learned: Spring Cloud ->  Docker -> KubernetesJJUG CCC 2018 : Lessons Learned: Spring Cloud ->  Docker -> Kubernetes
JJUG CCC 2018 : Lessons Learned: Spring Cloud -> Docker -> Kubernetes
 
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStack
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStackCMPE 297 Lecture: Building Infrastructure Clouds with OpenStack
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStack
 
Bangalore Cloud Foundry meetup - Mani
Bangalore Cloud Foundry meetup - ManiBangalore Cloud Foundry meetup - Mani
Bangalore Cloud Foundry meetup - Mani
 
Webinar: OpenStack Benefits for KVM
Webinar: OpenStack Benefits for KVMWebinar: OpenStack Benefits for KVM
Webinar: OpenStack Benefits for KVM
 
Resource Management in the Enterprise Data Center
Resource Management in the Enterprise Data CenterResource Management in the Enterprise Data Center
Resource Management in the Enterprise Data Center
 
Webinar: OpenStack Best Practices for Production
Webinar: OpenStack Best Practices for ProductionWebinar: OpenStack Best Practices for Production
Webinar: OpenStack Best Practices for Production
 
Wars I’ve Seen From Java EE to Spring and more, Azure has you covered
Wars I’ve SeenFrom Java EE to Spring and more, Azure has you coveredWars I’ve SeenFrom Java EE to Spring and more, Azure has you covered
Wars I’ve Seen From Java EE to Spring and more, Azure has you covered
 
Kuby, ActiveDeployment for Rails Apps
Kuby, ActiveDeployment for Rails AppsKuby, ActiveDeployment for Rails Apps
Kuby, ActiveDeployment for Rails Apps
 
Netflix Architecture Tutorial at Gluecon
Netflix Architecture Tutorial at GlueconNetflix Architecture Tutorial at Gluecon
Netflix Architecture Tutorial at Gluecon
 
Automated Lifecycle Management - CloudFoundry on OpenStack
Automated Lifecycle Management - CloudFoundry on OpenStackAutomated Lifecycle Management - CloudFoundry on OpenStack
Automated Lifecycle Management - CloudFoundry on OpenStack
 
Introduction to Xamarin
Introduction to XamarinIntroduction to Xamarin
Introduction to Xamarin
 
Self-service and automation using OpenStack for VMware vSphere
Self-service and automation using OpenStack for VMware vSphereSelf-service and automation using OpenStack for VMware vSphere
Self-service and automation using OpenStack for VMware vSphere
 
OpenNebula - Status and Roadmap
OpenNebula - Status and RoadmapOpenNebula - Status and Roadmap
OpenNebula - Status and Roadmap
 
Mete Atamel "An app modernization story with Cloud Run"
Mete Atamel "An app modernization story with Cloud Run"Mete Atamel "An app modernization story with Cloud Run"
Mete Atamel "An app modernization story with Cloud Run"
 

Recently uploaded

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 

Recently uploaded (20)

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 

Cloud foundry practice

  • 1. CloudFoundry Practice Sean@Weaveus May 2011
  • 2. History • VMware founded 1998 • x86/x64 OS Emulation & Binary Translation • VMware Workstation 1999 • VMware Server 2001 • EMC buys VMware $625M 2004 Diane Greene Monday, May 9, 2011 2
  • 3. History • Prepare DataCenter, Cloud 2007- • Old CEO fired, new CEO Paul from EMC Cloud Service • Buy SpringSource $420M, Paul Maritz Move to Platform, 2009 • CloudFoundry 2011 Monday, May 9, 2011 3
  • 4. History - Spring • Started 2002, Rod Johnson, Juergen Holler • Lightweight Application Platform (then JEE) • Spring 1.0, 2004 • Spring 2.0, 2006, Spring 2.5, 2007 • Spring 3.0, 2009, Acquired to VMware Monday, May 9, 2011 4
  • 5. Cloud History • Google founded 1996~8 • GFS 2003, BigTable 2004, Gmail 2004, Docs 2006 • Salesforce 1999 • Facebook founded 2004 • Facebook Platform 2007 • Twitter founded 2006 • Amazon EC2 2006 • Oracle buys Sun 2009 Monday, May 9, 2011 5
  • 8. Server/Client • VCAP VMware Cloud Application Platform • Ubuntu Server • VMC VMware Cloud CLI • Any with Ruby, Java, Python Monday, May 9, 2011 8
  • 9. Ruby App Demo Monday, May 9, 2011 9
  • 10. Ruby App Demo • Target -VCAP (host api.vcap.me) • Ubuntu Server 10.04 LTS (on VMware Fusion) • VCAP Installed & Started Client • Client • Ruby1.8 • Sinatra
  • 11. Ruby Demo - Env SeanMacBookPro:foo sean$ pwd /Users/sean/Documents/Projects/CloudFoundry/foo SeanMacBookPro:foo sean$ cat foo.rb require 'rubygems' require 'sinatra' get '/' do host = ENV['VCAP_APP_HOST'] port = ENV['VCAP_APP_PORT'] "<h1>Ruby-Sinatry CloudFoundry</h1><h2>#{host}:#{port}</h2>" end SeanMacBookPro:foo sean$ vmc info VMware's Cloud Application Platform For support visit support@cloudfoundry.com Target: http://api.vcap.me (v0.999) Client: v0.3.10 User: sean@weaveus.com Usage: Memory (0B of 2.0G total) Services (0 of 16 total) Apps (0 of 20 total) SeanMacBookPro:foo sean$ Monday, May 9, 2011 11
  • 12. Ruby - Demo - Push SeanMacBookPro:foo sean$ vmc push foo Would you like to deploy from the current directory? [Yn]: Application Deployed URL: 'foo.vcap.me'? Detected a Sinatra Application, is this correct? [Yn]: Memory Reservation [Default:128M] (64M, 128M, 256M, 512M, 1G or 2G) Creating Application: OK Would you like to bind any services to 'foo'? [yN]: Uploading Application: Checking for available resources: OK Packing application: OK Uploading (0K): OK Push Status: OK Staging Application: OK Starting Application: OK SeanMacBookPro:foo sean$ vmc push foo -n // ‘-n’ no questions SeanMacBookPro:foo sean$ vmc list +-------------+----+---------+-------------+----------+ | Application | # | Health | URLS | Services | +-------------+----+---------+-------------+----------+ | foo | 1 | RUNNING | foo.vcap.me | | +-------------+----+---------+-------------+----------+ SeanMacBookPro:foo sean$ vmc update foo // after a modification of // the application Monday, May 9, 2011 12
  • 13. Spring App Demo Monday, May 9, 2011 13
  • 14. Spring Demo • Target - VCAP (host api.vcap.me) • Ubuntu Server 10.04 LTS (on VMware Fusion) • VCAP Installed & Started • Client • SpringSource Tool Suite 2.6 Monday, May 9, 2011 14
  • 15. Monday, May 9, 2011 15
  • 16. Monday, May 9, 2011 16
  • 17. Spring Application with Local TC Server Monday, May 9, 2011 17
  • 18. Monday, May 9, 2011 18
  • 19. Monday, May 9, 2011 19
  • 20. Application List on VCAP Monday, May 9, 2011 20
  • 21. Actually Fails ‘push’ with my VCAP on VM Monday, May 9, 2011 21
  • 23. Spring Application fails ‘deploy’ Monday, May 9, 2011 23
  • 24. Spring App Demo Refs • http://blog.springsource.com/2011/04/13/ using-cloud-foundry-from-sts/ • https://github.com/SpringSource/ cloudfoundry-samples/wiki/Spring-Hello- MongoDB-Sample-Application Monday, May 9, 2011 24
  • 25. Node.JS App Demo Monday, May 9, 2011 25
  • 26. !" Monday, May 9, 2011 26
  • 27. In Depth Monday, May 9, 2011 27
  • 28. VCAP • Cloud Controller • Health Manager • Router • DEA: Droplet Execution Agent • Services • NATS - as a Bus. Pub/Sub Messaging Monday, May 9, 2011 28
  • 29. VCAP VMC Client Front-End Cloud Redis Redis Router Redis Nginx Controller Gateway Node Redis DEA DEA MySQL MySQL (App. (App. MySQL Server Gateway Node MySQL Server Node) Node) http://blog.cloudfoundry.com/ post/5223861703/how-cloud- foundry-works-when-a-new- application-is Health MongoDB MongoDB NAT MongoDB http://blog.cloudfoundry.com/ Manager Gateway Node MongoDB post/4754582920/cloud- foundry-open-paas-deep-dive Monday, May 9, 2011 29
  • 30. VCAP Processes root 26338 0.0 0.0 27996 184 ? Ss 10:59 0:00 nginx: master process /usr/sbin/nginx www-data 26339 0.0 0.2 28732 1052 ? S 10:59 0:00 nginx: worker process sean 27634 0.1 2.0 60932 10300 ? Sl 11:00 1:01 nats-server sean 27637 0.2 3.7 94856 19080 tty1 Sl 11:00 1:02 ruby /home/sean/cloudfoundry/vcap/router/bin/router sean 27654 0.2 13.2 415380 66804 tty1 Sl 11:00 1:25 ruby ./cloud_controller sean 27669 0.3 5.7 107768 29072 tty1 Sl 11:00 1:43 ruby /home/sean/cloudfoundry/vcap/dea/bin/dea sean 27711 0.2 9.4 170548 47656 tty1 Sl 11:00 1:05 ruby /home/sean/cloudfoundry/vcap/health_manager/bin/health_manager sean 27743 0.1 7.0 136772 35460 tty1 Sl 11:00 0:59 ruby /home/sean/cloudfoundry/vcap/services/redis/bin/redis_gateway sean 27781 0.1 1.4 139800 7180 tty1 Sl 11:00 0:57 ruby /home/sean/cloudfoundry/vcap/services/redis/bin/redis_node sean 27800 0.1 7.0 136900 35436 tty1 Sl 11:00 1:01 ruby /home/sean/cloudfoundry/vcap/services/mysql/bin/mysql_gateway sean 27817 0.3 6.0 144764 30612 tty1 Sl 11:00 1:52 ruby /home/sean/cloudfoundry/vcap/services/mysql/bin/mysql_node sean 27836 0.1 7.2 136744 36680 tty1 Sl 11:00 0:59 ruby /home/sean/cloudfoundry/vcap/services/mongodb/bin/mongodb_gateway sean 27853 0.1 7.3 142744 36900 tty1 Sl 11:00 0:57 ruby /home/sean/cloudfoundry/vcap/services/mongodb/bin/mongodb_node Monday, May 9, 2011 30
  • 31. #$ Monday, May 9, 2011 31
  • 33. References • Images • http://cache.gawkerassets.com/assets/images/34/2008/08/ GreeneAPRisberg.jpg • http://infosmackpodcasts.com/infosmack-63-vmwares-paul- maritz/ • http://blog.springsource.com/2011/04/12/launching-cloud- foundry/ • http://blog.springsource.com • http://blog.cloudfoundry.com/ Monday, May 9, 2011 33