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

Intro to Using MongoDB With Cloud Foundry - Dave McCrory, Senior Architect, VMware

mongodb
November 28, 2011

Intro to Using MongoDB With Cloud Foundry - Dave McCrory, Senior Architect, VMware

MongoDallas 2011

Learn about developing and deploying applications with MongoDB and Cloud Foundry. This session will cover local development and hosted deployment of your application on MongoDB. Learn about using the Cloud Foundry's Services layer, along with setting up more complex development scenarios quickly and easily making it faster to get new applications up and running.

mongodb

November 28, 2011
Tweet

More Decks by mongodb

Other Decks in Technology

Transcript

  1. © 2009 VMware Inc. All rights reserved Intro to using

    MongoDB with Cloud Foundry  Dave McCrory, Senior Architect  @mccrory on Twitter
  2. New Applications – New Approach Cloud Application Platform Modern Platform

    Services Runtimes, Frameworks, Application Servers, Tools Modern Platform Services ü  Optimized Runtime ü  Accelerated Deployment Common Platform Services Dynamic Scaling Dynamic Routing Messaging Data Persistence Data Services … Private Cloud External Clouds Personal Clouds
  3. 6 Confidential Cloud Foundry.ORG The Source Code to Compile &

    Build Cloud Foundry vCenter / vSphere Cloud Foundry Download Code Setup Environment Deploy Behind Firewall Setup Scripts
  4. Traditional App Deploy and Request/Response Web App MongoDB Web App

    DB Request/Allocate Build/Setup Install/Configure Deploy/Test Scale? Upgrade? Update?
  5. Web How Apps are Deployed on Cloud Foundry Web App

    MongoDB “vmc push MyApp” Web App Mongo DB “vmc instances MyApp 5” “vmc map MyApp MyApp2” “vmc update MyApp” Scale? Upgrade? Update?
  6. How Apps are Accessed on Cloud Foundry Web App Mongo

    DB App Instance Service Request Web Interface Load Balancing and Routing Response “vmc push MyApp”
  7. How Apps are Scaled on Cloud Foundry Web App Mongo

    DB App Instances Service Request Response Load Balancer(s) Load Balancer(s) Load Balancing and Routing Web App Web App “vmc instances MyApp 3”
  8. How Apps are Updated on Cloud Foundry Web App Mongo

    DB Service Web App Mongo DB Service Web App Web App Previous Version Instance Stopped Updated Code New Version “vmc update MyApp”
  9. Micro Cloud Foundry… (BETA) 16  A pre-built Micro (Single VM)

    version of Cloud Foundry… Signup @ http://cloudfoundry.com/micro  You need a Cloud Foundry.com Account to use Micro Cloud Foundry Micro
  10. Pre-requisites 17 Confidential  Resources  Virtualization Clients Minimum 1 GB RAM

    Minimum 8 GB Disk Internet Connectivity (w/DHCP is ideal) VMC STS Command line GUI
  11. Recap… 20  Services are ways of : •  Externalizing State

    •  Persisting Data •  Communicating Between Apps  Service Bindings are communicated as Environment Variables in JSON Format  Spring allows auto-wiring of Apps to Services
  12. Service Creation and Binding 21  VCAP_SERVICES:  {"mongodb-1.8":[  {"name":"mongodb-e7d29","label":"mongodb-1.8","plan":"free","tags": ["mongodb","mongodb-1.8","nosql"],  "credentials":

     {"hostname":"172.30.48.65",  "port":25018,  "username":"cf28a98f-6d18-43ce-7faf-0a6141ad882a",  "password":”955e4dc0-dfc1-458b-cc42-e1ec12211bec",  "name":"mongodb-758e9591-13c7-44a2-8cbf-41537bf3001d",  "db":"db"}  }]}