设置 mongodb 进行分片/可扩展性?
有没有关于设置 mongodb 进行分片/可扩展性的推荐读物?
我正在寻找最佳实践。我对分片或扩展数据库解决方案了解不多。有没有现实世界中实际的例子?
如果我使用了错误的术语,我深表歉意。
- 我的理解是否正确,mongodb 的行为类似于“单一数据库”,但知道如何在不同的 mongodb 实例之间分发数据(可能位于不同的位置等),
- 每个实例都称为分片吗?该数据是否在所有实例中复制?
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.
- 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)
- Are each of those instances called shards? is that data replicated across all instances?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
MongoDB 提供两种类型的扩展。
这些链接是一个合理的起点。
还有许多来自多个 Mongo 会议的幻灯片和视频最近。 这里是一些最近的用例。
将分片视为数据的“切片”。每个分片通常由一个副本集组成。因此每个分片都有多台计算机来管理数据复制。
分片允许 MongoDB 自动分发写入。但还有更多内容,所以我认为您最好完成一些演示文稿。
MongoDB provides two types of scaling.
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.
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.
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.
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.