MongoDB 限制存储大小?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4327723/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 11:52:19  来源:igfitidea点击:

MongoDB limit storage size?

64-bitmongodb

提问by Edward83

What is MongoDB's storage size limit on 64bit platforms? Can MongoDB store 500-900 Gb of data within one instance (node)? What was the largest amount of data you've stored in MongoDB, and what was your experience?

MongoDB 在 64 位平台上的存储大小限制是多少?MongoDB 可以在一个实例(节点)中存储 500-900 Gb 的数据吗?您在 MongoDB 中存储的最大数据量是多少?您的经验是什么?

采纳答案by ceejayoz

The "production deployments"page on MongoDB's site may be of interest to you. Lots of presentations listed with infrastructure information. For example:

您可能对 MongoDB 站点上的“生产部署”页面感兴趣。列出了许多带有基础设施信息的演示文稿。例如:

http://blog.wordnik.com/12-months-with-mongodbsays they're storing 3 TB per node.

http://blog.wordnik.com/12-months-with-mongodb说他们每个节点存储 3 TB。

回答by SUNDARRAJAN K

The MongoDB's storage limit on different operating systems are tabulated below as per the MongoDB 3.0 MMAPv1 storage engine limits.

根据 MongoDB 3.0 MMAPv1 存储引擎限制,MongoDB 在不同操作系统上的存储限制如下表所示。

The MMAPv1 storage engine limits each database to no more than 16000 data files. This means that a single MMAPv1 database has a maximum size of 32TB. Setting the storage.mmapv1.smallFilesoption reduces this limit to 8TB.

MMAPv1 存储引擎将每个数据库限制为不超过 16000 个数据文件。这意味着单个 MMAPv1 数据库的最大大小为 32TB。设置storage.mmapv1.smallFiles选项将此限制减少到 8TB。

Using the MMAPv1 storage engine, a single mongod instance cannot manage a data set that exceeds maximum virtual memory address space provided by the underlying operating system.

使用 MMAPv1 存储引擎,单个 mongod 实例无法管理超过底层操作系统提供的最大虚拟内存地址空间的数据集。

                            Virtual Memory Limitations

Operating System           Journaled                Not Journaled

   Linux                 64 terabytes               128 terabytes

Windows Server 2012 R2
and Windows 8.1          64 terabytes               128 terabytes

Windows (otherwise)       4 terabytes                8 terabytes

Reference: MongoDB Database Limit.

参考MongoDB 数据库限制

Note:The WiredTiger storage engine is not subject to this limitation.

注意WiredTiger 存储引擎不受此限制。

Another way to have more than 2GB on a single node is to run multiple mongod processes. So sharding is one option or doing some manual partitioning across processes.

在单个节点上拥有超过 2GB 的另一种方法是运行多个 mongod 进程。因此,分片是一种选择,或者是跨进程进行一些手动分区。

Hope This helps.

希望这可以帮助。

回答by Donnie H

You won't run anywhere near hitting the cap with 1TB on 64 bit systems, however Mongo does store the indexes in memory so a smooth experience depends on your index size and how much memory you have. But if you have a beefy enough system it won't be a problem.

在 64 位系统上,您不会以 1TB 接近上限运行,但是 Mongo 确实将索引存储在内存中,因此流畅的体验取决于您的索引大小和您拥有的内存量。但是如果你有一个足够强大的系统,这将不是问题。