gpt4 book ai didi

Azure 云上的 MongoDB

转载 作者:行者123 更新时间:2023-12-03 04:47:28 25 4
gpt4 key购买 nike

用于 Azure 生产的 MongoDB 准备好了吗?有人可以分享一些经验吗?看起来将其用于产品缺乏舒适感。

你觉得怎么样?

Edit: Since there is a misunderstanding in my question i will try to redefine it. The information i look into from the community is sharing an info of someone who is running mongo on windows azure to share experience from it. What i mean by experience is not how to run it in the cloud(we already have the manual on 10gens faq) nor how many bugs it have(we can see that in mongo-azure jira). What i am looking for is that how it is going with performance ? Are there any problems(side effects) from running mongodb on azure ? How does mongodb handle VM recycling ? Does anyone tried sharding ? In the end, is the mongo-azure worker role from 10gens stable for using it in production ?

希望这个问题能够得到解决。

最佳答案

这里稍微澄清一下。 MongoDB 本身已做好生产准备。而且 MongoDB 在 Windows Azure 中工作得很好,只要您设置脚手架以使其在环境中工作。这通常需要设置 Azure 驱动器,为您提供持久存储。或者,使用副本集,您可以有效地在集合成员之间实现最终一致性。然后,您可以考虑使用独立式(或带有热备用的独立式)。就我个人而言,我更喜欢复制集模型,这是生产 MongoDB 系统的典型指南。

就 10gen 对 Windows Azure 的支持而言:虽然 @SyntaxC4 指向的页面确实澄清了包装器处于预览状态,但请注意,包装器是启动 MongoDB 的脚手架代码。该脚手架最初于 2011 年 12 月发布,此后进行了一些调整。它使用生产 MongoDB 位(并且与 5 月 9 日发布的版本 2.0.5 一起工作得很好)。需要注意的是,MongoDB 复制集角色与应用程序的角色一起部署,因为客户端应用程序需要对所有复制集节点可见(以正确构建该集)。为了避免这个限制,您需要运行 mongos 和入口点(这不是 10gen 脚手架解决方案的一部分)。

暂时忘记预览脚手架:我有客户在生产中使用自定义脚手架运行 MongoDB。其中之一是运行一个相当大的部署,具有多个分片,每个分片使用一个副本集。

那么...它可以在 Windows Azure 中运行吗?是的。您应该利用 10gen 提供的脚手架吗?如果您只是在寻找一种简单的方法来启动复制集,我认为这很好。如果您想要独立模型或分片模型,或者需要单独部署 MongoDB,您目前需要自己执行此操作(或修改已发布的 10gen 项目)。

关于Azure 云上的 MongoDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10566693/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com