Slide 1

Slide 1 text

MongoDB and Windows Azure Doug Mahugh Senior Technical Evangelist Microsoft Open Technologies, Inc. Sridhar Nanjundeswaran Software Engineer 10gen

Slide 2

Slide 2 text

Agenda

Slide 3

Slide 3 text

Windows Azure

Slide 4

Slide 4 text

Application building blocks

Slide 5

Slide 5 text

Open Source on Windows Azure Learn more: http://www.windowsazure.com/en-us/community/open-source-software/

Slide 6

Slide 6 text

Microsoft Open Technologies, Inc.

Slide 7

Slide 7 text

http://www.windowsazure.com/en-us/develop/overview/ Windows Azure Developer Center .NET driver Node.js driver Java driver PHP driver Python driver Driver download page

Slide 8

Slide 8 text

Windows Azure Cloud Service

Slide 9

Slide 9 text

Windows Azure Virtual Machines

Slide 10

Slide 10 text

Virtual Machine Sizes 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

Slide 11

Slide 11 text

Windows Azure Management Portal http://manage.windowsazure.com https://windows.azure.com

Slide 12

Slide 12 text

Getting Started http://www.windowsazure.com/en-us/pricing/free-trial/

Slide 13

Slide 13 text

MongoDB + Windows Azure

Slide 14

Slide 14 text

Replica set hosted on Windows Azure worker roles or virtual machines Replica Set Driver Your Application Replica Sets: high availability

Slide 15

Slide 15 text

Shards and mongos (router) hosted on Windows Azure worker roles or virtual machines Key range A-B Sharding: high scalability and throughput Key range B-C Key range C-D Key range D-E Mongos (router) Your Application

Slide 16

Slide 16 text

MongoDB + Windows Azure benefits Flexible • PaaS or IaaS deployment • Java, PHP, Node.JS, .NET, or Python • Many OS options including Windows Server, CentOS, Ubuntu, SUSE Scalable • MongoDB’s built-in support for horizontal scaling and sharding • 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

Slide 17

Slide 17 text

Deploying MongoDB as a Cloud Service http://www.mongodb.org/display/DOCS/MongoDB+on+Azure+Worker+Roles

Slide 18

Slide 18 text

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/

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

azure topic verb options Command Line Syntax Overview prompt> account account location account affinity-group vm vm disk vm endpoint vm image 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

Slide 21

Slide 21 text

Example: Provisioning a Replica Set To set up MongoDB, SSH into each instance and:

Slide 22

Slide 22 text

DEMO-PaaS Monitoring service: http://beefb1a5abb743f086e57c5f7bf5d3cf.cloudapp.net/ App deployed with the MongoDB Replica Set wrapper for Windows Azure http://beefb1a5abb743f086e57c5f7bf5d3cf.cloudapp.net:8080/

Slide 23

Slide 23 text

DEMO-IaaS Local MongoDB instance mongo-demo.php?host=localhost Replica set on Linux VMs mongo-demo.php?host=linux Replica set on Windows VMs mongo-demo.php?host=windows

Slide 24

Slide 24 text

Resources http://www.mongodb.org/display/DOCS/MongoDB+on+Azure+- +Overview http://blogs.msdn.com/b/interoperability/archive/2012/06/01/mongodb-experts-video- series.aspx www.WindowsAzure.com http://windowsazure-trainingkit.github.com/ http://ossonazure.interoperabilitybridges.com/tutorials http://www.windowsazure.com/en-us/manage/linux/common-tasks/mongodb-on-a- linux-vm/ http://waweb.windowsazure.com/en-us/develop/nodejs/tutorials/website-with- mongodb-(mac)/

Slide 25

Slide 25 text

Q&A