Transforming How the World Builds Software Mallika Iyer Sam Weaver Principal Software Engineer Product Manager Global Ecosystem Engineering @ Pivotal MongoDb @cloudfoundryart @samuel_weaver
• The next 30 minutes… • What is MongoDb?
• What is Pivotal Cloud Foundry?
• How can I run MongoDB on Pivotal Cloud Foundry?
• Demo
• Q/A
What is MongoDB?
Relational
Expressive Query Language & Secondary Indexes
Strong Consistency
Enterprise Management & Integrations
The World Has Changed
Data Risk
Time Cost
NoSQL
Scalability & Performance
Always On, Global Deployments
Flexibility Expressive Query Language & Secondary Indexes
Strong Consistency
Enterprise Management & Integrations
Nexus Architecture
Scalability & Performance
Always On, Global Deployments
Flexibility Expressive Query Language & Secondary Indexes
Strong Consistency
Enterprise Management & Integrations
4th Most Popular, Fastest Growing RANK DBMS MODEL SCORE GROWTH (20 MO)
1. Oracle Relational DBMS 1,442 -5%
2. MySQL Relational DBMS 1,294 2%
3. Microsoft SQL Server Relational DBMS 1,131 -10%
4. MongoDB Document Store 277 172%
5. PostgreSQL Relational DBMS 273 40%
6. DB2 Relational DBMS 201 11%
7. Microsoft Access Relational DBMS 146 -26%
8. Cassandra Wide Column 107 87%
9. SQLite Relational DBMS 105 19%
Source: DB-engines database popularity rankings; May 2015
15,000,000+ MongoDB Downloads
400,000+ Online Education Students
40,000+ MongoDB Cloud Manager Users
35,000+ MongoDB User Group Members
1,000+ Technology and Services Partners
2,000+ Customers Across All Industries
The Largest Ecosystem
MongoDB Compass
MongoDB Connector for BI
MongoDB Enterprise Server
MongoDB Enterprise Advanced
24 x
7 S
uppo
rt (1
hou
r SLA
) C
omm
ercial License
(No A
GP
L Copyleft R
estrictions)
Platform Certifications
MongoDB Ops Manager
Monitoring & Alerting
Query Optimization
Backup & Recovery
Automation & Configuration
Schema Visualization
Data Exploration
Ad-Hoc Queries
Visualization
Analysis
Reporting
Authorization Auditing Encryption (In Flight & at Rest) Authentication
REST API Emergency Patches
Customer Success Program
On-Demand Online Training
Warranty
Limitation of Liability
Indemnification
What is Pivotal Cloud Foundry?
Cloud Foundry Haiku
“Here is my source code Run it on the cloud for me
I do not care how” -Onsi Fakhouri
Pivotal Cloud Foundry is… • Based on Cloud Foundry – the leading Open Source
Platform-as-a-service • Enterprise-ready, cloud-native • Language , framework and IaaS agnostic • Manages VMs and containers • Orchestrates applications and data services • Horizontal ,vertical and auto scaling
Cloud Foundry Services Haiku
“Here is my (legacy/non-cloud-native) data service Run it on the cloud for me
I do not care how”
Running MongoDB on
Pivotal Cloud Foundry
Let’s go through some definitions
• Service Broker – is the component of the service that implements the service broker API
• Service Broker API – The API that must be implemented to integrate a service with Cloud Foundry
• Cloud Controller – provides the REST API endpoints for clients to access
the system, and maintains a database (CCDB) with tables for orgs, spaces, services, user roles, etc.
• Router – routes the traffic coming into Cloud Foundry to the appropriate component
Bosh 2.0
• Bosh 2.0 – Cloud Foundry orchestration layer that does • Advanced real-time dynamic provisioning and deployment of software
over hundred's of VM’s • Release engineering • Deployment • Lifecycle management • Monitoring • Failure recovery • Software updates with zero-to-minimal downtime
• Which means – legacy, NoSQL and non-cloud native databases, like MongoDB can now run on Pivotal Cloud Foundry
Why On Demand Dynamic Provisioning? - Leverages Bosh 2.0 to dynamically provision a
MongoDB-Cluster on demand
- Leverages Bosh Links by making the Bosh Director*
responsible for IP management
*Core orchestrating component of Bosh, controlling the VM creation, deployment, other s/w and lifecycle events
> cf marketplace
> cf create-service
> cf bind-service
> cf unbind-service
> cf delete-service
CCDB
Service Broker
Service Plans (single node, single-
replica-set, sharded,
etc...)
IaaS
Services API Router
Cloud Controller
Fetch Catalog
Provision
De-Provision
Create Binding
Delete Binding
On Demand VM Creation…
VM Deletion...
The On-Demand Service Broker Workflow
MongoDB - On Demand Service as a Pivotal Cloud FoundryTile
- Pivotal Cloud Foundry / Bosh 2.0 to leverage on-demand dynamic service provisioning
+ - MongoDb Enterprise Ops Manager for the cluster
configuration and monitoring capabilities
MongoDB - On Demand Service as a Pivotal Cloud FoundryTile
- Provision the IAAS resources during service
instance creation - Everything packaged into a “tile” that runs on
Pivotal Cloud Foundry on any IAAS
Demo
Let’s build something great