简体   繁体   English

在Azure中运行MongoDB

[英]Run MongoDB in Azure

How to run MongoDB on WindowsAzure? 如何在WindowsAzure上运行MongoDB? Should instance be deployed on a virtual machine? 是否应将实例部署在虚拟机上? Are there any out-of-the-box solutions like images for virtual machines or anything else? 是否有任何现成的解决方案,例如虚拟机映像或其他任何解决方案? How to run replica sets on WindowsAzure? 如何在WindowsAzure上运行副本集?

I saw this article http://docs.mongodb.org/ecosystem/platforms/windows-azure/ but I feel like it is already out of date. 我看到了这篇文章http://docs.mongodb.org/ecosystem/platforms/windows-azure/,但我觉得它已经过时了。 Is it? 是吗?

Any best practices, help or info would be appreciated! 任何最佳做法,帮助或信息将不胜感激!

The article that you refer to describes the options quite well. 您引用的文章很好地描述了这些选项。 You have three options: 您有三种选择:

  1. Running MongoDB in worker roles (as linked to in the article). 以辅助角色运行MongoDB(如本文中所链接)。 Before Azure VMs, worker roles were the only option, but I wouldn't recommend it. 在Azure VM之前,工作者角色是唯一的选择,但是我不建议这样做。
  2. You can try the MongoDB database as as service offerings that are available in the add-ons store. 您可以将MongoDB数据库作为附加产品商店中可用的服务来尝试。 This would be a good way to try it out. 这将是一个很好的尝试方法。 For longer term, you will have to ask around for peoples' experience. 从长远来看,您将不得不询问人们的经验。
  3. I recommend that you run MongoDB on a Linux VM. 我建议您在Linux VM上运行MongoDB。 That way you have full control and support from the linux/MongoDB community. 这样,您将获得linux / MongoDB社区的完全控制和支持。 Replica sets would the be 'out the box'. 副本集将是“开箱即用”的。 The article links to a walkthrough on a CentOS image. 本文链接到CentOS映像上的演练。 You can also get a pre-built image from VMDepot such as this Ubuntu one . 您还可以从VMDepot获得一个预构建的映像,例如这个Ubuntu映像。 The VMDepot images seem to work very well and are a good start for people with less Linux experience. VMDepot映像似乎运行良好,并且是Linux经验较少的人的一个良好的开始。

Edit : MongoLab seems to be gaining traction, and is getting support from Scott Guthrie . 编辑 :MongoLab似乎正在受到关注,并且正在获得Scott Guthrie的支持 As a service that has affinity with Azure datacentres, it is worth evaluating. 作为与Azure数据中心具有亲和力的服务,值得评估。

You can use MongoLab - Here goes the Tutorial on Azure 您可以使用MongoLab - Azure上的教程

Using MongoLab all the maintenance (atleast in DB engine itself) will be taken care by MongoLab guys. 使用MongoLab的所有维护(至少DB引擎本身)将由MongoLab的人员负责。 That will remove lot of maintenance overheads on your side. 这样可以节省您大量的维护费用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM