Upload
mongodb
View
562
Download
2
Tags:
Embed Size (px)
DESCRIPTION
The Windows Azure cloud offers a variety of deployment models (Paas, IaaS, Web Sites) for hosting applications and database services on both Windows and Linux virtual machines. In this session we'll outline the various options, look at best practices, and walk through setting up a Linux VM hosting MongoDB.
Citation preview
Jim O’NeilTechnical Evangelist
http://aka.ms/jimoneil
MongoDB and Windows Azure
Agenda
• Overview of Windows Azure
• MongoDB on Windows Azure• Deploying MongoDB as a Cloud Service
• Deploying MongoDB to a Virtual Machine
• Resources and References
Windows Azure
Global Footprint8 Data Centers24 CDN Nodes
FlexibleCloud Services (PaaS)VMs (IaaS)Web Sites (“hosting”)
OpenWindows ServerUbuntuCentOSSUSE
StorageBig data Database TrafficMobile
Services
Applicationbuilding blocks
Caching IdentityMessagin
g
CDNMediaNetworkin
g
Open Source on Windows AzureMicrosoft collaborates with OSS communities to assure that applications, frameworks and tools work great with Windows Azure
Learn more: http://www.windowsazure.com/en-us/community/open-source-software/
Microsoft Open Technologies, Inc.• Wholly owned subsidiary
• Responsible for advancingthe company’s investmentin openness:• interoperability• open standards• open source
• Collaborating with the MongoDB community since 2011 to improve the MongoDB experience on Windows Azure
90-day Free Trial
http://aka.ms/GetAzureTrial
MongoDB + Windows Azure• MongoDB designed to run in the cloud• Windows Azure supports multiple
architectures for MongoDB deployment• The combination of MongoDB and Windows
Azure provides many benefits:• High scalability and elasticity• On-demand capacity• Pay for only what you use• Faster time-to-market
MongoDB as a Cloud Service (PaaS)• Easiest way to deploy MongoDB
on Windows Azure
• Windows Azure handles ongoing management of the OS and infrastructure
• Infinitely scalable, on demand
• Application and MongoDB in same cloud service provides security boundary
• MongoDB Azure wrapper: http://aka.ms/MongoAzurePaaS
A container of related service roles
Web Role Worker Role
Windows Azure Cloud Service (PaaS)
Blobstorage
Replica Set
MVC Movie
Replica Sets
Manager
Primary
Secondary
Secondary
Cloud Drives
MongoDB on VMs (IaaS)• When compared to worker role:
more control, but requires more responsibility• Sharding• Internal endpoints• Security
• Windows Installer: http://bit.ly/WKxGA7
• Linux walkthrough: http://bit.ly/KlAu3R/
Blob storage
Shardingmongos (router)
Key Range A-H
Primary
Secondary
Secondary
Key Range I-R
Primary
Secondary
Secondary
Key Range S-Z
Primary
Secondary
Secondary
Your App
mongos (router)mongo
sConfigserver
LB
Virtual Machine Sizes
Each Persistent Data Disk can be up to 1 TB
VM Size CPU Cores Memory Bandwidth
(Mbps)# Data Disks
Extra Small Shared 768 MB 5 1
Small 1 1.75 GB 100 2
Medium 2 3.5 GB 200 4
Large 4 7 GB 400 8
Extra Large 8 14 GB 800 16
Scripting Capabilities• Windows Azure PowerShell Cmdlets• Cross Platform Scripting Built on node.js• Service Management API• Capabilities:
• Provisioning, Removal• Reboot, Start• Import and Export VM settings• Support for Windows and Linux VMs• Fully Customize VM with Data Disks and Endpoint
Configuration• Automate Virtual Network Settings
Example: Provisioning a Replica Setazure vm create mongoc9 "OpenLogic__OpenLogic-CentOS-62-20120531-en-us-30GB.vhd" username password -l "West US" -e azure vm create mongoc9 "OpenLogic__OpenLogic-CentOS-62-20120531-en-us-30GB.vhd" username password -l "West US" -e 23 -c azure vm create mongoc9 "OpenLogic__OpenLogic-CentOS-62-20120531-en-us-30GB.vhd" username password -l "West US" -e 24 -c
azure vm endpoint create mongoc9 27017 27017azure vm endpoint create mongoc9-2 27018 27018azure vm endpoint create mongoc9-3 27019 27019
SSH into each instance and:get mongodb binaries and installcreate db dirstart mongod, initialize replica set
MongoDB + Windows Azure benefits
Flexible
Deployment: PaaS or IaaS
Languages: Java, PHP, Node.JS, .NET, Python, etc.
OS: Windows Server, CentOS, Ubuntu, SUSE
ScalableSupport for horizontal scaling and sharding
Support for responsive auto-scaling
Resources• MongoDB on Azure• MongoDB Experts video series• Windows Azure Training Kit• OSS-on-Azure tutorials• Install MongoDB on a Centos VM in Windows
Azure• Node.js Web Application with Storage on
MongoDBhttp://aka.ms/
AzureMongoBoston2012
Q&A
http://aka.ms/AzureMongoBoston2012