Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MongoDB and Windows Azure

MongoDB and Windows Azure

Presented at Mongo Seattle 2012 with Doug Mahugh

Sridhar Nanjundeswaran

September 14, 2012
Tweet

More Decks by Sridhar Nanjundeswaran

Other Decks in Technology

Transcript

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

    View full-size slide

  2. Windows Azure

    View full-size slide

  3. Application
    building blocks

    View full-size slide

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

    View full-size slide

  5. Microsoft Open Technologies, Inc.

    View full-size slide

  6. 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

    View full-size slide

  7. Windows Azure Cloud Service

    View full-size slide

  8. Windows Azure
    Virtual Machines

    View full-size slide

  9. 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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  12. MongoDB + Windows Azure

    View full-size slide

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

    View full-size slide

  14. 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

    View full-size slide

  15. 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

    View full-size slide

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

    View full-size slide

  17. 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/

    View full-size slide

  18. 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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  21. 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

    View full-size slide

  22. 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)/

    View full-size slide