设置 mongodb 进行分片/可扩展性?

发布于 2024-11-01 18:10:12 字数 244 浏览 5 评论 0原文

有没有关于设置 mongodb 进行分片/可扩展性的推荐读物?

我正在寻找最佳实践。我对分片或扩展数据库解决方案了解不多。有没有现实世界中实际的例子?

如果我使用了错误的术语,我深表歉意。

  1. 我的理解是否正确,mongodb 的行为类似于“单一数据库”,但知道如何在不同的 mongodb 实例之间分发数据(可能位于不同的位置等),
  2. 每个实例都称为分片吗?该数据是否在所有实例中复制?

Any recommended readings for setting up mongodb for sharding/scalability?

I'm looking for best practices. i don't know a lot about sharding or scaling db solutions. are there examples out there with practical real world examples?

i apologize if i'm using the wrong terms.

  1. Is my understanding correct in that mongodb acts like a "single database" but knows how to distribute data across disparate instances of mongodb (maybe located in different locations, etc)
  2. Are each of those instances called shards? is that data replicated across all instances?

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

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

发布评论

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

评论(2

终止放荡 2024-11-08 18:10:12

MongoDB 提供两种类型的扩展。

  1. 读取缩放:由副本集提供。
  2. 写入缩放分片提供。

这些链接是一个合理的起点。

还有许多来自多个 Mongo 会议的幻灯片和视频最近。 这里是一些最近的用例。

每个实例都称为分片吗?该数据是否在所有实例中复制?

将分片视为数据的“切片”。每个分片通常由一个副本集组成。因此每个分片都有多台计算机来管理数据复制。

我的理解是否正确,mongodb 的行为类似于“单一数据库”,但知道如何在不同的 mongodb 实例之间分发数据......

分片允许 MongoDB 自动分发写入。但还有更多内容,所以我认为您最好完成一些演示文稿。

MongoDB provides two types of scaling.

  1. Read scaling: is provided by Replica Sets.
  2. Write scaling is provided by Sharding.

Those links are a reasonable place to start.

There are also numerous slides and videos from the multiple Mongo conferences that have run recently. Here are some recent ones with use cases.

are each of those instances called shards? is that data replicated across all instances?

Think of a shard as a "slice" of your data. Each shard is generally composed of a replica set. So each shard has multiple computers managing replication of data.

is my understanding correct in that mongodb acts like a "single database" but knows how to distribute data across disparate instances of mongodb...

Sharding allows MongoDB to automatically distribute writes. But there's a little more to it, so I think it's best you work through some of the presentations.

旧人哭 2024-11-08 18:10:12

MongoDB 有很棒的文档。分片和副本集等问题已深入记录:

http://www.mongodb.org/显示/DOCS/Sharding+简介
http://www.mongodb.org/display/DOCS/Replica+Sets

除此之外,还有很多演示文稿

http: //www.10gen.com/presentations

和视频

http://www.10gen.com/presentations< /a>

处理你的问题。

请先研究并提出一些更具体的问题。

MongoDB has a great documentation. Issues like Sharding and Replica sets are documented in depth:

http://www.mongodb.org/display/DOCS/Sharding+Introduction
http://www.mongodb.org/display/DOCS/Replica+Sets

Apart from that there are lot of presentations

http://www.10gen.com/presentations

and videos

http://www.10gen.com/presentations

dealing with your questions.

Please research first and come up with some more specific questions.

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