MongoDB on Azure - Tips, Tricks and Examples

1,655 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,655
On SlideShare
0
From Embeds
0
Number of Embeds
384
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

MongoDB on Azure - Tips, Tricks and Examples

  1. 1. MongoDB on Azure - Tips, Tricks and Examples MongoDB world 2014 DavidMakogon,EnterpriseArchitect,Azure BrianBenz,Sr.TechnicalEvangelist,MicrosoftOpen Technologies,Inc.
  2. 2. Agenda • Azure • MongoDB Options - NoSQL on Azure IaaS, PaaS, SaaS • MongoDB on Azure • Q&A
  3. 3. Azure Flexible
  4. 4. Your Datacenter Web Sites Cloud Services Virtual Machines Microsoft Azure
  5. 5. Web SitesCloud ServicesVirtual Machines Linux / Windows VNETs / VPN Stateful OS RDP / SSH External ACL Hyper-V compatible Larger Attached Storage Multiple TCP / UDP ports Startup Scripts VNETs / VPN Stateless OS RDP External ACL Staging / Prod Larger instances Multiple TCP / UDP ports Managed OS Framework gallery Git integration Shared Disks Instant Deploy Staging / Prod Free tier Web Jobs Site Backups Managed OS
  6. 6. Which deployment model to use? Yes No Yes No Yes No
  7. 7. Azure Virtual Machines – OS Options Windows Server OpenSUSE and SUSE Enterprise CentOS Ubuntu Oracle Linux
  8. 8. vmdepot.msopentech.com
  9. 9. Docs - azure.microsoft.com/documentation/
  10. 10. SDKs - azure.microsoft.com/downloads
  11. 11. CLIs - azure.microsoft.com/downloads
  12. 12. OSS DevOps - msopentech.com/projects
  13. 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. 14.  SupportandAlerts  CustomAdminTools  BackupandRecover  PerformanceAnalysis–SlowQueryAnalyzer  MonitoringandSupport
  15. 15. MongoDB
  16. 16. Replica set hosted on Azure virtual machines Replica Set DriverYour Application Replica Sets: High Availability
  17. 17. Shards, config servers 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. 18. Example: Provisioning a Replica Set azure vm create mongocluster –o "vmdepot-40398-1- 1.vhd" username password -l "West US" -e 22 azure vm create mongocluster -o "vmdepot-40398-1- 1.vhd" username password -l "West US" -e 23 -c azure vm create mongocluster –o "vmdepot-40398-1- 1.vhd" username password -l "West US" -e 24 -c azure vm endpoint create mongoc9 27017 27017 azure vm endpoint create mongoc9-2 27018 27018 azure vm endpoint create mongoc9-3 27019 27019 …start mongod, initialize replica set
  19. 19. 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
  20. 20. Automation Support • • Capabilities • • • • • • Fully Customize VM with Data Disks and Endpoint Configuration • Automate Virtual Network Settings
  21. 21. Where to learn more Tutorial:Building a multi-tier cloud application onAzure using MongoLab, node.js, and Socket.IO http://aka.ms/C72pp8 Tutorial:Using MongoDB, Windows Communication Foundation, OData, and PowerBI to build a Business Intelligence solution onAzure http://aka.ms/Di7d4r MongoDB onAzure VM - http://aka.ms/Nnjwgu Install MongoDB on a virtual machine running Windows Server inAzure: http://aka.ms/Py8c6b Node.js WebApplication with Storage on MongoDB (Virtual Machine): Create anAzure web site that connects to MongoDB running on a virtual machine in Azure: http://aka.ms/Xyzxgd
  22. 22. Other Resources Microsoft OpenTechnologies 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/ AzureTraining Kit: http://aka.ms/Mjqnk6 Microsoft Web Platform Installer: http://www.microsoft.com/web/downloads/platform.aspx Web Matrix http://www.microsoft.com/web/webmatrix/ Project Kudu https://github.com/projectkudu/kudu
  23. 23. Q&A

×