10. Virtual Machine Sizes
CPU Bandwidth # Data
VM Size Memory
Cores (Mbps) Disks
Extra
Shared 768 MB 5 1
Small
Small 1 1.75 GB 100 2
Medium 2 3.5 GB 200 4
Large 4 7 GB 400 8
Extra
8 14 GB 800 16
Large
14. Replica Sets: high availability
Your Driver Replica Set
Application
Replica set hosted
on Windows Azure
worker roles or
virtual machines
15. Sharding: high scalability and
throughput Mongos Your
(router) Application
Key range A-B Key range B-C Key range C-D Key range D-E
Shards and mongos (router) hosted on Windows
Azure worker roles or virtual machines
16. MongoDB + Windows Azure
benefits
• PaaS or IaaS deployment
• Java, PHP, Node.JS, .NET, or Python
Flexible
• Many OS options including Windows
Server, CentOS, Ubuntu, SUSE
• MongoDB’s built-in support for
horizontal scaling and sharding
Scalable
• Windows Azure’s built-in support for
responsive auto-scaling
MongoDB on Windows Azure provides all the benefits customers have
come to expect from cloud computing: elasticity, on-demand capacity,
faster time to market, and pay-for-what-you-use pricing
17. Deploying MongoDB as a Cloud Service
http://www.mongodb.org/display/DOCS/MongoDB+on+Azure+Worker+Roles
18. Deploying to Virtual Machines
http://www.mongodb.org/display/DOCS/MongoDB+on+Azure+VM
+-+Windows+Installer
http://www.windowsazure.com/en-us/manage/linux/common-
tasks/mongodb-on-a-linux-vm/
19.
20. Command Line Syntax
prompt> azure Overview
topic verb options
account download username
account location import password
account affinity-group list dns-prefix
vm show vm-name
vm disk delete lb-port
vm endpoint start target-image-name
vm image restart source-path
service shutdown disk-image-name
service cert capture size-in-gb
site create thumbprint
config create-from value
attach -v
attach-new -vv
detach
browse
set
22. DEMO-PaaS
App deployed with the MongoDB Replica Set wrapper for Windows Azure
http://beefb1a5abb743f086e57c5f7bf5d3cf.cloudapp.net:8080/
Monitoring service:
http://beefb1a5abb743f086e57c5f7bf5d3cf.cloudapp.net/