通过慢速互联网连接设置 MongoDB 副本

发布于 2024-11-28 00:44:45 字数 211 浏览 2 评论 0原文

这是我的问题:

我有一个 MongoDB 副本集,我必须在极其缓慢的连接(主要是非洲内陆等)上使用它,我想知道这里的其他人是否经历过类似的事情?

如果是的话,您能告诉我这样一条线路的复制能力是多少吗?

如果没有,你能给我估计一下吗?

我很快就会测试它,但我真的更愿意做好准备,我知道它不会比 MySQL 慢...

感谢您的回复。

here's my problem:

I have a MongoDB Replica Set which I will have to use on extremelly slow connections (mainly inner africa, etc), I was wondering if other people over here have gone through something similar to this?

if so, could you please tell me how much is the replication capability on such a line?

if not, can you give me estimates?

I'll be testing it out soon, but I'd really prefer to be prepared, I do know it won't be slower than MySQL on these...

Thanks for your replies.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奶茶白久 2024-12-05 00:44:45

您需要的带宽类型取决于您要插入的对象的大小或您对现有对象进行的更新的大小;显然,您每秒执行了多少次操作。因此,我们需要更多地了解对象的结构,以了解性能。

请参阅这篇博文(以及 Kristina 的其他博文),了解 oplog 内部工作原理的详细信息,以便您了解实际复制的内容。 http://www.snailinaturtleneck.com/blog/2010/10/ 12/replication-internals/

您将要面对的是不可靠的连接。根据我的经验,MongoDB 不能很好地处理不可靠的连接。我在美国和英国之间运行了复制,并且遇到了许多问题,复制终止并且在没有手动干预的情况下根本无法重新启动。

如果您拥有大型数据库,则需要考虑如果必须从头开始重新同步辅助数据库时该怎么做,因为如果连接速度较慢,则可能需要很长时间才能将它们重新联机。

The type of bandwidth you'll need depends on the size of the object you're inserting or the size of the updates you're making to existing objects; and obviously how many operations you're performing a second. So we need to know more about the structure of your objects to give an idea of performance.

See this blog post (and other's from Kristina) for details on the inner workings of the oplog so that you understand what is actually being replicated. http://www.snailinaturtleneck.com/blog/2010/10/12/replication-internals/

What you're going to battle with is unreliable connections. In my experience, MongoDB doesn't handle unreliable connections well. I've run replication between the US and UK and have had numerous problems where replication dies and simply doesn't start again without manual intervention.

If you have large databases, you need to consider what you're going to do if you have to resync your secondaries from scratch as it may take too long to bring them back online if you're on slow connections.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文