SlideShare a Scribd company logo
MongoDB on Azure -Tips, Tricks and ExamplesMongoDB world 2014 
David Makogon, Enterprise Architect, Azure 
Brian Benz, Sr. Technical Evangelist, Microsoft Open Technologies, Inc.
Agenda 
•Azure 
•MongoDB Options -NoSQL on Azure IaaS, PaaS, SaaS 
•MongoDB on Azure 
•Q&A
Azure 
Flexible
Your Datacenter 
Web Sites 
Cloud Services 
Virtual Machines 
Microsoft Azure
Web Sites 
Cloud Services 
Virtual MachinesLinux / WindowsVNETs / VPNStatefulOSRDP / SSHExternal ACLHyper-V compatibleLarger Attached StorageMultiple TCP / UDP portsStartupScriptsVNETs/ VPNStatelessOSRDPExternal ACLStaging / ProdLarger instancesMultiple TCP / UDP portsManaged OSFramework galleryGitintegrationShared DisksInstant DeployStaging / ProdFree tierWeb JobsSite BackupsManaged OS
Which deployment model to use? 
Yes 
No 
Yes 
No 
Yes 
No
AzureVirtual Machines –OS Options 
Windows Server 
OpenSUSEand SUSE Enterprise 
CentOS 
Ubuntu 
Oracle Linux
vmdepot.msopentech.com
Docs -azure.microsoft.com/documentation/
SDKs -azure.microsoft.com/downloads
CLIs -azure.microsoft.com/downloads
OSS DevOps -msopentech.com/projects
The Landscape –MongoDB on Azure 
MongoDB is easily installable on Linux or Windows 
VMs up to 112GB + 16TB attached storage 
Easy to ACL input traffic or just place in VNet 
Hosted MongoDB too - 
–MongoLab 
–MongoDB Inc.
Support and Alerts 
Custom Admin Tools 
Backup and Recover 
Performance Analysis –Slow Query Analyzer 
Monitoring and Support
MongoDB
Replica set hostedon Azurevirtual machines 
Replica Set 
Driver 
Your Application 
Replica Sets: High Availability
Shards, configservers and mongos (router) hosted on Azure virtual machines 
Key range A-D 
Sharding: Scalability 
Key range E-G 
Key range G-Z 
Your Application 
Mongos (router)
Example: Provisioning a Replica Set 
azure vmcreate mongocluster–o "vmdepot-40398-1- 1.vhd" username password-l "West US" -e 22 
azure vmcreate mongocluster-o "vmdepot-40398-1- 1.vhd" username password-l "West US" -e 23 -c 
azure vmcreate mongocluster–o "vmdepot-40398-1- 1.vhd" username password-l "West US" -e 24 -c 
azure vmendpoint create mongoc9 27017 27017azure vmendpoint create mongoc9-2 27018 27018azure vmendpoint create mongoc9-3 27019 27019 
…start mongod, initialize replica set
azure 
topic 
verb 
options 
Command Line Syntax Overview 
prompt> 
account 
account location 
account affinity-group 
vm 
vmdisk 
vmendpoint 
vmimage 
service 
service cert 
site 
config 
download 
import 
list 
show 
delete 
start 
restart 
shutdown 
capture 
create 
attach 
detach 
browse 
set 
username 
password 
dns-prefix 
vm-name 
lb-port 
target-image-name 
source-path 
disk-image-name 
size-in-gb 
thumbprint 
value 
-v 
-vv
Automation Support 
• 
• 
Capabilities 
• 
• 
• 
• 
• 
•Fully Customize VM with Data Disks and Endpoint Configuration 
•Automate Virtual Network Settings
Mongo db world 2014 nyc   mongodb on azure - tips tricks and examples
Mongo db world 2014 nyc   mongodb on azure - tips tricks and examples
Where to learn more 
Tutorial: Building a multi-tier cloud application on Azure using MongoLab, node.js, and Socket.IOhttp://aka.ms/C72pp8 
Tutorial: Using MongoDB, Windows Communication Foundation, OData, and PowerBI to build a Business Intelligence solution on Azurehttp://aka.ms/Di7d4r 
MongoDB on Azure VM - http://aka.ms/Nnjwgu 
Install MongoDB on a virtual machine running Windows Server in Azure: http://aka.ms/Py8c6b 
Node.js Web Application with Storage on MongoDB (Virtual Machine): Create an Azure web site that connects to MongoDB running on a virtual machine in Azure: http://aka.ms/Xyzxgd
Other Resources 
Microsoft Open Technologies Blog: http://msopentech.com/blog/ 
VM Depot: http://vmdepot.msopentech.com 
Azure development: http://azure.microsoft.com 
SDKs and Command Line Tools: http://azure.microsoft.com/en-us/downloads/ 
Azure Training Kit: http://aka.ms/Mjqnk6 
Microsoft Web Platform Installer: http://www.microsoft.com/web/downloads/platform.aspx 
Web Matrixhttp://www.microsoft.com/web/webmatrix/ 
Project Kuduhttps://github.com/projectkudu/kudu
Q&A

More Related Content

What's hot (20)

PPTX
Windows Azure Virtual Machines And Virtual Networks
Kristof Rennen
 
PPTX
Get started With Microsoft Azure Virtual Machine
Lai Yoong Seng
 
PPTX
Azure PaaS databases
Gianluca Hotz
 
PPTX
SQL ON Azure (decision-matrix)
PARIKSHIT SAVJANI
 
PPTX
Cnam azure 2015 storage
Aymeric Weinbach
 
PPTX
All about Kerberos In Microsoft BI
PARIKSHIT SAVJANI
 
PDF
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Lars Platzdasch
 
PPTX
Keynote - Silicon Valley Cloud Computing User Group Meet - April 2011 - Srira...
Sriram Krishnan
 
POTX
Jenkins, jclouds, CloudStack, and CentOS by David Nalley
buildacloud
 
ODP
Guaranteeing Storage Performance by Mike Tutkowski
buildacloud
 
PPTX
Server 2016 sneak peek
Michael Rüefli
 
PPTX
SQL Azure
Pavel Revenkov
 
PDF
VMware Integrated OpenStack 2.0
Erik Bussink
 
PPTX
Azure DBA with IaaS
Kellyn Pot'Vin-Gorman
 
PDF
Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Brian Benz
 
PPTX
Redis Labs and SQL Server
Lynn Langit
 
PPTX
Azure virtual machines & Terraform
Juan Jose Gazzola
 
PPTX
Sql Server 2014 Hybrid Cloud
BT Akademi
 
PPTX
MS Cloud Day - Building web applications with Azure storage
Spiffy
 
PPTX
SQL Server 2017 on Linux Introduction
Travis Wright
 
Windows Azure Virtual Machines And Virtual Networks
Kristof Rennen
 
Get started With Microsoft Azure Virtual Machine
Lai Yoong Seng
 
Azure PaaS databases
Gianluca Hotz
 
SQL ON Azure (decision-matrix)
PARIKSHIT SAVJANI
 
Cnam azure 2015 storage
Aymeric Weinbach
 
All about Kerberos In Microsoft BI
PARIKSHIT SAVJANI
 
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Lars Platzdasch
 
Keynote - Silicon Valley Cloud Computing User Group Meet - April 2011 - Srira...
Sriram Krishnan
 
Jenkins, jclouds, CloudStack, and CentOS by David Nalley
buildacloud
 
Guaranteeing Storage Performance by Mike Tutkowski
buildacloud
 
Server 2016 sneak peek
Michael Rüefli
 
SQL Azure
Pavel Revenkov
 
VMware Integrated OpenStack 2.0
Erik Bussink
 
Azure DBA with IaaS
Kellyn Pot'Vin-Gorman
 
Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Brian Benz
 
Redis Labs and SQL Server
Lynn Langit
 
Azure virtual machines & Terraform
Juan Jose Gazzola
 
Sql Server 2014 Hybrid Cloud
BT Akademi
 
MS Cloud Day - Building web applications with Azure storage
Spiffy
 
SQL Server 2017 on Linux Introduction
Travis Wright
 

Viewers also liked (8)

PDF
MongoDB on Windows Azure
Jeremy Taylor
 
PDF
MongoDB on Azure
Norberto Leite
 
PDF
AWS & MongoDB
Jeremy Taylor
 
PDF
MongoDB Quick Reference Card
Jeremy Taylor
 
PDF
MongoDB Milan MUG June 2015 MongoDB + Azure + Siope OpenData
Ivan Fioravanti
 
PPTX
The three aaS's of MongoDB in Windows Azure
MongoDB
 
PDF
Azure - Data Platform
giventocode
 
PPTX
Azure Data platform
Mostafa
 
MongoDB on Windows Azure
Jeremy Taylor
 
MongoDB on Azure
Norberto Leite
 
AWS & MongoDB
Jeremy Taylor
 
MongoDB Quick Reference Card
Jeremy Taylor
 
MongoDB Milan MUG June 2015 MongoDB + Azure + Siope OpenData
Ivan Fioravanti
 
The three aaS's of MongoDB in Windows Azure
MongoDB
 
Azure - Data Platform
giventocode
 
Azure Data platform
Mostafa
 
Ad

Similar to Mongo db world 2014 nyc mongodb on azure - tips tricks and examples (20)

PPTX
MongoDB on Azure - Tips, Tricks and Examples
MongoDB
 
PPTX
MongoDB and Windows Azure
MongoDB
 
PPTX
MongoDB and Windows Azure
Doug Mahugh
 
PPTX
MongoDB on Windows Azure
MongoDB
 
PDF
NoSQL on microsoft azure april 2014
Brian Benz
 
PPTX
MongoDB on Windows Azure
MongoDB
 
PPTX
MongoDB in Windows Azure - Evgeniy Maliy - Dnipropetrovsk MUG 140303
Victoria Malaya
 
PDF
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
Johannes Hoppe
 
PPTX
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
Microsoft Tech Community
 
PPTX
MongoDB for Beginners
Enoch Joshua
 
PPTX
Azure Fubdamentals (Az-900) presentation.
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
PDF
MongoDB Atlas - the best way to run MongoDB in the cloud 1
MongoDB
 
PPTX
Tech-Spark: Exploring the Cosmos DB
Ralph Attard
 
PDF
Mongodb tutorial
sachin486983
 
PDF
Building the future of Digital Television and Enterprise Database Management ...
MongoDB
 
PPTX
Microsoft Azure Fundamentals- Section 2 Azure Compute.pptx
IPSpecialist
 
PDF
Module 2 Azure Services for Web Developement.pdf
trwdcn
 
PPTX
MongoDB and MongoMK Source Event
Yuval Ararat
 
KEY
Discover MongoDB - Israel
Michael Fiedler
 
PDF
Philadelphia MongoDB User Group - Your First MongoDB Application
Michael Lynn
 
MongoDB on Azure - Tips, Tricks and Examples
MongoDB
 
MongoDB and Windows Azure
MongoDB
 
MongoDB and Windows Azure
Doug Mahugh
 
MongoDB on Windows Azure
MongoDB
 
NoSQL on microsoft azure april 2014
Brian Benz
 
MongoDB on Windows Azure
MongoDB
 
MongoDB in Windows Azure - Evgeniy Maliy - Dnipropetrovsk MUG 140303
Victoria Malaya
 
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
Johannes Hoppe
 
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
Microsoft Tech Community
 
MongoDB for Beginners
Enoch Joshua
 
Azure Fubdamentals (Az-900) presentation.
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
MongoDB Atlas - the best way to run MongoDB in the cloud 1
MongoDB
 
Tech-Spark: Exploring the Cosmos DB
Ralph Attard
 
Mongodb tutorial
sachin486983
 
Building the future of Digital Television and Enterprise Database Management ...
MongoDB
 
Microsoft Azure Fundamentals- Section 2 Azure Compute.pptx
IPSpecialist
 
Module 2 Azure Services for Web Developement.pdf
trwdcn
 
MongoDB and MongoMK Source Event
Yuval Ararat
 
Discover MongoDB - Israel
Michael Fiedler
 
Philadelphia MongoDB User Group - Your First MongoDB Application
Michael Lynn
 
Ad

More from Brian Benz (9)

PDF
How Microsoft learned to love Java
Brian Benz
 
PDF
Node.js on microsoft azure april 2014
Brian Benz
 
PDF
Ruby on microsoft azure april 2014
Brian Benz
 
PDF
Java on Microsoft Azure
Brian Benz
 
PDF
Experiences using CouchDB inside Microsoft's Azure team
Brian Benz
 
PDF
Solr on Microsoft Azure
Brian Benz
 
PDF
Eclipse Development with Microsoft Azure
Brian Benz
 
PDF
Working with Chef on Microsoft Windows and Microsoft Azure
Brian Benz
 
PDF
Best Practices for couchDB developers on Microsoft Azure
Brian Benz
 
How Microsoft learned to love Java
Brian Benz
 
Node.js on microsoft azure april 2014
Brian Benz
 
Ruby on microsoft azure april 2014
Brian Benz
 
Java on Microsoft Azure
Brian Benz
 
Experiences using CouchDB inside Microsoft's Azure team
Brian Benz
 
Solr on Microsoft Azure
Brian Benz
 
Eclipse Development with Microsoft Azure
Brian Benz
 
Working with Chef on Microsoft Windows and Microsoft Azure
Brian Benz
 
Best Practices for couchDB developers on Microsoft Azure
Brian Benz
 

Mongo db world 2014 nyc mongodb on azure - tips tricks and examples

  • 1. MongoDB on Azure -Tips, Tricks and ExamplesMongoDB world 2014 David Makogon, Enterprise Architect, Azure Brian Benz, Sr. Technical Evangelist, Microsoft Open Technologies, Inc.
  • 2. Agenda •Azure •MongoDB Options -NoSQL on Azure IaaS, PaaS, SaaS •MongoDB on Azure •Q&A
  • 4. Your Datacenter Web Sites Cloud Services Virtual Machines Microsoft Azure
  • 5. Web Sites Cloud Services Virtual MachinesLinux / WindowsVNETs / VPNStatefulOSRDP / SSHExternal ACLHyper-V compatibleLarger Attached StorageMultiple TCP / UDP portsStartupScriptsVNETs/ VPNStatelessOSRDPExternal ACLStaging / ProdLarger instancesMultiple TCP / UDP portsManaged OSFramework galleryGitintegrationShared DisksInstant DeployStaging / ProdFree tierWeb JobsSite BackupsManaged OS
  • 6. Which deployment model to use? Yes No Yes No Yes No
  • 7. AzureVirtual Machines –OS Options Windows Server OpenSUSEand SUSE Enterprise CentOS Ubuntu Oracle Linux
  • 13. The Landscape –MongoDB on Azure MongoDB is easily installable on Linux or Windows VMs up to 112GB + 16TB attached storage Easy to ACL input traffic or just place in VNet Hosted MongoDB too - –MongoLab –MongoDB Inc.
  • 14. Support and Alerts Custom Admin Tools Backup and Recover Performance Analysis –Slow Query Analyzer Monitoring and Support
  • 16. Replica set hostedon Azurevirtual machines Replica Set Driver Your Application Replica Sets: High Availability
  • 17. Shards, configservers and mongos (router) hosted on Azure virtual machines Key range A-D Sharding: Scalability Key range E-G Key range G-Z Your Application Mongos (router)
  • 18. Example: Provisioning a Replica Set azure vmcreate mongocluster–o "vmdepot-40398-1- 1.vhd" username password-l "West US" -e 22 azure vmcreate mongocluster-o "vmdepot-40398-1- 1.vhd" username password-l "West US" -e 23 -c azure vmcreate mongocluster–o "vmdepot-40398-1- 1.vhd" username password-l "West US" -e 24 -c azure vmendpoint create mongoc9 27017 27017azure vmendpoint create mongoc9-2 27018 27018azure vmendpoint create mongoc9-3 27019 27019 …start mongod, initialize replica set
  • 19. azure topic verb options Command Line Syntax Overview prompt> account account location account affinity-group vm vmdisk vmendpoint vmimage service service cert site config download import list show delete start restart shutdown capture create attach detach browse set username password dns-prefix vm-name lb-port target-image-name source-path disk-image-name size-in-gb thumbprint value -v -vv
  • 20. Automation Support • • Capabilities • • • • • •Fully Customize VM with Data Disks and Endpoint Configuration •Automate Virtual Network Settings
  • 23. Where to learn more Tutorial: Building a multi-tier cloud application on Azure using MongoLab, node.js, and Socket.IOhttp://aka.ms/C72pp8 Tutorial: Using MongoDB, Windows Communication Foundation, OData, and PowerBI to build a Business Intelligence solution on Azurehttp://aka.ms/Di7d4r MongoDB on Azure VM - http://aka.ms/Nnjwgu Install MongoDB on a virtual machine running Windows Server in Azure: http://aka.ms/Py8c6b Node.js Web Application with Storage on MongoDB (Virtual Machine): Create an Azure web site that connects to MongoDB running on a virtual machine in Azure: http://aka.ms/Xyzxgd
  • 24. Other Resources Microsoft Open Technologies Blog: http://msopentech.com/blog/ VM Depot: http://vmdepot.msopentech.com Azure development: http://azure.microsoft.com SDKs and Command Line Tools: http://azure.microsoft.com/en-us/downloads/ Azure Training Kit: http://aka.ms/Mjqnk6 Microsoft Web Platform Installer: http://www.microsoft.com/web/downloads/platform.aspx Web Matrixhttp://www.microsoft.com/web/webmatrix/ Project Kuduhttps://github.com/projectkudu/kudu
  • 25. Q&A